From 5289f69bc2e26a24576d5994c4593d796191cc10 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 6 Feb 2023 22:48:29 +0000 Subject: [PATCH 1/2] feat: API for publish idempotence PiperOrigin-RevId: 507561467 Source-Link: https://github.com/googleapis/googleapis/commit/8bf4545d6339c9c07a107af9ef5f7123b63091d2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c37939c2d09c76feacf48dece24807957f49e0cb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzM3OTM5YzJkMDljNzZmZWFjZjQ4ZGVjZTI0ODA3OTU3ZjQ5ZTBjYiJ9 --- .../pubsublite/proto/AdminServiceGrpc.java | 2566 ----------------- .../pubsublite/proto/CursorServiceGrpc.java | 598 ---- .../proto/TopicStatsServiceGrpc.java | 643 ----- .../pubsublite/v1/AdminServiceClient.java | 0 .../pubsublite/v1/AdminServiceSettings.java | 1 + .../pubsublite/v1/CursorServiceClient.java | 0 .../pubsublite/v1/CursorServiceSettings.java | 1 + .../v1/PartitionAssignmentServiceClient.java | 0 .../PartitionAssignmentServiceSettings.java | 1 + .../pubsublite/v1/PublisherServiceClient.java | 0 .../v1/PublisherServiceSettings.java | 1 + .../v1/SubscriberServiceClient.java | 0 .../v1/SubscriberServiceSettings.java | 1 + .../v1/TopicStatsServiceClient.java | 0 .../v1/TopicStatsServiceSettings.java | 1 + .../cloud/pubsublite/v1/gapic_metadata.json | 0 .../cloud/pubsublite/v1/package-info.java | 0 .../pubsublite/v1/stub/AdminServiceStub.java | 0 .../v1/stub/AdminServiceStubSettings.java | 0 .../pubsublite/v1/stub/CursorServiceStub.java | 0 .../v1/stub/CursorServiceStubSettings.java | 0 .../stub/GrpcAdminServiceCallableFactory.java | 0 .../v1/stub/GrpcAdminServiceStub.java | 1 + .../GrpcCursorServiceCallableFactory.java | 0 .../v1/stub/GrpcCursorServiceStub.java | 1 + ...itionAssignmentServiceCallableFactory.java | 0 .../GrpcPartitionAssignmentServiceStub.java | 0 .../GrpcPublisherServiceCallableFactory.java | 0 .../v1/stub/GrpcPublisherServiceStub.java | 0 .../GrpcSubscriberServiceCallableFactory.java | 0 .../v1/stub/GrpcSubscriberServiceStub.java | 0 .../GrpcTopicStatsServiceCallableFactory.java | 0 .../v1/stub/GrpcTopicStatsServiceStub.java | 1 + .../stub/PartitionAssignmentServiceStub.java | 0 ...artitionAssignmentServiceStubSettings.java | 0 .../v1/stub/PublisherServiceStub.java | 0 .../v1/stub/PublisherServiceStubSettings.java | 0 .../v1/stub/SubscriberServiceStub.java | 0 .../stub/SubscriberServiceStubSettings.java | 0 .../v1/stub/TopicStatsServiceStub.java | 0 .../stub/TopicStatsServiceStubSettings.java | 0 .../pubsublite/v1/AdminServiceClientTest.java | 1545 ++++++++++ .../v1/CursorServiceClientTest.java | 278 ++ .../cloud/pubsublite/v1/MockAdminService.java | 59 + .../pubsublite/v1/MockAdminServiceImpl.java | 488 ++++ .../pubsublite/v1/MockCursorService.java | 59 + .../pubsublite/v1/MockCursorServiceImpl.java | 146 + .../v1/MockPartitionAssignmentService.java | 59 + .../MockPartitionAssignmentServiceImpl.java | 99 + .../pubsublite/v1/MockPublisherService.java | 59 + .../v1/MockPublisherServiceImpl.java | 99 + .../pubsublite/v1/MockSubscriberService.java | 59 + .../v1/MockSubscriberServiceImpl.java | 99 + .../pubsublite/v1/MockTopicStatsService.java | 59 + .../v1/MockTopicStatsServiceImpl.java | 132 + .../PartitionAssignmentServiceClientTest.java | 130 + .../v1/PublisherServiceClientTest.java | 125 + .../v1/SubscriberServiceClientTest.java | 127 + .../v1/TopicStatsServiceClientTest.java | 236 ++ .../pubsublite/proto/AdminServiceGrpc.java | 1924 ++++++++++++ .../pubsublite/proto/CursorServiceGrpc.java | 463 +++ .../proto/PartitionAssignmentServiceGrpc.java | 211 +- .../proto/PublisherServiceGrpc.java | 206 +- .../proto/SubscriberServiceGrpc.java | 208 +- .../proto/TopicStatsServiceGrpc.java | 503 ++++ .../cloud/pubsublite/proto/AdminProto.java | 553 ++++ .../pubsublite/proto/AttributeValues.java | 335 +-- .../proto/AttributeValuesOrBuilder.java | 27 +- .../pubsublite/proto/CommitCursorRequest.java | 461 ++- .../proto/CommitCursorRequestOrBuilder.java | 38 +- .../proto/CommitCursorResponse.java | 254 +- .../proto/CommitCursorResponseOrBuilder.java | 9 + .../cloud/pubsublite/proto/CommonProto.java | 301 ++ .../proto/ComputeHeadCursorRequest.java | 392 +-- .../ComputeHeadCursorRequestOrBuilder.java | 39 + .../proto/ComputeHeadCursorResponse.java | 356 +-- .../ComputeHeadCursorResponseOrBuilder.java | 26 +- .../proto/ComputeMessageStatsRequest.java | 594 ++-- .../ComputeMessageStatsRequestOrBuilder.java | 54 +- .../proto/ComputeMessageStatsResponse.java | 541 ++-- .../ComputeMessageStatsResponseOrBuilder.java | 40 +- .../proto/ComputeTimeCursorRequest.java | 585 ++-- .../ComputeTimeCursorRequestOrBuilder.java | 69 + .../proto/ComputeTimeCursorResponse.java | 356 +-- .../ComputeTimeCursorResponseOrBuilder.java | 26 +- .../proto/CreateReservationRequest.java | 635 ++-- .../CreateReservationRequestOrBuilder.java | 81 +- .../proto/CreateSubscriptionRequest.java | 672 ++--- .../CreateSubscriptionRequestOrBuilder.java | 84 +- .../pubsublite/proto/CreateTopicRequest.java | 614 ++-- .../proto/CreateTopicRequestOrBuilder.java | 78 +- .../google/cloud/pubsublite/proto/Cursor.java | 282 +- .../pubsublite/proto/CursorOrBuilder.java | 20 + .../cloud/pubsublite/proto/CursorProto.java | 232 ++ .../proto/DeleteReservationRequest.java | 356 +-- .../DeleteReservationRequestOrBuilder.java | 33 + .../proto/DeleteSubscriptionRequest.java | 356 +-- .../DeleteSubscriptionRequestOrBuilder.java | 29 + .../pubsublite/proto/DeleteTopicRequest.java | 353 +-- .../proto/DeleteTopicRequestOrBuilder.java | 29 + .../cloud/pubsublite/proto/ExportConfig.java | 1136 +++----- .../proto/ExportConfigOrBuilder.java | 83 +- .../pubsublite/proto/FlowControlRequest.java | 328 +-- .../proto/FlowControlRequestOrBuilder.java | 24 +- .../proto/GetReservationRequest.java | 356 +-- .../proto/GetReservationRequestOrBuilder.java | 33 + .../proto/GetSubscriptionRequest.java | 356 +-- .../GetSubscriptionRequestOrBuilder.java | 29 + .../proto/GetTopicPartitionsRequest.java | 356 +-- .../GetTopicPartitionsRequestOrBuilder.java | 29 + .../pubsublite/proto/GetTopicRequest.java | 353 +-- .../proto/GetTopicRequestOrBuilder.java | 29 + .../proto/InitialCommitCursorRequest.java | 374 +-- .../InitialCommitCursorRequestOrBuilder.java | 30 +- .../proto/InitialCommitCursorResponse.java | 261 +- .../InitialCommitCursorResponseOrBuilder.java | 9 + .../InitialPartitionAssignmentRequest.java | 399 ++- ...alPartitionAssignmentRequestOrBuilder.java | 30 +- .../proto/InitialPublishRequest.java | 465 +-- .../proto/InitialPublishRequestOrBuilder.java | 45 +- .../proto/InitialPublishResponse.java | 254 +- .../InitialPublishResponseOrBuilder.java | 9 + .../proto/InitialSubscribeRequest.java | 580 ++-- .../InitialSubscribeRequestOrBuilder.java | 68 +- .../proto/InitialSubscribeResponse.java | 356 +-- .../InitialSubscribeResponseOrBuilder.java | 26 +- .../proto/ListPartitionCursorsRequest.java | 471 ++- .../ListPartitionCursorsRequestOrBuilder.java | 47 +- .../proto/ListPartitionCursorsResponse.java | 495 ++-- ...ListPartitionCursorsResponseOrBuilder.java | 42 +- .../proto/ListReservationTopicsRequest.java | 481 ++- ...ListReservationTopicsRequestOrBuilder.java | 47 +- .../proto/ListReservationTopicsResponse.java | 455 ++- ...istReservationTopicsResponseOrBuilder.java | 45 +- .../proto/ListReservationsRequest.java | 461 ++- .../ListReservationsRequestOrBuilder.java | 47 +- .../proto/ListReservationsResponse.java | 483 ++-- .../ListReservationsResponseOrBuilder.java | 45 +- .../proto/ListSubscriptionsRequest.java | 461 ++- .../ListSubscriptionsRequestOrBuilder.java | 47 +- .../proto/ListSubscriptionsResponse.java | 466 ++- .../ListSubscriptionsResponseOrBuilder.java | 45 +- .../proto/ListTopicSubscriptionsRequest.java | 484 ++-- ...istTopicSubscriptionsRequestOrBuilder.java | 47 +- .../proto/ListTopicSubscriptionsResponse.java | 458 ++- ...stTopicSubscriptionsResponseOrBuilder.java | 45 +- .../pubsublite/proto/ListTopicsRequest.java | 458 ++- .../proto/ListTopicsRequestOrBuilder.java | 47 +- .../pubsublite/proto/ListTopicsResponse.java | 485 ++-- .../proto/ListTopicsResponseOrBuilder.java | 45 +- .../cloud/pubsublite/proto/LocationName.java | 0 .../proto/MessagePublishRequest.java | 532 ++-- .../proto/MessagePublishRequestOrBuilder.java | 55 +- .../proto/MessagePublishResponse.java | 2116 ++++++++++++++ .../MessagePublishResponseOrBuilder.java | 113 + .../pubsublite/proto/MessageResponse.java | 398 +-- .../proto/MessageResponseOrBuilder.java | 36 +- .../pubsublite/proto/OperationMetadata.java | 569 ++-- .../proto/OperationMetadataOrBuilder.java | 52 +- .../pubsublite/proto/PartitionAssignment.java | 360 +-- .../proto/PartitionAssignmentAck.java | 254 +- .../PartitionAssignmentAckOrBuilder.java | 9 + .../proto/PartitionAssignmentOrBuilder.java | 27 +- .../proto/PartitionAssignmentRequest.java | 532 ++-- .../PartitionAssignmentRequestOrBuilder.java | 37 +- .../pubsublite/proto/PartitionCursor.java | 389 +-- .../proto/PartitionCursorOrBuilder.java | 29 +- .../cloud/pubsublite/proto/PubSubMessage.java | 643 ++--- .../proto/PubSubMessageOrBuilder.java | 60 +- .../pubsublite/proto/PublishRequest.java | 523 ++-- .../proto/PublishRequestOrBuilder.java | 37 +- .../pubsublite/proto/PublishResponse.java | 522 ++-- .../proto/PublishResponseOrBuilder.java | 34 +- .../pubsublite/proto/PublisherProto.java | 161 ++ .../cloud/pubsublite/proto/Reservation.java | 354 +-- .../pubsublite/proto/ReservationName.java | 0 .../proto/ReservationOrBuilder.java | 30 +- .../cloud/pubsublite/proto/SeekRequest.java | 520 ++-- .../proto/SeekRequestOrBuilder.java | 35 +- .../cloud/pubsublite/proto/SeekResponse.java | 346 +-- .../proto/SeekResponseOrBuilder.java | 26 +- .../proto/SeekSubscriptionRequest.java | 660 ++--- .../SeekSubscriptionRequestOrBuilder.java | 52 +- .../proto/SeekSubscriptionResponse.java | 254 +- .../SeekSubscriptionResponseOrBuilder.java | 9 + .../proto/SequencedCommitCursorRequest.java | 376 +-- ...SequencedCommitCursorRequestOrBuilder.java | 26 +- .../proto/SequencedCommitCursorResponse.java | 318 +- ...equencedCommitCursorResponseOrBuilder.java | 21 + .../pubsublite/proto/SequencedMessage.java | 573 ++-- .../proto/SequencedMessageOrBuilder.java | 45 +- .../proto/StreamingCommitCursorRequest.java | 544 ++-- ...StreamingCommitCursorRequestOrBuilder.java | 37 +- .../proto/StreamingCommitCursorResponse.java | 550 ++-- ...treamingCommitCursorResponseOrBuilder.java | 37 +- .../pubsublite/proto/SubscribeRequest.java | 581 ++-- .../proto/SubscribeRequestOrBuilder.java | 42 +- .../pubsublite/proto/SubscribeResponse.java | 588 ++-- .../proto/SubscribeResponseOrBuilder.java | 42 +- .../pubsublite/proto/SubscriberProto.java | 240 ++ .../cloud/pubsublite/proto/Subscription.java | 1050 +++---- .../pubsublite/proto/SubscriptionName.java | 0 .../proto/SubscriptionOrBuilder.java | 55 +- .../cloud/pubsublite/proto/TimeTarget.java | 481 ++- .../pubsublite/proto/TimeTargetOrBuilder.java | 34 +- .../google/cloud/pubsublite/proto/Topic.java | 2272 ++++++--------- .../cloud/pubsublite/proto/TopicName.java | 0 .../pubsublite/proto/TopicOrBuilder.java | 54 +- .../pubsublite/proto/TopicPartitions.java | 292 +- .../proto/TopicPartitionsOrBuilder.java | 19 + .../pubsublite/proto/TopicStatsProto.java | 174 ++ .../proto/UpdateReservationRequest.java | 527 ++-- .../UpdateReservationRequestOrBuilder.java | 55 +- .../proto/UpdateSubscriptionRequest.java | 528 ++-- .../UpdateSubscriptionRequestOrBuilder.java | 55 +- .../pubsublite/proto/UpdateTopicRequest.java | 506 ++-- .../proto/UpdateTopicRequestOrBuilder.java | 52 +- .../google/cloud/pubsublite/v1/admin.proto | 61 +- .../google/cloud/pubsublite/v1/common.proto | 18 +- .../google/cloud/pubsublite/v1/cursor.proto | 18 +- .../cloud/pubsublite/v1/publisher.proto | 56 +- .../cloud/pubsublite/v1/subscriber.proto | 23 +- .../cloud/pubsublite/v1/topic_stats.proto | 16 +- .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateReservation.java | 0 .../SyncCreateReservation.java | 0 ...ervationLocationnameReservationString.java | 0 ...ateReservationStringReservationString.java | 0 .../AsyncCreateSubscription.java | 0 .../SyncCreateSubscription.java | 0 ...riptionLocationnameSubscriptionString.java | 0 ...eSubscriptionStringSubscriptionString.java | 0 .../createtopic/AsyncCreateTopic.java | 0 .../createtopic/SyncCreateTopic.java | 0 ...yncCreateTopicLocationnameTopicString.java | 0 .../SyncCreateTopicStringTopicString.java | 0 .../AsyncDeleteReservation.java | 0 .../SyncDeleteReservation.java | 0 .../SyncDeleteReservationReservationname.java | 0 .../SyncDeleteReservationString.java | 0 .../AsyncDeleteSubscription.java | 0 .../SyncDeleteSubscription.java | 0 .../SyncDeleteSubscriptionString.java | 0 ...yncDeleteSubscriptionSubscriptionname.java | 0 .../deletetopic/AsyncDeleteTopic.java | 0 .../deletetopic/SyncDeleteTopic.java | 0 .../deletetopic/SyncDeleteTopicString.java | 0 .../deletetopic/SyncDeleteTopicTopicname.java | 0 .../getreservation/AsyncGetReservation.java | 0 .../getreservation/SyncGetReservation.java | 0 .../SyncGetReservationReservationname.java | 0 .../SyncGetReservationString.java | 0 .../getsubscription/AsyncGetSubscription.java | 0 .../getsubscription/SyncGetSubscription.java | 0 .../SyncGetSubscriptionString.java | 0 .../SyncGetSubscriptionSubscriptionname.java | 0 .../adminservice/gettopic/AsyncGetTopic.java | 0 .../adminservice/gettopic/SyncGetTopic.java | 0 .../gettopic/SyncGetTopicString.java | 0 .../gettopic/SyncGetTopicTopicname.java | 0 .../AsyncGetTopicPartitions.java | 0 .../SyncGetTopicPartitions.java | 0 .../SyncGetTopicPartitionsString.java | 0 .../SyncGetTopicPartitionsTopicname.java | 0 .../AsyncListReservations.java | 0 .../AsyncListReservationsPaged.java | 0 .../SyncListReservations.java | 0 .../SyncListReservationsLocationname.java | 0 .../SyncListReservationsString.java | 0 .../AsyncListReservationTopics.java | 0 .../AsyncListReservationTopicsPaged.java | 0 .../SyncListReservationTopics.java | 0 ...cListReservationTopicsReservationname.java | 0 .../SyncListReservationTopicsString.java | 0 .../AsyncListSubscriptions.java | 0 .../AsyncListSubscriptionsPaged.java | 0 .../SyncListSubscriptions.java | 0 .../SyncListSubscriptionsLocationname.java | 0 .../SyncListSubscriptionsString.java | 0 .../listtopics/AsyncListTopics.java | 0 .../listtopics/AsyncListTopicsPaged.java | 0 .../listtopics/SyncListTopics.java | 0 .../SyncListTopicsLocationname.java | 0 .../listtopics/SyncListTopicsString.java | 0 .../AsyncListTopicSubscriptions.java | 0 .../AsyncListTopicSubscriptionsPaged.java | 0 .../SyncListTopicSubscriptions.java | 0 .../SyncListTopicSubscriptionsString.java | 0 .../SyncListTopicSubscriptionsTopicname.java | 0 .../AsyncSeekSubscription.java | 0 .../AsyncSeekSubscriptionLRO.java | 0 .../SyncSeekSubscription.java | 0 .../AsyncUpdateReservation.java | 0 .../SyncUpdateReservation.java | 0 ...UpdateReservationReservationFieldmask.java | 0 .../AsyncUpdateSubscription.java | 0 .../SyncUpdateSubscription.java | 0 ...dateSubscriptionSubscriptionFieldmask.java | 0 .../updatetopic/AsyncUpdateTopic.java | 0 .../updatetopic/SyncUpdateTopic.java | 0 .../SyncUpdateTopicTopicFieldmask.java | 0 .../createtopic/SyncCreateTopic.java | 0 .../commitcursor/AsyncCommitCursor.java | 0 .../commitcursor/SyncCommitCursor.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncListPartitionCursors.java | 0 .../AsyncListPartitionCursorsPaged.java | 0 .../SyncListPartitionCursors.java | 0 .../SyncListPartitionCursorsString.java | 0 ...cListPartitionCursorsSubscriptionname.java | 0 .../AsyncStreamingCommitCursor.java | 0 .../commitcursor/SyncCommitCursor.java | 0 .../AsyncAssignPartitions.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncAssignPartitions.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../publish/AsyncPublish.java | 0 .../publish/SyncPublish.java | 0 .../createtopic/SyncCreateTopic.java | 0 .../commitcursor/SyncCommitCursor.java | 0 .../SyncAssignPartitions.java | 0 .../publish/SyncPublish.java | 0 .../subscribe/SyncSubscribe.java | 0 .../SyncComputeMessageStats.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../subscribe/AsyncSubscribe.java | 0 .../subscribe/SyncSubscribe.java | 0 .../AsyncComputeHeadCursor.java | 0 .../SyncComputeHeadCursor.java | 0 .../AsyncComputeMessageStats.java | 0 .../SyncComputeMessageStats.java | 0 .../AsyncComputeTimeCursor.java | 0 .../SyncComputeTimeCursor.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncComputeMessageStats.java | 0 .../cloud/pubsublite/proto/AdminProto.java | 592 ---- .../proto/CommitCursorResponseOrBuilder.java | 24 - .../cloud/pubsublite/proto/CommonProto.java | 333 --- .../ComputeHeadCursorRequestOrBuilder.java | 67 - .../ComputeTimeCursorRequestOrBuilder.java | 111 - .../pubsublite/proto/CursorOrBuilder.java | 39 - .../cloud/pubsublite/proto/CursorProto.java | 253 -- .../DeleteReservationRequestOrBuilder.java | 58 - .../DeleteSubscriptionRequestOrBuilder.java | 54 - .../proto/DeleteTopicRequestOrBuilder.java | 54 - .../proto/GetReservationRequestOrBuilder.java | 58 - .../GetSubscriptionRequestOrBuilder.java | 54 - .../GetTopicPartitionsRequestOrBuilder.java | 54 - .../proto/GetTopicRequestOrBuilder.java | 54 - .../InitialCommitCursorResponseOrBuilder.java | 24 - .../InitialPublishResponseOrBuilder.java | 24 - .../proto/MessagePublishResponse.java | 725 ----- .../MessagePublishResponseOrBuilder.java | 63 - .../PartitionAssignmentAckOrBuilder.java | 24 - .../pubsublite/proto/PublisherProto.java | 162 -- .../SeekSubscriptionResponseOrBuilder.java | 24 - ...equencedCommitCursorResponseOrBuilder.java | 40 - .../pubsublite/proto/SubscriberProto.java | 264 -- .../proto/TopicPartitionsOrBuilder.java | 38 - .../pubsublite/proto/TopicStatsProto.java | 194 -- 366 files changed, 25475 insertions(+), 30376 deletions(-) delete mode 100644 grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java delete mode 100644 grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java delete mode 100644 grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java (99%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java (99%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java (99%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java (99%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java (99%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java (99%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/package-info.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java (99%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java (99%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java (99%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java (100%) rename {google-cloud-pubsublite => owl-bot-staging/v1/google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java create mode 100644 owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java create mode 100644 owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java rename {grpc-google-cloud-pubsublite-v1 => owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java (55%) rename {grpc-google-cloud-pubsublite-v1 => owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java (57%) rename {grpc-google-cloud-pubsublite-v1 => owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java (50%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java (59%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java (67%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java (67%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java (64%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java (57%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java (67%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java (71%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java (70%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java (80%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java (60%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java (67%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java (62%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java (53%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java (64%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java (57%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java (65%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java (59%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java (65%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java (52%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java (56%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java (60%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java (59%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java (56%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java (61%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java (50%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java (63%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java (67%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java (63%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java (71%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java (71%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java (63%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java (67%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java (62%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java (72%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java (73%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java (62%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java (73%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java (73%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java (65%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java (60%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java (67%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java (61%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java (72%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java (70%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java (100%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java (61%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java (57%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java (71%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java (65%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java (71%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java (60%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java (70%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java (65%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java (60%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java (65%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java (72%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java (67%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java (71%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java (67%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java (100%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java (63%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java (70%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java (72%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java (65%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java (59%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java (72%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java (62%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java (58%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java (69%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java (77%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java (65%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java (70%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java (65%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java (71%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java (70%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java (77%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java (70%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java (77%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java (68%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java (100%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java (78%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java (73%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java (80%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/Topic.java (71%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java (100%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java (78%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java (63%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java (56%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java (63%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java (58%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java (66%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java (63%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/admin.proto (93%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/common.proto (96%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/cursor.proto (94%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/publisher.proto (60%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto (94%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto (93%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java (100%) delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java delete mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java deleted file mode 100644 index 0faa8b8ef..000000000 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java +++ /dev/null @@ -1,2566 +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.cloud.pubsublite.proto; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The service that a client application uses to manage topics and
- * subscriptions, such creating, listing, and deleting topics and subscriptions.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/pubsublite/v1/admin.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdminServiceGrpc { - - private AdminServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.AdminService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getCreateTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTopic", - requestType = com.google.cloud.pubsublite.proto.CreateTopicRequest.class, - responseType = com.google.cloud.pubsublite.proto.Topic.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getCreateTopicMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getCreateTopicMethod; - if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.CreateTopicRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateTopic")) - .build(); - } - } - } - return getCreateTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getGetTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTopic", - requestType = com.google.cloud.pubsublite.proto.GetTopicRequest.class, - responseType = com.google.cloud.pubsublite.proto.Topic.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getGetTopicMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getGetTopicMethod; - if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.GetTopicRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetTopic")) - .build(); - } - } - } - return getGetTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions> - getGetTopicPartitionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTopicPartitions", - requestType = com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, - responseType = com.google.cloud.pubsublite.proto.TopicPartitions.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions> - getGetTopicPartitionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions> - getGetTopicPartitionsMethod; - if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { - AdminServiceGrpc.getGetTopicPartitionsMethod = - getGetTopicPartitionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopicPartitions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.TopicPartitions - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("GetTopicPartitions")) - .build(); - } - } - } - return getGetTopicPartitionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicsRequest, - com.google.cloud.pubsublite.proto.ListTopicsResponse> - getListTopicsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTopics", - requestType = com.google.cloud.pubsublite.proto.ListTopicsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListTopicsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicsRequest, - com.google.cloud.pubsublite.proto.ListTopicsResponse> - getListTopicsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicsRequest, - com.google.cloud.pubsublite.proto.ListTopicsResponse> - getListTopicsMethod; - if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.ListTopicsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListTopicsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListTopics")) - .build(); - } - } - } - return getListTopicsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getUpdateTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTopic", - requestType = com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, - responseType = com.google.cloud.pubsublite.proto.Topic.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getUpdateTopicMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getUpdateTopicMethod; - if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.UpdateTopicRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateTopic")) - .build(); - } - } - } - return getUpdateTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, com.google.protobuf.Empty> - getDeleteTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTopic", - requestType = com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, com.google.protobuf.Empty> - getDeleteTopicMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, com.google.protobuf.Empty> - getDeleteTopicMethod; - if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.DeleteTopicRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteTopic")) - .build(); - } - } - } - return getDeleteTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - getListTopicSubscriptionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions", - requestType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - getListTopicSubscriptionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - getListTopicSubscriptionsMethod; - if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) - == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) - == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("ListTopicSubscriptions")) - .build(); - } - } - } - return getListTopicSubscriptionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getCreateSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSubscription", - requestType = com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, - responseType = com.google.cloud.pubsublite.proto.Subscription.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getCreateSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getCreateSubscriptionMethod; - if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.CreateSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("CreateSubscription")) - .build(); - } - } - } - return getCreateSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getGetSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSubscription", - requestType = com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, - responseType = com.google.cloud.pubsublite.proto.Subscription.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getGetSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getGetSubscriptionMethod; - if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.GetSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("GetSubscription")) - .build(); - } - } - } - return getGetSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> - getListSubscriptionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSubscriptions", - requestType = com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> - getListSubscriptionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> - getListSubscriptionsMethod; - if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.ListSubscriptionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("ListSubscriptions")) - .build(); - } - } - } - return getListSubscriptionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getUpdateSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSubscription", - requestType = com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, - responseType = com.google.cloud.pubsublite.proto.Subscription.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getUpdateSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getUpdateSubscriptionMethod; - if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.UpdateSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("UpdateSubscription")) - .build(); - } - } - } - return getUpdateSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, com.google.protobuf.Empty> - getDeleteSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSubscription", - requestType = com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, com.google.protobuf.Empty> - getDeleteSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, com.google.protobuf.Empty> - getDeleteSubscriptionMethod; - if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.DeleteSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("DeleteSubscription")) - .build(); - } - } - } - return getDeleteSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation> - getSeekSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SeekSubscription", - requestType = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation> - getSeekSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation> - getSeekSubscriptionMethod; - if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { - AdminServiceGrpc.getSeekSubscriptionMethod = - getSeekSubscriptionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SeekSubscription")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("SeekSubscription")) - .build(); - } - } - } - return getSeekSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getCreateReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateReservation", - requestType = com.google.cloud.pubsublite.proto.CreateReservationRequest.class, - responseType = com.google.cloud.pubsublite.proto.Reservation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getCreateReservationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getCreateReservationMethod; - if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { - AdminServiceGrpc.getCreateReservationMethod = - getCreateReservationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CreateReservationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("CreateReservation")) - .build(); - } - } - } - return getCreateReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getGetReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetReservation", - requestType = com.google.cloud.pubsublite.proto.GetReservationRequest.class, - responseType = com.google.cloud.pubsublite.proto.Reservation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getGetReservationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getGetReservationMethod; - if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { - AdminServiceGrpc.getGetReservationMethod = - getGetReservationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.GetReservationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("GetReservation")) - .build(); - } - } - } - return getGetReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse> - getListReservationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListReservations", - requestType = com.google.cloud.pubsublite.proto.ListReservationsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListReservationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse> - getListReservationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse> - getListReservationsMethod; - if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { - AdminServiceGrpc.getListReservationsMethod = - getListReservationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("ListReservations")) - .build(); - } - } - } - return getListReservationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getUpdateReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateReservation", - requestType = com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, - responseType = com.google.cloud.pubsublite.proto.Reservation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getUpdateReservationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getUpdateReservationMethod; - if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { - AdminServiceGrpc.getUpdateReservationMethod = - getUpdateReservationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.UpdateReservationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("UpdateReservation")) - .build(); - } - } - } - return getUpdateReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, com.google.protobuf.Empty> - getDeleteReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteReservation", - requestType = com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, com.google.protobuf.Empty> - getDeleteReservationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, com.google.protobuf.Empty> - getDeleteReservationMethod; - if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { - AdminServiceGrpc.getDeleteReservationMethod = - getDeleteReservationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.DeleteReservationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("DeleteReservation")) - .build(); - } - } - } - return getDeleteReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> - getListReservationTopicsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListReservationTopics", - requestType = com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> - getListReservationTopicsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> - getListReservationTopicsMethod; - if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) - == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) - == null) { - AdminServiceGrpc.getListReservationTopicsMethod = - getListReservationTopicsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListReservationTopics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("ListReservationTopics")) - .build(); - } - } - } - return getListReservationTopicsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AdminServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdminServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceStub(channel, callOptions); - } - }; - return AdminServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdminServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdminServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceBlockingStub(channel, callOptions); - } - }; - return AdminServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AdminServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdminServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceFutureStub(channel, callOptions); - } - }; - return AdminServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public abstract static class AdminServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new topic.
-     * 
- */ - public void createTopic( - com.google.cloud.pubsublite.proto.CreateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTopicMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the topic configuration.
-     * 
- */ - public void getTopic( - com.google.cloud.pubsublite.proto.GetTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public void getTopicPartitions( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetTopicPartitionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public void listTopics( - com.google.cloud.pubsublite.proto.ListTopicsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified topic.
-     * 
- */ - public void updateTopic( - com.google.cloud.pubsublite.proto.UpdateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTopicMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified topic.
-     * 
- */ - public void deleteTopic( - com.google.cloud.pubsublite.proto.DeleteTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTopicMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public void listTopicSubscriptions( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTopicSubscriptionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new subscription.
-     * 
- */ - public void createSubscription( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the subscription configuration.
-     * 
- */ - public void getSubscription( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public void listSubscriptions( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSubscriptionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public void updateSubscription( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified subscription.
-     * 
- */ - public void deleteSubscription( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public void seekSubscription( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSeekSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new reservation.
-     * 
- */ - public void createReservation( - com.google.cloud.pubsublite.proto.CreateReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateReservationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the reservation configuration.
-     * 
- */ - public void getReservation( - com.google.cloud.pubsublite.proto.GetReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetReservationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public void listReservations( - com.google.cloud.pubsublite.proto.ListReservationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReservationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public void updateReservation( - com.google.cloud.pubsublite.proto.UpdateReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateReservationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified reservation.
-     * 
- */ - public void deleteReservation( - com.google.cloud.pubsublite.proto.DeleteReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteReservationMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public void listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReservationTopicsMethod(), responseObserver); - } - - @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.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>(this, METHODID_CREATE_TOPIC))) - .addMethod( - getGetTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic>(this, METHODID_GET_TOPIC))) - .addMethod( - getGetTopicPartitionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions>( - this, METHODID_GET_TOPIC_PARTITIONS))) - .addMethod( - getListTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListTopicsRequest, - com.google.cloud.pubsublite.proto.ListTopicsResponse>( - this, METHODID_LIST_TOPICS))) - .addMethod( - getUpdateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>(this, METHODID_UPDATE_TOPIC))) - .addMethod( - getDeleteTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_TOPIC))) - .addMethod( - getListTopicSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( - this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) - .addMethod( - getCreateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - this, METHODID_CREATE_SUBSCRIPTION))) - .addMethod( - getGetSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - this, METHODID_GET_SUBSCRIPTION))) - .addMethod( - getListSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( - this, METHODID_LIST_SUBSCRIPTIONS))) - .addMethod( - getUpdateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - this, METHODID_UPDATE_SUBSCRIPTION))) - .addMethod( - getDeleteSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SUBSCRIPTION))) - .addMethod( - getSeekSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation>(this, METHODID_SEEK_SUBSCRIPTION))) - .addMethod( - getCreateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - this, METHODID_CREATE_RESERVATION))) - .addMethod( - getGetReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - this, METHODID_GET_RESERVATION))) - .addMethod( - getListReservationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse>( - this, METHODID_LIST_RESERVATIONS))) - .addMethod( - getUpdateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - this, METHODID_UPDATE_RESERVATION))) - .addMethod( - getDeleteReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_RESERVATION))) - .addMethod( - getListReservationTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( - this, METHODID_LIST_RESERVATION_TOPICS))) - .build(); - } - } - - /** - * - * - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static final class AdminServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AdminServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdminServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new topic.
-     * 
- */ - public void createTopic( - com.google.cloud.pubsublite.proto.CreateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the topic configuration.
-     * 
- */ - public void getTopic( - com.google.cloud.pubsublite.proto.GetTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public void getTopicPartitions( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public void listTopics( - com.google.cloud.pubsublite.proto.ListTopicsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified topic.
-     * 
- */ - public void updateTopic( - com.google.cloud.pubsublite.proto.UpdateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified topic.
-     * 
- */ - public void deleteTopic( - com.google.cloud.pubsublite.proto.DeleteTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public void listTopicSubscriptions( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new subscription.
-     * 
- */ - public void createSubscription( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the subscription configuration.
-     * 
- */ - public void getSubscription( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public void listSubscriptions( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public void updateSubscription( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified subscription.
-     * 
- */ - public void deleteSubscription( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public void seekSubscription( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new reservation.
-     * 
- */ - public void createReservation( - com.google.cloud.pubsublite.proto.CreateReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReservationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the reservation configuration.
-     * 
- */ - public void getReservation( - com.google.cloud.pubsublite.proto.GetReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReservationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public void listReservations( - com.google.cloud.pubsublite.proto.ListReservationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReservationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public void updateReservation( - com.google.cloud.pubsublite.proto.UpdateReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified reservation.
-     * 
- */ - public void deleteReservation( - com.google.cloud.pubsublite.proto.DeleteReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public void listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static final class AdminServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AdminServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdminServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Topic createTopic( - com.google.cloud.pubsublite.proto.CreateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTopicMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the topic configuration.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Topic getTopic( - com.google.cloud.pubsublite.proto.GetTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTopicMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.TopicPartitions getTopicPartitions( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTopicPartitionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListTopicsResponse listTopics( - com.google.cloud.pubsublite.proto.ListTopicsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTopicsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates properties of the specified topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Topic updateTopic( - com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTopicMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified topic.
-     * 
- */ - public com.google.protobuf.Empty deleteTopic( - com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTopicMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse listTopicSubscriptions( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new subscription.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Subscription createSubscription( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the subscription configuration.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Subscription getSubscription( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse listSubscriptions( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Subscription updateSubscription( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified subscription.
-     * 
- */ - public com.google.protobuf.Empty deleteSubscription( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public com.google.longrunning.Operation seekSubscription( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSeekSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new reservation.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Reservation createReservation( - com.google.cloud.pubsublite.proto.CreateReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateReservationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the reservation configuration.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Reservation getReservation( - com.google.cloud.pubsublite.proto.GetReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetReservationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListReservationsResponse listReservations( - com.google.cloud.pubsublite.proto.ListReservationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReservationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Reservation updateReservation( - com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateReservationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified reservation.
-     * 
- */ - public com.google.protobuf.Empty deleteReservation( - com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteReservationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReservationTopicsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static final class AdminServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AdminServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdminServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Topic> - createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the topic configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Topic> - getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTopicMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.TopicPartitions> - getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListTopicsResponse> - listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates properties of the specified topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Topic> - updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - listTopicSubscriptions( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Subscription> - createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the subscription configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Subscription> - getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> - listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Subscription> - updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Reservation> - createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateReservationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the reservation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Reservation> - getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetReservationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListReservationsResponse> - listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListReservationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Reservation> - updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> - listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_TOPIC = 0; - private static final int METHODID_GET_TOPIC = 1; - private static final int METHODID_GET_TOPIC_PARTITIONS = 2; - private static final int METHODID_LIST_TOPICS = 3; - private static final int METHODID_UPDATE_TOPIC = 4; - private static final int METHODID_DELETE_TOPIC = 5; - private static final int METHODID_LIST_TOPIC_SUBSCRIPTIONS = 6; - private static final int METHODID_CREATE_SUBSCRIPTION = 7; - private static final int METHODID_GET_SUBSCRIPTION = 8; - private static final int METHODID_LIST_SUBSCRIPTIONS = 9; - private static final int METHODID_UPDATE_SUBSCRIPTION = 10; - private static final int METHODID_DELETE_SUBSCRIPTION = 11; - private static final int METHODID_SEEK_SUBSCRIPTION = 12; - private static final int METHODID_CREATE_RESERVATION = 13; - private static final int METHODID_GET_RESERVATION = 14; - private static final int METHODID_LIST_RESERVATIONS = 15; - private static final int METHODID_UPDATE_RESERVATION = 16; - private static final int METHODID_DELETE_RESERVATION = 17; - private static final int METHODID_LIST_RESERVATION_TOPICS = 18; - - 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 AdminServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdminServiceImplBase 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_TOPIC: - serviceImpl.createTopic( - (com.google.cloud.pubsublite.proto.CreateTopicRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TOPIC: - serviceImpl.getTopic( - (com.google.cloud.pubsublite.proto.GetTopicRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TOPIC_PARTITIONS: - serviceImpl.getTopicPartitions( - (com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_TOPICS: - serviceImpl.listTopics( - (com.google.cloud.pubsublite.proto.ListTopicsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_TOPIC: - serviceImpl.updateTopic( - (com.google.cloud.pubsublite.proto.UpdateTopicRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TOPIC: - serviceImpl.deleteTopic( - (com.google.cloud.pubsublite.proto.DeleteTopicRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TOPIC_SUBSCRIPTIONS: - serviceImpl.listTopicSubscriptions( - (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>) - responseObserver); - break; - case METHODID_CREATE_SUBSCRIPTION: - serviceImpl.createSubscription( - (com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SUBSCRIPTION: - serviceImpl.getSubscription( - (com.google.cloud.pubsublite.proto.GetSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SUBSCRIPTIONS: - serviceImpl.listSubscriptions( - (com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>) - responseObserver); - break; - case METHODID_UPDATE_SUBSCRIPTION: - serviceImpl.updateSubscription( - (com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SUBSCRIPTION: - serviceImpl.deleteSubscription( - (com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEEK_SUBSCRIPTION: - serviceImpl.seekSubscription( - (com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_RESERVATION: - serviceImpl.createReservation( - (com.google.cloud.pubsublite.proto.CreateReservationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_RESERVATION: - serviceImpl.getReservation( - (com.google.cloud.pubsublite.proto.GetReservationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_RESERVATIONS: - serviceImpl.listReservations( - (com.google.cloud.pubsublite.proto.ListReservationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListReservationsResponse>) - responseObserver); - break; - case METHODID_UPDATE_RESERVATION: - serviceImpl.updateReservation( - (com.google.cloud.pubsublite.proto.UpdateReservationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_RESERVATION: - serviceImpl.deleteReservation( - (com.google.cloud.pubsublite.proto.DeleteReservationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RESERVATION_TOPICS: - serviceImpl.listReservationTopics( - (com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>) - 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 AdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdminServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AdminService"); - } - } - - private static final class AdminServiceFileDescriptorSupplier - extends AdminServiceBaseDescriptorSupplier { - AdminServiceFileDescriptorSupplier() {} - } - - private static final class AdminServiceMethodDescriptorSupplier - extends AdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdminServiceMethodDescriptorSupplier(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 (AdminServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdminServiceFileDescriptorSupplier()) - .addMethod(getCreateTopicMethod()) - .addMethod(getGetTopicMethod()) - .addMethod(getGetTopicPartitionsMethod()) - .addMethod(getListTopicsMethod()) - .addMethod(getUpdateTopicMethod()) - .addMethod(getDeleteTopicMethod()) - .addMethod(getListTopicSubscriptionsMethod()) - .addMethod(getCreateSubscriptionMethod()) - .addMethod(getGetSubscriptionMethod()) - .addMethod(getListSubscriptionsMethod()) - .addMethod(getUpdateSubscriptionMethod()) - .addMethod(getDeleteSubscriptionMethod()) - .addMethod(getSeekSubscriptionMethod()) - .addMethod(getCreateReservationMethod()) - .addMethod(getGetReservationMethod()) - .addMethod(getListReservationsMethod()) - .addMethod(getUpdateReservationMethod()) - .addMethod(getDeleteReservationMethod()) - .addMethod(getListReservationTopicsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java deleted file mode 100644 index f7383e8ce..000000000 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java +++ /dev/null @@ -1,598 +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.cloud.pubsublite.proto; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The service that a subscriber client application uses to manage committed
- * cursors while receiving messsages. A cursor represents a subscriber's
- * progress within a topic partition for a given subscription.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/pubsublite/v1/cursor.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CursorServiceGrpc { - - private CursorServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.CursorService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - getStreamingCommitCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingCommitCursor", - requestType = com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - getStreamingCommitCursorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - getStreamingCommitCursorMethod; - if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) - == null) { - synchronized (CursorServiceGrpc.class) { - if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) - == null) { - CursorServiceGrpc.getStreamingCommitCursorMethod = - getStreamingCommitCursorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "StreamingCommitCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CursorServiceMethodDescriptorSupplier("StreamingCommitCursor")) - .build(); - } - } - } - return getStreamingCommitCursorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CommitCursorRequest, - com.google.cloud.pubsublite.proto.CommitCursorResponse> - getCommitCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CommitCursor", - requestType = com.google.cloud.pubsublite.proto.CommitCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.CommitCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CommitCursorRequest, - com.google.cloud.pubsublite.proto.CommitCursorResponse> - getCommitCursorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CommitCursorRequest, - com.google.cloud.pubsublite.proto.CommitCursorResponse> - getCommitCursorMethod; - if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { - synchronized (CursorServiceGrpc.class) { - if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { - CursorServiceGrpc.getCommitCursorMethod = - getCommitCursorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CommitCursorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CommitCursorResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CursorServiceMethodDescriptorSupplier("CommitCursor")) - .build(); - } - } - } - return getCommitCursorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> - getListPartitionCursorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPartitionCursors", - requestType = com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> - getListPartitionCursorsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> - getListPartitionCursorsMethod; - if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) == null) { - synchronized (CursorServiceGrpc.class) { - if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) - == null) { - CursorServiceGrpc.getListPartitionCursorsMethod = - getListPartitionCursorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListPartitionCursors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CursorServiceMethodDescriptorSupplier("ListPartitionCursors")) - .build(); - } - } - } - return getListPartitionCursorsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CursorServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CursorServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceStub(channel, callOptions); - } - }; - return CursorServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CursorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CursorServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceBlockingStub(channel, callOptions); - } - }; - return CursorServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CursorServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CursorServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceFutureStub(channel, callOptions); - } - }; - return CursorServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public abstract static class CursorServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Establishes a stream with the server for managing committed cursors.
-     * 
- */ - public io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest> - streamingCommitCursor( - io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getStreamingCommitCursorMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the committed cursor.
-     * 
- */ - public void commitCursor( - com.google.cloud.pubsublite.proto.CommitCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCommitCursorMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public void listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPartitionCursorsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getStreamingCommitCursorMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse>( - this, METHODID_STREAMING_COMMIT_CURSOR))) - .addMethod( - getCommitCursorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CommitCursorRequest, - com.google.cloud.pubsublite.proto.CommitCursorResponse>( - this, METHODID_COMMIT_CURSOR))) - .addMethod( - getListPartitionCursorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( - this, METHODID_LIST_PARTITION_CURSORS))) - .build(); - } - } - - /** - * - * - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static final class CursorServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private CursorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CursorServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Establishes a stream with the server for managing committed cursors.
-     * 
- */ - public io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest> - streamingCommitCursor( - io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingCommitCursorMethod(), getCallOptions()), - responseObserver); - } - - /** - * - * - *
-     * Updates the committed cursor.
-     * 
- */ - public void commitCursor( - com.google.cloud.pubsublite.proto.CommitCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCommitCursorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public void listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static final class CursorServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CursorServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CursorServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Updates the committed cursor.
-     * 
- */ - public com.google.cloud.pubsublite.proto.CommitCursorResponse commitCursor( - com.google.cloud.pubsublite.proto.CommitCursorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCommitCursorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPartitionCursorsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static final class CursorServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CursorServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CursorServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Updates the committed cursor.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.CommitCursorResponse> - commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCommitCursorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> - listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_COMMIT_CURSOR = 0; - private static final int METHODID_LIST_PARTITION_CURSORS = 1; - private static final int METHODID_STREAMING_COMMIT_CURSOR = 2; - - 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 CursorServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CursorServiceImplBase 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_COMMIT_CURSOR: - serviceImpl.commitCursor( - (com.google.cloud.pubsublite.proto.CommitCursorRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_PARTITION_CURSORS: - serviceImpl.listPartitionCursors( - (com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>) - 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) { - case METHODID_STREAMING_COMMIT_CURSOR: - return (io.grpc.stub.StreamObserver) - serviceImpl.streamingCommitCursor( - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class CursorServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CursorServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CursorService"); - } - } - - private static final class CursorServiceFileDescriptorSupplier - extends CursorServiceBaseDescriptorSupplier { - CursorServiceFileDescriptorSupplier() {} - } - - private static final class CursorServiceMethodDescriptorSupplier - extends CursorServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CursorServiceMethodDescriptorSupplier(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 (CursorServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CursorServiceFileDescriptorSupplier()) - .addMethod(getStreamingCommitCursorMethod()) - .addMethod(getCommitCursorMethod()) - .addMethod(getListPartitionCursorsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java deleted file mode 100644 index 1e6bf1f45..000000000 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java +++ /dev/null @@ -1,643 +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.cloud.pubsublite.proto; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * This service allows users to get stats about messages in their topic.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/pubsublite/v1/topic_stats.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TopicStatsServiceGrpc { - - private TopicStatsServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.TopicStatsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> - getComputeMessageStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeMessageStats", - requestType = com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> - getComputeMessageStatsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> - getComputeMessageStatsMethod; - if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) - == null) { - synchronized (TopicStatsServiceGrpc.class) { - if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) - == null) { - TopicStatsServiceGrpc.getComputeMessageStatsMethod = - getComputeMessageStatsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ComputeMessageStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TopicStatsServiceMethodDescriptorSupplier("ComputeMessageStats")) - .build(); - } - } - } - return getComputeMessageStatsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> - getComputeHeadCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeHeadCursor", - requestType = com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> - getComputeHeadCursorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> - getComputeHeadCursorMethod; - if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) == null) { - synchronized (TopicStatsServiceGrpc.class) { - if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) - == null) { - TopicStatsServiceGrpc.getComputeHeadCursorMethod = - getComputeHeadCursorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeHeadCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TopicStatsServiceMethodDescriptorSupplier("ComputeHeadCursor")) - .build(); - } - } - } - return getComputeHeadCursorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> - getComputeTimeCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeTimeCursor", - requestType = com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> - getComputeTimeCursorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> - getComputeTimeCursorMethod; - if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) == null) { - synchronized (TopicStatsServiceGrpc.class) { - if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) - == null) { - TopicStatsServiceGrpc.getComputeTimeCursorMethod = - getComputeTimeCursorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeTimeCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TopicStatsServiceMethodDescriptorSupplier("ComputeTimeCursor")) - .build(); - } - } - } - return getComputeTimeCursorMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TopicStatsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TopicStatsServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceStub(channel, callOptions); - } - }; - return TopicStatsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TopicStatsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TopicStatsServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceBlockingStub(channel, callOptions); - } - }; - return TopicStatsServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TopicStatsServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TopicStatsServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceFutureStub(channel, callOptions); - } - }; - return TopicStatsServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public abstract static class TopicStatsServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public void computeMessageStats( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeMessageStatsMethod(), responseObserver); - } - - /** - * - * - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public void computeHeadCursor( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeHeadCursorMethod(), responseObserver); - } - - /** - * - * - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public void computeTimeCursor( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeTimeCursorMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getComputeMessageStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse>( - this, METHODID_COMPUTE_MESSAGE_STATS))) - .addMethod( - getComputeHeadCursorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse>( - this, METHODID_COMPUTE_HEAD_CURSOR))) - .addMethod( - getComputeTimeCursorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse>( - this, METHODID_COMPUTE_TIME_CURSOR))) - .build(); - } - } - - /** - * - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static final class TopicStatsServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TopicStatsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TopicStatsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public void computeMessageStats( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public void computeHeadCursor( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public void computeTimeCursor( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static final class TopicStatsServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TopicStatsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TopicStatsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse computeMessageStats( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeMessageStatsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse computeHeadCursor( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeHeadCursorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse computeTimeCursor( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeTimeCursorMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static final class TopicStatsServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TopicStatsServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TopicStatsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> - computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> - computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> - computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_COMPUTE_MESSAGE_STATS = 0; - private static final int METHODID_COMPUTE_HEAD_CURSOR = 1; - private static final int METHODID_COMPUTE_TIME_CURSOR = 2; - - 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 TopicStatsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TopicStatsServiceImplBase 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_COMPUTE_MESSAGE_STATS: - serviceImpl.computeMessageStats( - (com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse>) - responseObserver); - break; - case METHODID_COMPUTE_HEAD_CURSOR: - serviceImpl.computeHeadCursor( - (com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse>) - responseObserver); - break; - case METHODID_COMPUTE_TIME_CURSOR: - serviceImpl.computeTimeCursor( - (com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse>) - 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 TopicStatsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TopicStatsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TopicStatsService"); - } - } - - private static final class TopicStatsServiceFileDescriptorSupplier - extends TopicStatsServiceBaseDescriptorSupplier { - TopicStatsServiceFileDescriptorSupplier() {} - } - - private static final class TopicStatsServiceMethodDescriptorSupplier - extends TopicStatsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TopicStatsServiceMethodDescriptorSupplier(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 (TopicStatsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TopicStatsServiceFileDescriptorSupplier()) - .addMethod(getComputeMessageStatsMethod()) - .addMethod(getComputeHeadCursorMethod()) - .addMethod(getComputeTimeCursorMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java index 1f781b0da..58cd79004 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.pubsublite.proto.CreateReservationRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java index 2fc7acf3a..864bc9ccb 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java @@ -28,6 +28,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.pubsublite.proto.CommitCursorRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java index 0f34a11b6..a6be825d4 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.pubsublite.proto.PartitionAssignment; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java index db9027512..03be0dbb1 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.pubsublite.proto.PublishRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java index 1de8cec03..c64abebdb 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.pubsublite.proto.SubscribeRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java index 8c41df475..b9247a93f 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java @@ -24,6 +24,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +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.pubsublite.proto.ComputeHeadCursorRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java index 4db480db4..929fb8855 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java @@ -66,6 +66,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-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java index d1bd138db..f34349ea9 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java @@ -36,6 +36,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-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java index 400521f1c..57ebcd3f0 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java @@ -33,6 +33,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-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java new file mode 100644 index 000000000..a42b24cf2 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java @@ -0,0 +1,1545 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListReservationTopicsPagedResponse; +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListReservationsPagedResponse; +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListSubscriptionsPagedResponse; +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListTopicSubscriptionsPagedResponse; +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListTopicsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.CreateReservationRequest; +import com.google.cloud.pubsublite.proto.CreateSubscriptionRequest; +import com.google.cloud.pubsublite.proto.CreateTopicRequest; +import com.google.cloud.pubsublite.proto.DeleteReservationRequest; +import com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest; +import com.google.cloud.pubsublite.proto.DeleteTopicRequest; +import com.google.cloud.pubsublite.proto.ExportConfig; +import com.google.cloud.pubsublite.proto.GetReservationRequest; +import com.google.cloud.pubsublite.proto.GetSubscriptionRequest; +import com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest; +import com.google.cloud.pubsublite.proto.GetTopicRequest; +import com.google.cloud.pubsublite.proto.ListReservationTopicsRequest; +import com.google.cloud.pubsublite.proto.ListReservationTopicsResponse; +import com.google.cloud.pubsublite.proto.ListReservationsRequest; +import com.google.cloud.pubsublite.proto.ListReservationsResponse; +import com.google.cloud.pubsublite.proto.ListSubscriptionsRequest; +import com.google.cloud.pubsublite.proto.ListSubscriptionsResponse; +import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest; +import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse; +import com.google.cloud.pubsublite.proto.ListTopicsRequest; +import com.google.cloud.pubsublite.proto.ListTopicsResponse; +import com.google.cloud.pubsublite.proto.LocationName; +import com.google.cloud.pubsublite.proto.Reservation; +import com.google.cloud.pubsublite.proto.ReservationName; +import com.google.cloud.pubsublite.proto.SeekSubscriptionRequest; +import com.google.cloud.pubsublite.proto.SeekSubscriptionResponse; +import com.google.cloud.pubsublite.proto.Subscription; +import com.google.cloud.pubsublite.proto.SubscriptionName; +import com.google.cloud.pubsublite.proto.Topic; +import com.google.cloud.pubsublite.proto.TopicName; +import com.google.cloud.pubsublite.proto.TopicPartitions; +import com.google.cloud.pubsublite.proto.UpdateReservationRequest; +import com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest; +import com.google.cloud.pubsublite.proto.UpdateTopicRequest; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AdminServiceClientTest { + private static MockAdminService mockAdminService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AdminServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAdminService = new MockAdminService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockAdminService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AdminServiceSettings settings = + AdminServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AdminServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createTopicTest() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Topic topic = Topic.newBuilder().build(); + String topicId = "topicId-1139259734"; + + Topic actualResponse = client.createTopic(parent, topic, topicId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTopicRequest actualRequest = ((CreateTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(topicId, actualRequest.getTopicId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Topic topic = Topic.newBuilder().build(); + String topicId = "topicId-1139259734"; + client.createTopic(parent, topic, topicId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTopicTest2() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Topic topic = Topic.newBuilder().build(); + String topicId = "topicId-1139259734"; + + Topic actualResponse = client.createTopic(parent, topic, topicId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTopicRequest actualRequest = ((CreateTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(topicId, actualRequest.getTopicId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTopicExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + Topic topic = Topic.newBuilder().build(); + String topicId = "topicId-1139259734"; + client.createTopic(parent, topic, topicId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicTest() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + + Topic actualResponse = client.getTopic(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicRequest actualRequest = ((GetTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + client.getTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicTest2() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + Topic actualResponse = client.getTopic(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicRequest actualRequest = ((GetTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTopicExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicPartitionsTest() throws Exception { + TopicPartitions expectedResponse = + TopicPartitions.newBuilder().setPartitionCount(-1738969222).build(); + mockAdminService.addResponse(expectedResponse); + + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + + TopicPartitions actualResponse = client.getTopicPartitions(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicPartitionsRequest actualRequest = ((GetTopicPartitionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTopicPartitionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + client.getTopicPartitions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicPartitionsTest2() throws Exception { + TopicPartitions expectedResponse = + TopicPartitions.newBuilder().setPartitionCount(-1738969222).build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + TopicPartitions actualResponse = client.getTopicPartitions(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicPartitionsRequest actualRequest = ((GetTopicPartitionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTopicPartitionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getTopicPartitions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicsTest() throws Exception { + Topic responsesElement = Topic.newBuilder().build(); + ListTopicsResponse expectedResponse = + ListTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListTopicsPagedResponse pagedListResponse = client.listTopics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicsRequest actualRequest = ((ListTopicsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listTopics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicsTest2() throws Exception { + Topic responsesElement = Topic.newBuilder().build(); + ListTopicsResponse expectedResponse = + ListTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTopicsPagedResponse pagedListResponse = client.listTopics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicsRequest actualRequest = ((ListTopicsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTopics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTopicTest() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + Topic topic = Topic.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Topic actualResponse = client.updateTopic(topic, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTopicRequest actualRequest = ((UpdateTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + Topic topic = Topic.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTopic(topic, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTopicTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + + client.deleteTopic(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTopicRequest actualRequest = ((DeleteTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + client.deleteTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTopicTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteTopic(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTopicRequest actualRequest = ((DeleteTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTopicExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSubscriptionsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSubscriptionsResponse expectedResponse = + ListTopicSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + + ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicSubscriptionsRequest actualRequest = + ((ListTopicSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicSubscriptionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + client.listTopicSubscriptions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSubscriptionsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSubscriptionsResponse expectedResponse = + ListTopicSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicSubscriptionsRequest actualRequest = + ((ListTopicSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicSubscriptionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.listTopicSubscriptions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSubscriptionTest() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Subscription subscription = Subscription.newBuilder().build(); + String subscriptionId = "subscriptionId1478790936"; + + Subscription actualResponse = client.createSubscription(parent, subscription, subscriptionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSubscriptionRequest actualRequest = ((CreateSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(subscriptionId, actualRequest.getSubscriptionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Subscription subscription = Subscription.newBuilder().build(); + String subscriptionId = "subscriptionId1478790936"; + client.createSubscription(parent, subscription, subscriptionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSubscriptionTest2() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Subscription subscription = Subscription.newBuilder().build(); + String subscriptionId = "subscriptionId1478790936"; + + Subscription actualResponse = client.createSubscription(parent, subscription, subscriptionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSubscriptionRequest actualRequest = ((CreateSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(subscriptionId, actualRequest.getSubscriptionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSubscriptionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + Subscription subscription = Subscription.newBuilder().build(); + String subscriptionId = "subscriptionId1478790936"; + client.createSubscription(parent, subscription, subscriptionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSubscriptionTest() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + + Subscription actualResponse = client.getSubscription(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSubscriptionRequest actualRequest = ((GetSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + client.getSubscription(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSubscriptionTest2() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + Subscription actualResponse = client.getSubscription(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSubscriptionRequest actualRequest = ((GetSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSubscriptionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getSubscription(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubscriptionsTest() throws Exception { + Subscription responsesElement = Subscription.newBuilder().build(); + ListSubscriptionsResponse expectedResponse = + ListSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubscriptionsRequest actualRequest = ((ListSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubscriptionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSubscriptions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubscriptionsTest2() throws Exception { + Subscription responsesElement = Subscription.newBuilder().build(); + ListSubscriptionsResponse expectedResponse = + ListSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubscriptionsRequest actualRequest = ((ListSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubscriptionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSubscriptions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSubscriptionTest() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + Subscription subscription = Subscription.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Subscription actualResponse = client.updateSubscription(subscription, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSubscriptionRequest actualRequest = ((UpdateSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + Subscription subscription = Subscription.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSubscription(subscription, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubscriptionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + + client.deleteSubscription(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSubscriptionRequest actualRequest = ((DeleteSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + client.deleteSubscription(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubscriptionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSubscription(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSubscriptionRequest actualRequest = ((DeleteSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSubscriptionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSubscription(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void seekSubscriptionTest() throws Exception { + SeekSubscriptionResponse expectedResponse = SeekSubscriptionResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("seekSubscriptionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAdminService.addResponse(resultOperation); + + SeekSubscriptionRequest request = + SeekSubscriptionRequest.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .build(); + + SeekSubscriptionResponse actualResponse = client.seekSubscriptionAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SeekSubscriptionRequest actualRequest = ((SeekSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getNamedTarget(), actualRequest.getNamedTarget()); + Assert.assertEquals(request.getTimeTarget(), actualRequest.getTimeTarget()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void seekSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + SeekSubscriptionRequest request = + SeekSubscriptionRequest.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .build(); + client.seekSubscriptionAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createReservationTest() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Reservation reservation = Reservation.newBuilder().build(); + String reservationId = "reservationId1116965383"; + + Reservation actualResponse = client.createReservation(parent, reservation, reservationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateReservationRequest actualRequest = ((CreateReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(reservation, actualRequest.getReservation()); + Assert.assertEquals(reservationId, actualRequest.getReservationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReservationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Reservation reservation = Reservation.newBuilder().build(); + String reservationId = "reservationId1116965383"; + client.createReservation(parent, reservation, reservationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createReservationTest2() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Reservation reservation = Reservation.newBuilder().build(); + String reservationId = "reservationId1116965383"; + + Reservation actualResponse = client.createReservation(parent, reservation, reservationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateReservationRequest actualRequest = ((CreateReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(reservation, actualRequest.getReservation()); + Assert.assertEquals(reservationId, actualRequest.getReservationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReservationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + Reservation reservation = Reservation.newBuilder().build(); + String reservationId = "reservationId1116965383"; + client.createReservation(parent, reservation, reservationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReservationTest() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + + Reservation actualResponse = client.getReservation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetReservationRequest actualRequest = ((GetReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getReservationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + client.getReservation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReservationTest2() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + Reservation actualResponse = client.getReservation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetReservationRequest actualRequest = ((GetReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getReservationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getReservation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReservationsTest() throws Exception { + Reservation responsesElement = Reservation.newBuilder().build(); + ListReservationsResponse expectedResponse = + ListReservationsResponse.newBuilder() + .setNextPageToken("") + .addAllReservations(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListReservationsPagedResponse pagedListResponse = client.listReservations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReservationsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReservationsRequest actualRequest = ((ListReservationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReservationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listReservations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReservationsTest2() throws Exception { + Reservation responsesElement = Reservation.newBuilder().build(); + ListReservationsResponse expectedResponse = + ListReservationsResponse.newBuilder() + .setNextPageToken("") + .addAllReservations(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListReservationsPagedResponse pagedListResponse = client.listReservations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReservationsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReservationsRequest actualRequest = ((ListReservationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReservationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listReservations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateReservationTest() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + Reservation reservation = Reservation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Reservation actualResponse = client.updateReservation(reservation, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateReservationRequest actualRequest = ((UpdateReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(reservation, actualRequest.getReservation()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateReservationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + Reservation reservation = Reservation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateReservation(reservation, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReservationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + + client.deleteReservation(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReservationRequest actualRequest = ((DeleteReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReservationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + client.deleteReservation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReservationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteReservation(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReservationRequest actualRequest = ((DeleteReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReservationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteReservation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReservationTopicsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListReservationTopicsResponse expectedResponse = + ListReservationTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + + ListReservationTopicsPagedResponse pagedListResponse = client.listReservationTopics(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReservationTopicsRequest actualRequest = + ((ListReservationTopicsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReservationTopicsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + client.listReservationTopics(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReservationTopicsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListReservationTopicsResponse expectedResponse = + ListReservationTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + ListReservationTopicsPagedResponse pagedListResponse = client.listReservationTopics(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReservationTopicsRequest actualRequest = + ((ListReservationTopicsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReservationTopicsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.listReservationTopics(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java new file mode 100644 index 000000000..808d060a7 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java @@ -0,0 +1,278 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import static com.google.cloud.pubsublite.v1.CursorServiceClient.ListPartitionCursorsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.CommitCursorRequest; +import com.google.cloud.pubsublite.proto.CommitCursorResponse; +import com.google.cloud.pubsublite.proto.Cursor; +import com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest; +import com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse; +import com.google.cloud.pubsublite.proto.PartitionCursor; +import com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest; +import com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse; +import com.google.cloud.pubsublite.proto.SubscriptionName; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CursorServiceClientTest { + private static MockCursorService mockCursorService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private CursorServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockCursorService = new MockCursorService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockCursorService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + CursorServiceSettings settings = + CursorServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CursorServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void streamingCommitCursorTest() throws Exception { + StreamingCommitCursorResponse expectedResponse = + StreamingCommitCursorResponse.newBuilder().build(); + mockCursorService.addResponse(expectedResponse); + StreamingCommitCursorRequest request = StreamingCommitCursorRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingCommitCursorCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamingCommitCursorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCursorService.addException(exception); + StreamingCommitCursorRequest request = StreamingCommitCursorRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingCommitCursorCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void commitCursorTest() throws Exception { + CommitCursorResponse expectedResponse = CommitCursorResponse.newBuilder().build(); + mockCursorService.addResponse(expectedResponse); + + CommitCursorRequest request = + CommitCursorRequest.newBuilder() + .setSubscription("subscription341203229") + .setPartition(-1799810326) + .setCursor(Cursor.newBuilder().build()) + .build(); + + CommitCursorResponse actualResponse = client.commitCursor(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCursorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitCursorRequest actualRequest = ((CommitCursorRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSubscription(), actualRequest.getSubscription()); + Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); + Assert.assertEquals(request.getCursor(), actualRequest.getCursor()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitCursorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCursorService.addException(exception); + + try { + CommitCursorRequest request = + CommitCursorRequest.newBuilder() + .setSubscription("subscription341203229") + .setPartition(-1799810326) + .setCursor(Cursor.newBuilder().build()) + .build(); + client.commitCursor(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPartitionCursorsTest() throws Exception { + PartitionCursor responsesElement = PartitionCursor.newBuilder().build(); + ListPartitionCursorsResponse expectedResponse = + ListPartitionCursorsResponse.newBuilder() + .setNextPageToken("") + .addAllPartitionCursors(Arrays.asList(responsesElement)) + .build(); + mockCursorService.addResponse(expectedResponse); + + SubscriptionName parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + + ListPartitionCursorsPagedResponse pagedListResponse = client.listPartitionCursors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPartitionCursorsList().get(0), resources.get(0)); + + List actualRequests = mockCursorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPartitionCursorsRequest actualRequest = + ((ListPartitionCursorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPartitionCursorsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCursorService.addException(exception); + + try { + SubscriptionName parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + client.listPartitionCursors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPartitionCursorsTest2() throws Exception { + PartitionCursor responsesElement = PartitionCursor.newBuilder().build(); + ListPartitionCursorsResponse expectedResponse = + ListPartitionCursorsResponse.newBuilder() + .setNextPageToken("") + .addAllPartitionCursors(Arrays.asList(responsesElement)) + .build(); + mockCursorService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPartitionCursorsPagedResponse pagedListResponse = client.listPartitionCursors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPartitionCursorsList().get(0), resources.get(0)); + + List actualRequests = mockCursorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPartitionCursorsRequest actualRequest = + ((ListPartitionCursorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPartitionCursorsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCursorService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPartitionCursors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java new file mode 100644 index 000000000..e8f620e5f --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java @@ -0,0 +1,59 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAdminService implements MockGrpcService { + private final MockAdminServiceImpl serviceImpl; + + public MockAdminService() { + serviceImpl = new MockAdminServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java new file mode 100644 index 000000000..0c91ae213 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java @@ -0,0 +1,488 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.AdminServiceGrpc.AdminServiceImplBase; +import com.google.cloud.pubsublite.proto.CreateReservationRequest; +import com.google.cloud.pubsublite.proto.CreateSubscriptionRequest; +import com.google.cloud.pubsublite.proto.CreateTopicRequest; +import com.google.cloud.pubsublite.proto.DeleteReservationRequest; +import com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest; +import com.google.cloud.pubsublite.proto.DeleteTopicRequest; +import com.google.cloud.pubsublite.proto.GetReservationRequest; +import com.google.cloud.pubsublite.proto.GetSubscriptionRequest; +import com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest; +import com.google.cloud.pubsublite.proto.GetTopicRequest; +import com.google.cloud.pubsublite.proto.ListReservationTopicsRequest; +import com.google.cloud.pubsublite.proto.ListReservationTopicsResponse; +import com.google.cloud.pubsublite.proto.ListReservationsRequest; +import com.google.cloud.pubsublite.proto.ListReservationsResponse; +import com.google.cloud.pubsublite.proto.ListSubscriptionsRequest; +import com.google.cloud.pubsublite.proto.ListSubscriptionsResponse; +import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest; +import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse; +import com.google.cloud.pubsublite.proto.ListTopicsRequest; +import com.google.cloud.pubsublite.proto.ListTopicsResponse; +import com.google.cloud.pubsublite.proto.Reservation; +import com.google.cloud.pubsublite.proto.SeekSubscriptionRequest; +import com.google.cloud.pubsublite.proto.Subscription; +import com.google.cloud.pubsublite.proto.Topic; +import com.google.cloud.pubsublite.proto.TopicPartitions; +import com.google.cloud.pubsublite.proto.UpdateReservationRequest; +import com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest; +import com.google.cloud.pubsublite.proto.UpdateTopicRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAdminServiceImpl extends AdminServiceImplBase { + private List requests; + private Queue responses; + + public MockAdminServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createTopic(CreateTopicRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Topic) { + requests.add(request); + responseObserver.onNext(((Topic) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Topic.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTopic(GetTopicRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Topic) { + requests.add(request); + responseObserver.onNext(((Topic) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Topic.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTopicPartitions( + GetTopicPartitionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TopicPartitions) { + requests.add(request); + responseObserver.onNext(((TopicPartitions) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTopicPartitions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TopicPartitions.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTopics( + ListTopicsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTopicsResponse) { + requests.add(request); + responseObserver.onNext(((ListTopicsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTopics, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTopicsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTopic(UpdateTopicRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Topic) { + requests.add(request); + responseObserver.onNext(((Topic) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Topic.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTopic(DeleteTopicRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTopicSubscriptions( + ListTopicSubscriptionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTopicSubscriptionsResponse) { + requests.add(request); + responseObserver.onNext(((ListTopicSubscriptionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTopicSubscriptions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTopicSubscriptionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSubscription( + CreateSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Subscription) { + requests.add(request); + responseObserver.onNext(((Subscription) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Subscription.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSubscription( + GetSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Subscription) { + requests.add(request); + responseObserver.onNext(((Subscription) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Subscription.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSubscriptions( + ListSubscriptionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSubscriptionsResponse) { + requests.add(request); + responseObserver.onNext(((ListSubscriptionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSubscriptions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSubscriptionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSubscription( + UpdateSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Subscription) { + requests.add(request); + responseObserver.onNext(((Subscription) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Subscription.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSubscription( + DeleteSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void seekSubscription( + SeekSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SeekSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createReservation( + CreateReservationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Reservation) { + requests.add(request); + responseObserver.onNext(((Reservation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateReservation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Reservation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getReservation( + GetReservationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Reservation) { + requests.add(request); + responseObserver.onNext(((Reservation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetReservation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Reservation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listReservations( + ListReservationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListReservationsResponse) { + requests.add(request); + responseObserver.onNext(((ListReservationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListReservations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListReservationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateReservation( + UpdateReservationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Reservation) { + requests.add(request); + responseObserver.onNext(((Reservation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateReservation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Reservation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteReservation( + DeleteReservationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteReservation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listReservationTopics( + ListReservationTopicsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListReservationTopicsResponse) { + requests.add(request); + responseObserver.onNext(((ListReservationTopicsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListReservationTopics, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListReservationTopicsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java new file mode 100644 index 000000000..ce15f46bb --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java @@ -0,0 +1,59 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCursorService implements MockGrpcService { + private final MockCursorServiceImpl serviceImpl; + + public MockCursorService() { + serviceImpl = new MockCursorServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java new file mode 100644 index 000000000..bf9528f5d --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java @@ -0,0 +1,146 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.CommitCursorRequest; +import com.google.cloud.pubsublite.proto.CommitCursorResponse; +import com.google.cloud.pubsublite.proto.CursorServiceGrpc.CursorServiceImplBase; +import com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest; +import com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse; +import com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest; +import com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCursorServiceImpl extends CursorServiceImplBase { + private List requests; + private Queue responses; + + public MockCursorServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver streamingCommitCursor( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(StreamingCommitCursorRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof StreamingCommitCursorResponse) { + responseObserver.onNext(((StreamingCommitCursorResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StreamingCommitCursor, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StreamingCommitCursorResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } + + @Override + public void commitCursor( + CommitCursorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CommitCursorResponse) { + requests.add(request); + responseObserver.onNext(((CommitCursorResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CommitCursor, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CommitCursorResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPartitionCursors( + ListPartitionCursorsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPartitionCursorsResponse) { + requests.add(request); + responseObserver.onNext(((ListPartitionCursorsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListPartitionCursors, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPartitionCursorsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java new file mode 100644 index 000000000..d32b38637 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java @@ -0,0 +1,59 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPartitionAssignmentService implements MockGrpcService { + private final MockPartitionAssignmentServiceImpl serviceImpl; + + public MockPartitionAssignmentService() { + serviceImpl = new MockPartitionAssignmentServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java new file mode 100644 index 000000000..3835281b3 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java @@ -0,0 +1,99 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.PartitionAssignment; +import com.google.cloud.pubsublite.proto.PartitionAssignmentRequest; +import com.google.cloud.pubsublite.proto.PartitionAssignmentServiceGrpc.PartitionAssignmentServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPartitionAssignmentServiceImpl extends PartitionAssignmentServiceImplBase { + private List requests; + private Queue responses; + + public MockPartitionAssignmentServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver assignPartitions( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(PartitionAssignmentRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof PartitionAssignment) { + responseObserver.onNext(((PartitionAssignment) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AssignPartitions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PartitionAssignment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java new file mode 100644 index 000000000..cb02abcb5 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java @@ -0,0 +1,59 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPublisherService implements MockGrpcService { + private final MockPublisherServiceImpl serviceImpl; + + public MockPublisherService() { + serviceImpl = new MockPublisherServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java new file mode 100644 index 000000000..128744137 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java @@ -0,0 +1,99 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.PublishRequest; +import com.google.cloud.pubsublite.proto.PublishResponse; +import com.google.cloud.pubsublite.proto.PublisherServiceGrpc.PublisherServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPublisherServiceImpl extends PublisherServiceImplBase { + private List requests; + private Queue responses; + + public MockPublisherServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver publish( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(PublishRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof PublishResponse) { + responseObserver.onNext(((PublishResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Publish, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PublishResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java new file mode 100644 index 000000000..8daf5018d --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java @@ -0,0 +1,59 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSubscriberService implements MockGrpcService { + private final MockSubscriberServiceImpl serviceImpl; + + public MockSubscriberService() { + serviceImpl = new MockSubscriberServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java new file mode 100644 index 000000000..92489cd69 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java @@ -0,0 +1,99 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.SubscribeRequest; +import com.google.cloud.pubsublite.proto.SubscribeResponse; +import com.google.cloud.pubsublite.proto.SubscriberServiceGrpc.SubscriberServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSubscriberServiceImpl extends SubscriberServiceImplBase { + private List requests; + private Queue responses; + + public MockSubscriberServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver subscribe( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(SubscribeRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof SubscribeResponse) { + responseObserver.onNext(((SubscribeResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Subscribe, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SubscribeResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java new file mode 100644 index 000000000..049c5df1b --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java @@ -0,0 +1,59 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTopicStatsService implements MockGrpcService { + private final MockTopicStatsServiceImpl serviceImpl; + + public MockTopicStatsService() { + serviceImpl = new MockTopicStatsServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java new file mode 100644 index 000000000..dfd0f10e7 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java @@ -0,0 +1,132 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest; +import com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse; +import com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest; +import com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse; +import com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest; +import com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse; +import com.google.cloud.pubsublite.proto.TopicStatsServiceGrpc.TopicStatsServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTopicStatsServiceImpl extends TopicStatsServiceImplBase { + private List requests; + private Queue responses; + + public MockTopicStatsServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void computeMessageStats( + ComputeMessageStatsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeMessageStatsResponse) { + requests.add(request); + responseObserver.onNext(((ComputeMessageStatsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ComputeMessageStats, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeMessageStatsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void computeHeadCursor( + ComputeHeadCursorRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeHeadCursorResponse) { + requests.add(request); + responseObserver.onNext(((ComputeHeadCursorResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ComputeHeadCursor, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeHeadCursorResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void computeTimeCursor( + ComputeTimeCursorRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeTimeCursorResponse) { + requests.add(request); + responseObserver.onNext(((ComputeTimeCursorResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ComputeTimeCursor, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeTimeCursorResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java new file mode 100644 index 000000000..1877f4e18 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java @@ -0,0 +1,130 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.PartitionAssignment; +import com.google.cloud.pubsublite.proto.PartitionAssignmentRequest; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class PartitionAssignmentServiceClientTest { + private static MockPartitionAssignmentService mockPartitionAssignmentService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private PartitionAssignmentServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockPartitionAssignmentService = new MockPartitionAssignmentService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockPartitionAssignmentService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + PartitionAssignmentServiceSettings settings = + PartitionAssignmentServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PartitionAssignmentServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void assignPartitionsTest() throws Exception { + PartitionAssignment expectedResponse = + PartitionAssignment.newBuilder().addAllPartitions(new ArrayList()).build(); + mockPartitionAssignmentService.addResponse(expectedResponse); + PartitionAssignmentRequest request = PartitionAssignmentRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.assignPartitionsCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void assignPartitionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPartitionAssignmentService.addException(exception); + PartitionAssignmentRequest request = PartitionAssignmentRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.assignPartitionsCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java new file mode 100644 index 000000000..261118f70 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java @@ -0,0 +1,125 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.PublishRequest; +import com.google.cloud.pubsublite.proto.PublishResponse; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class PublisherServiceClientTest { + private static MockPublisherService mockPublisherService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private PublisherServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockPublisherService = new MockPublisherService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockPublisherService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + PublisherServiceSettings settings = + PublisherServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PublisherServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void publishTest() throws Exception { + PublishResponse expectedResponse = PublishResponse.newBuilder().build(); + mockPublisherService.addResponse(expectedResponse); + PublishRequest request = PublishRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = client.publishCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void publishExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisherService.addException(exception); + PublishRequest request = PublishRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = client.publishCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java new file mode 100644 index 000000000..b97ede8d3 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java @@ -0,0 +1,127 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.SubscribeRequest; +import com.google.cloud.pubsublite.proto.SubscribeResponse; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SubscriberServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockSubscriberService mockSubscriberService; + private LocalChannelProvider channelProvider; + private SubscriberServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSubscriberService = new MockSubscriberService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockSubscriberService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SubscriberServiceSettings settings = + SubscriberServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SubscriberServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void subscribeTest() throws Exception { + SubscribeResponse expectedResponse = SubscribeResponse.newBuilder().build(); + mockSubscriberService.addResponse(expectedResponse); + SubscribeRequest request = SubscribeRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.subscribeCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void subscribeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriberService.addException(exception); + SubscribeRequest request = SubscribeRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.subscribeCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java new file mode 100644 index 000000000..f6f287fb9 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java @@ -0,0 +1,236 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.pubsublite.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest; +import com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse; +import com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest; +import com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse; +import com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest; +import com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse; +import com.google.cloud.pubsublite.proto.Cursor; +import com.google.cloud.pubsublite.proto.TimeTarget; +import com.google.cloud.pubsublite.proto.TopicName; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TopicStatsServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTopicStatsService mockTopicStatsService; + private LocalChannelProvider channelProvider; + private TopicStatsServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTopicStatsService = new MockTopicStatsService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTopicStatsService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TopicStatsServiceSettings settings = + TopicStatsServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TopicStatsServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void computeMessageStatsTest() throws Exception { + ComputeMessageStatsResponse expectedResponse = + ComputeMessageStatsResponse.newBuilder() + .setMessageCount(-1229303081) + .setMessageBytes(-1229929933) + .setMinimumPublishTime(Timestamp.newBuilder().build()) + .setMinimumEventTime(Timestamp.newBuilder().build()) + .build(); + mockTopicStatsService.addResponse(expectedResponse); + + ComputeMessageStatsRequest request = + ComputeMessageStatsRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .setStartCursor(Cursor.newBuilder().build()) + .setEndCursor(Cursor.newBuilder().build()) + .build(); + + ComputeMessageStatsResponse actualResponse = client.computeMessageStats(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTopicStatsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeMessageStatsRequest actualRequest = ((ComputeMessageStatsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); + Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); + Assert.assertEquals(request.getStartCursor(), actualRequest.getStartCursor()); + Assert.assertEquals(request.getEndCursor(), actualRequest.getEndCursor()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeMessageStatsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTopicStatsService.addException(exception); + + try { + ComputeMessageStatsRequest request = + ComputeMessageStatsRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .setStartCursor(Cursor.newBuilder().build()) + .setEndCursor(Cursor.newBuilder().build()) + .build(); + client.computeMessageStats(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeHeadCursorTest() throws Exception { + ComputeHeadCursorResponse expectedResponse = + ComputeHeadCursorResponse.newBuilder().setHeadCursor(Cursor.newBuilder().build()).build(); + mockTopicStatsService.addResponse(expectedResponse); + + ComputeHeadCursorRequest request = + ComputeHeadCursorRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .build(); + + ComputeHeadCursorResponse actualResponse = client.computeHeadCursor(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTopicStatsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeHeadCursorRequest actualRequest = ((ComputeHeadCursorRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); + Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeHeadCursorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTopicStatsService.addException(exception); + + try { + ComputeHeadCursorRequest request = + ComputeHeadCursorRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .build(); + client.computeHeadCursor(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeTimeCursorTest() throws Exception { + ComputeTimeCursorResponse expectedResponse = + ComputeTimeCursorResponse.newBuilder().setCursor(Cursor.newBuilder().build()).build(); + mockTopicStatsService.addResponse(expectedResponse); + + ComputeTimeCursorRequest request = + ComputeTimeCursorRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .setTarget(TimeTarget.newBuilder().build()) + .build(); + + ComputeTimeCursorResponse actualResponse = client.computeTimeCursor(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTopicStatsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeTimeCursorRequest actualRequest = ((ComputeTimeCursorRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); + Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); + Assert.assertEquals(request.getTarget(), actualRequest.getTarget()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeTimeCursorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTopicStatsService.addException(exception); + + try { + ComputeTimeCursorRequest request = + ComputeTimeCursorRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .setTarget(TimeTarget.newBuilder().build()) + .build(); + client.computeTimeCursor(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java new file mode 100644 index 000000000..abb71b7e9 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java @@ -0,0 +1,1924 @@ +package com.google.cloud.pubsublite.proto; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The service that a client application uses to manage topics and
+ * subscriptions, such creating, listing, and deleting topics and subscriptions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/pubsublite/v1/admin.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdminServiceGrpc { + + private AdminServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.AdminService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTopic", + requestType = com.google.cloud.pubsublite.proto.CreateTopicRequest.class, + responseType = com.google.cloud.pubsublite.proto.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateTopicMethod() { + io.grpc.MethodDescriptor getCreateTopicMethod; + if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.CreateTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateTopic")) + .build(); + } + } + } + return getCreateTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTopic", + requestType = com.google.cloud.pubsublite.proto.GetTopicRequest.class, + responseType = com.google.cloud.pubsublite.proto.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTopicMethod() { + io.grpc.MethodDescriptor getGetTopicMethod; + if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.GetTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetTopic")) + .build(); + } + } + } + return getGetTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetTopicPartitionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTopicPartitions", + requestType = com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, + responseType = com.google.cloud.pubsublite.proto.TopicPartitions.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTopicPartitionsMethod() { + io.grpc.MethodDescriptor getGetTopicPartitionsMethod; + if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { + AdminServiceGrpc.getGetTopicPartitionsMethod = getGetTopicPartitionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopicPartitions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.TopicPartitions.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetTopicPartitions")) + .build(); + } + } + } + return getGetTopicPartitionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTopicsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTopics", + requestType = com.google.cloud.pubsublite.proto.ListTopicsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListTopicsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTopicsMethod() { + io.grpc.MethodDescriptor getListTopicsMethod; + if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListTopicsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListTopics")) + .build(); + } + } + } + return getListTopicsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTopic", + requestType = com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, + responseType = com.google.cloud.pubsublite.proto.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateTopicMethod() { + io.grpc.MethodDescriptor getUpdateTopicMethod; + if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.UpdateTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateTopic")) + .build(); + } + } + } + return getUpdateTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTopic", + requestType = com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteTopicMethod() { + io.grpc.MethodDescriptor getDeleteTopicMethod; + if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.DeleteTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteTopic")) + .build(); + } + } + } + return getDeleteTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTopicSubscriptionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions", + requestType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTopicSubscriptionsMethod() { + io.grpc.MethodDescriptor getListTopicSubscriptionsMethod; + if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListTopicSubscriptions")) + .build(); + } + } + } + return getListTopicSubscriptionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSubscription", + requestType = com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, + responseType = com.google.cloud.pubsublite.proto.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSubscriptionMethod() { + io.grpc.MethodDescriptor getCreateSubscriptionMethod; + if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.CreateSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateSubscription")) + .build(); + } + } + } + return getCreateSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSubscription", + requestType = com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, + responseType = com.google.cloud.pubsublite.proto.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSubscriptionMethod() { + io.grpc.MethodDescriptor getGetSubscriptionMethod; + if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.GetSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetSubscription")) + .build(); + } + } + } + return getGetSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSubscriptionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSubscriptions", + requestType = com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSubscriptionsMethod() { + io.grpc.MethodDescriptor getListSubscriptionsMethod; + if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListSubscriptions")) + .build(); + } + } + } + return getListSubscriptionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSubscription", + requestType = com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, + responseType = com.google.cloud.pubsublite.proto.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSubscriptionMethod() { + io.grpc.MethodDescriptor getUpdateSubscriptionMethod; + if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.UpdateSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateSubscription")) + .build(); + } + } + } + return getUpdateSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSubscription", + requestType = com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSubscriptionMethod() { + io.grpc.MethodDescriptor getDeleteSubscriptionMethod; + if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.DeleteSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteSubscription")) + .build(); + } + } + } + return getDeleteSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getSeekSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SeekSubscription", + requestType = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSeekSubscriptionMethod() { + io.grpc.MethodDescriptor getSeekSubscriptionMethod; + if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { + AdminServiceGrpc.getSeekSubscriptionMethod = getSeekSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SeekSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("SeekSubscription")) + .build(); + } + } + } + return getSeekSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateReservation", + requestType = com.google.cloud.pubsublite.proto.CreateReservationRequest.class, + responseType = com.google.cloud.pubsublite.proto.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateReservationMethod() { + io.grpc.MethodDescriptor getCreateReservationMethod; + if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { + AdminServiceGrpc.getCreateReservationMethod = getCreateReservationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CreateReservationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateReservation")) + .build(); + } + } + } + return getCreateReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetReservation", + requestType = com.google.cloud.pubsublite.proto.GetReservationRequest.class, + responseType = com.google.cloud.pubsublite.proto.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetReservationMethod() { + io.grpc.MethodDescriptor getGetReservationMethod; + if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { + AdminServiceGrpc.getGetReservationMethod = getGetReservationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.GetReservationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetReservation")) + .build(); + } + } + } + return getGetReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListReservationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReservations", + requestType = com.google.cloud.pubsublite.proto.ListReservationsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListReservationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListReservationsMethod() { + io.grpc.MethodDescriptor getListReservationsMethod; + if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { + AdminServiceGrpc.getListReservationsMethod = getListReservationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListReservations")) + .build(); + } + } + } + return getListReservationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateReservation", + requestType = com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, + responseType = com.google.cloud.pubsublite.proto.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateReservationMethod() { + io.grpc.MethodDescriptor getUpdateReservationMethod; + if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { + AdminServiceGrpc.getUpdateReservationMethod = getUpdateReservationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.UpdateReservationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateReservation")) + .build(); + } + } + } + return getUpdateReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteReservation", + requestType = com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteReservationMethod() { + io.grpc.MethodDescriptor getDeleteReservationMethod; + if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { + AdminServiceGrpc.getDeleteReservationMethod = getDeleteReservationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.DeleteReservationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteReservation")) + .build(); + } + } + } + return getDeleteReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListReservationTopicsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReservationTopics", + requestType = com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListReservationTopicsMethod() { + io.grpc.MethodDescriptor getListReservationTopicsMethod; + if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) == null) { + AdminServiceGrpc.getListReservationTopicsMethod = getListReservationTopicsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservationTopics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListReservationTopics")) + .build(); + } + } + } + return getListReservationTopicsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AdminServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdminServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceStub(channel, callOptions); + } + }; + return AdminServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdminServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdminServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceBlockingStub(channel, callOptions); + } + }; + return AdminServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AdminServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdminServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceFutureStub(channel, callOptions); + } + }; + return AdminServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static abstract class AdminServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new topic.
+     * 
+ */ + public void createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); + } + + /** + *
+     * Returns the topic configuration.
+     * 
+ */ + public void getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); + } + + /** + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public void getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicPartitionsMethod(), responseObserver); + } + + /** + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public void listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); + } + + /** + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public void updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTopicMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified topic.
+     * 
+ */ + public void deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTopicMethod(), responseObserver); + } + + /** + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public void listTopicSubscriptions(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethod(), responseObserver); + } + + /** + *
+     * Creates a new subscription.
+     * 
+ */ + public void createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Returns the subscription configuration.
+     * 
+ */ + public void getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public void listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSubscriptionsMethod(), responseObserver); + } + + /** + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public void updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified subscription.
+     * 
+ */ + public void deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public void seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSeekSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Creates a new reservation.
+     * 
+ */ + public void createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReservationMethod(), responseObserver); + } + + /** + *
+     * Returns the reservation configuration.
+     * 
+ */ + public void getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReservationMethod(), responseObserver); + } + + /** + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public void listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReservationsMethod(), responseObserver); + } + + /** + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public void updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateReservationMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified reservation.
+     * 
+ */ + public void deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteReservationMethod(), responseObserver); + } + + /** + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public void listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReservationTopicsMethod(), responseObserver); + } + + @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.cloud.pubsublite.proto.CreateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>( + this, METHODID_CREATE_TOPIC))) + .addMethod( + getGetTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicRequest, + com.google.cloud.pubsublite.proto.Topic>( + this, METHODID_GET_TOPIC))) + .addMethod( + getGetTopicPartitionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, + com.google.cloud.pubsublite.proto.TopicPartitions>( + this, METHODID_GET_TOPIC_PARTITIONS))) + .addMethod( + getListTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListTopicsRequest, + com.google.cloud.pubsublite.proto.ListTopicsResponse>( + this, METHODID_LIST_TOPICS))) + .addMethod( + getUpdateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>( + this, METHODID_UPDATE_TOPIC))) + .addMethod( + getDeleteTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteTopicRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_TOPIC))) + .addMethod( + getListTopicSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( + this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) + .addMethod( + getCreateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + this, METHODID_CREATE_SUBSCRIPTION))) + .addMethod( + getGetSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + this, METHODID_GET_SUBSCRIPTION))) + .addMethod( + getListSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( + this, METHODID_LIST_SUBSCRIPTIONS))) + .addMethod( + getUpdateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + this, METHODID_UPDATE_SUBSCRIPTION))) + .addMethod( + getDeleteSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SUBSCRIPTION))) + .addMethod( + getSeekSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, + com.google.longrunning.Operation>( + this, METHODID_SEEK_SUBSCRIPTION))) + .addMethod( + getCreateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + this, METHODID_CREATE_RESERVATION))) + .addMethod( + getGetReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + this, METHODID_GET_RESERVATION))) + .addMethod( + getListReservationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationsRequest, + com.google.cloud.pubsublite.proto.ListReservationsResponse>( + this, METHODID_LIST_RESERVATIONS))) + .addMethod( + getUpdateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + this, METHODID_UPDATE_RESERVATION))) + .addMethod( + getDeleteReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteReservationRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_RESERVATION))) + .addMethod( + getListReservationTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( + this, METHODID_LIST_RESERVATION_TOPICS))) + .build(); + } + } + + /** + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static final class AdminServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AdminServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdminServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a new topic.
+     * 
+ */ + public void createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the topic configuration.
+     * 
+ */ + public void getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public void getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public void listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public void updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified topic.
+     * 
+ */ + public void deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public void listTopicSubscriptions(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new subscription.
+     * 
+ */ + public void createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the subscription configuration.
+     * 
+ */ + public void getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public void listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public void updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified subscription.
+     * 
+ */ + public void deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public void seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new reservation.
+     * 
+ */ + public void createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateReservationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the reservation configuration.
+     * 
+ */ + public void getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetReservationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public void listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReservationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public void updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified reservation.
+     * 
+ */ + public void deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public void listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static final class AdminServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AdminServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdminServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Topic createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTopicMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the topic configuration.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Topic getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTopicMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.TopicPartitions getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTopicPartitionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListTopicsResponse listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Topic updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTopicMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified topic.
+     * 
+ */ + public com.google.protobuf.Empty deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTopicMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new subscription.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Subscription createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the subscription configuration.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Subscription getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Subscription updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified subscription.
+     * 
+ */ + public com.google.protobuf.Empty deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public com.google.longrunning.Operation seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSeekSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new reservation.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Reservation createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateReservationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the reservation configuration.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Reservation getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReservationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListReservationsResponse listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReservationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Reservation updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateReservationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified reservation.
+     * 
+ */ + public com.google.protobuf.Empty deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteReservationMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReservationTopicsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static final class AdminServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AdminServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdminServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createTopic( + com.google.cloud.pubsublite.proto.CreateTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the topic configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTopic( + com.google.cloud.pubsublite.proto.GetTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTopicMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTopicPartitions( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTopics( + com.google.cloud.pubsublite.proto.ListTopicsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateTopic( + com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteTopic( + com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSubscription( + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the subscription configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSubscription( + com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSubscriptions( + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSubscription( + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSubscription( + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture seekSubscription( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createReservation( + com.google.cloud.pubsublite.proto.CreateReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateReservationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the reservation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getReservation( + com.google.cloud.pubsublite.proto.GetReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetReservationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listReservations( + com.google.cloud.pubsublite.proto.ListReservationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReservationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateReservation( + com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteReservation( + com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listReservationTopics( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_TOPIC = 0; + private static final int METHODID_GET_TOPIC = 1; + private static final int METHODID_GET_TOPIC_PARTITIONS = 2; + private static final int METHODID_LIST_TOPICS = 3; + private static final int METHODID_UPDATE_TOPIC = 4; + private static final int METHODID_DELETE_TOPIC = 5; + private static final int METHODID_LIST_TOPIC_SUBSCRIPTIONS = 6; + private static final int METHODID_CREATE_SUBSCRIPTION = 7; + private static final int METHODID_GET_SUBSCRIPTION = 8; + private static final int METHODID_LIST_SUBSCRIPTIONS = 9; + private static final int METHODID_UPDATE_SUBSCRIPTION = 10; + private static final int METHODID_DELETE_SUBSCRIPTION = 11; + private static final int METHODID_SEEK_SUBSCRIPTION = 12; + private static final int METHODID_CREATE_RESERVATION = 13; + private static final int METHODID_GET_RESERVATION = 14; + private static final int METHODID_LIST_RESERVATIONS = 15; + private static final int METHODID_UPDATE_RESERVATION = 16; + private static final int METHODID_DELETE_RESERVATION = 17; + private static final int METHODID_LIST_RESERVATION_TOPICS = 18; + + 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 AdminServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdminServiceImplBase 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_TOPIC: + serviceImpl.createTopic((com.google.cloud.pubsublite.proto.CreateTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TOPIC: + serviceImpl.getTopic((com.google.cloud.pubsublite.proto.GetTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TOPIC_PARTITIONS: + serviceImpl.getTopicPartitions((com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TOPICS: + serviceImpl.listTopics((com.google.cloud.pubsublite.proto.ListTopicsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_TOPIC: + serviceImpl.updateTopic((com.google.cloud.pubsublite.proto.UpdateTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TOPIC: + serviceImpl.deleteTopic((com.google.cloud.pubsublite.proto.DeleteTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TOPIC_SUBSCRIPTIONS: + serviceImpl.listTopicSubscriptions((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SUBSCRIPTION: + serviceImpl.createSubscription((com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SUBSCRIPTION: + serviceImpl.getSubscription((com.google.cloud.pubsublite.proto.GetSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SUBSCRIPTIONS: + serviceImpl.listSubscriptions((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SUBSCRIPTION: + serviceImpl.updateSubscription((com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SUBSCRIPTION: + serviceImpl.deleteSubscription((com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEEK_SUBSCRIPTION: + serviceImpl.seekSubscription((com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_RESERVATION: + serviceImpl.createReservation((com.google.cloud.pubsublite.proto.CreateReservationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RESERVATION: + serviceImpl.getReservation((com.google.cloud.pubsublite.proto.GetReservationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RESERVATIONS: + serviceImpl.listReservations((com.google.cloud.pubsublite.proto.ListReservationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_RESERVATION: + serviceImpl.updateReservation((com.google.cloud.pubsublite.proto.UpdateReservationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RESERVATION: + serviceImpl.deleteReservation((com.google.cloud.pubsublite.proto.DeleteReservationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RESERVATION_TOPICS: + serviceImpl.listReservationTopics((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) 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 AdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdminServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AdminService"); + } + } + + private static final class AdminServiceFileDescriptorSupplier + extends AdminServiceBaseDescriptorSupplier { + AdminServiceFileDescriptorSupplier() {} + } + + private static final class AdminServiceMethodDescriptorSupplier + extends AdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdminServiceMethodDescriptorSupplier(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 (AdminServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdminServiceFileDescriptorSupplier()) + .addMethod(getCreateTopicMethod()) + .addMethod(getGetTopicMethod()) + .addMethod(getGetTopicPartitionsMethod()) + .addMethod(getListTopicsMethod()) + .addMethod(getUpdateTopicMethod()) + .addMethod(getDeleteTopicMethod()) + .addMethod(getListTopicSubscriptionsMethod()) + .addMethod(getCreateSubscriptionMethod()) + .addMethod(getGetSubscriptionMethod()) + .addMethod(getListSubscriptionsMethod()) + .addMethod(getUpdateSubscriptionMethod()) + .addMethod(getDeleteSubscriptionMethod()) + .addMethod(getSeekSubscriptionMethod()) + .addMethod(getCreateReservationMethod()) + .addMethod(getGetReservationMethod()) + .addMethod(getListReservationsMethod()) + .addMethod(getUpdateReservationMethod()) + .addMethod(getDeleteReservationMethod()) + .addMethod(getListReservationTopicsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java new file mode 100644 index 000000000..25dd459e0 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java @@ -0,0 +1,463 @@ +package com.google.cloud.pubsublite.proto; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The service that a subscriber client application uses to manage committed
+ * cursors while receiving messsages. A cursor represents a subscriber's
+ * progress within a topic partition for a given subscription.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/pubsublite/v1/cursor.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CursorServiceGrpc { + + private CursorServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.CursorService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getStreamingCommitCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingCommitCursor", + requestType = com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getStreamingCommitCursorMethod() { + io.grpc.MethodDescriptor getStreamingCommitCursorMethod; + if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) == null) { + synchronized (CursorServiceGrpc.class) { + if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) == null) { + CursorServiceGrpc.getStreamingCommitCursorMethod = getStreamingCommitCursorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingCommitCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance())) + .setSchemaDescriptor(new CursorServiceMethodDescriptorSupplier("StreamingCommitCursor")) + .build(); + } + } + } + return getStreamingCommitCursorMethod; + } + + private static volatile io.grpc.MethodDescriptor getCommitCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CommitCursor", + requestType = com.google.cloud.pubsublite.proto.CommitCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.CommitCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCommitCursorMethod() { + io.grpc.MethodDescriptor getCommitCursorMethod; + if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { + synchronized (CursorServiceGrpc.class) { + if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { + CursorServiceGrpc.getCommitCursorMethod = getCommitCursorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CommitCursorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CommitCursorResponse.getDefaultInstance())) + .setSchemaDescriptor(new CursorServiceMethodDescriptorSupplier("CommitCursor")) + .build(); + } + } + } + return getCommitCursorMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPartitionCursorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPartitionCursors", + requestType = com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPartitionCursorsMethod() { + io.grpc.MethodDescriptor getListPartitionCursorsMethod; + if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) == null) { + synchronized (CursorServiceGrpc.class) { + if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) == null) { + CursorServiceGrpc.getListPartitionCursorsMethod = getListPartitionCursorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPartitionCursors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CursorServiceMethodDescriptorSupplier("ListPartitionCursors")) + .build(); + } + } + } + return getListPartitionCursorsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CursorServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CursorServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceStub(channel, callOptions); + } + }; + return CursorServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CursorServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CursorServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceBlockingStub(channel, callOptions); + } + }; + return CursorServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CursorServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CursorServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceFutureStub(channel, callOptions); + } + }; + return CursorServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static abstract class CursorServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Establishes a stream with the server for managing committed cursors.
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingCommitCursor( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingCommitCursorMethod(), responseObserver); + } + + /** + *
+     * Updates the committed cursor.
+     * 
+ */ + public void commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCommitCursorMethod(), responseObserver); + } + + /** + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public void listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPartitionCursorsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getStreamingCommitCursorMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse>( + this, METHODID_STREAMING_COMMIT_CURSOR))) + .addMethod( + getCommitCursorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CommitCursorRequest, + com.google.cloud.pubsublite.proto.CommitCursorResponse>( + this, METHODID_COMMIT_CURSOR))) + .addMethod( + getListPartitionCursorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( + this, METHODID_LIST_PARTITION_CURSORS))) + .build(); + } + } + + /** + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static final class CursorServiceStub extends io.grpc.stub.AbstractAsyncStub { + private CursorServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CursorServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceStub(channel, callOptions); + } + + /** + *
+     * Establishes a stream with the server for managing committed cursors.
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingCommitCursor( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingCommitCursorMethod(), getCallOptions()), responseObserver); + } + + /** + *
+     * Updates the committed cursor.
+     * 
+ */ + public void commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCommitCursorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public void listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static final class CursorServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CursorServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CursorServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Updates the committed cursor.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.CommitCursorResponse commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitCursorMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPartitionCursorsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static final class CursorServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private CursorServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CursorServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Updates the committed cursor.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture commitCursor( + com.google.cloud.pubsublite.proto.CommitCursorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCommitCursorMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPartitionCursors( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_COMMIT_CURSOR = 0; + private static final int METHODID_LIST_PARTITION_CURSORS = 1; + private static final int METHODID_STREAMING_COMMIT_CURSOR = 2; + + 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 CursorServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CursorServiceImplBase 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_COMMIT_CURSOR: + serviceImpl.commitCursor((com.google.cloud.pubsublite.proto.CommitCursorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PARTITION_CURSORS: + serviceImpl.listPartitionCursors((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) 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) { + case METHODID_STREAMING_COMMIT_CURSOR: + return (io.grpc.stub.StreamObserver) serviceImpl.streamingCommitCursor( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class CursorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CursorServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CursorService"); + } + } + + private static final class CursorServiceFileDescriptorSupplier + extends CursorServiceBaseDescriptorSupplier { + CursorServiceFileDescriptorSupplier() {} + } + + private static final class CursorServiceMethodDescriptorSupplier + extends CursorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CursorServiceMethodDescriptorSupplier(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 (CursorServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CursorServiceFileDescriptorSupplier()) + .addMethod(getStreamingCommitCursorMethod()) + .addMethod(getCommitCursorMethod()) + .addMethod(getListPartitionCursorsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java similarity index 55% rename from grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java index 3181279d1..aada79d8f 100644 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.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.cloud.pubsublite.proto; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The service that a subscriber client application uses to determine which
  * partitions it should connect to.
@@ -36,111 +19,90 @@ private PartitionAssignmentServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.PartitionAssignmentService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
-          com.google.cloud.pubsublite.proto.PartitionAssignment>
-      getAssignPartitionsMethod;
+  private static volatile io.grpc.MethodDescriptor getAssignPartitionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AssignPartitions",
       requestType = com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class,
       responseType = com.google.cloud.pubsublite.proto.PartitionAssignment.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
-          com.google.cloud.pubsublite.proto.PartitionAssignment>
-      getAssignPartitionsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
-            com.google.cloud.pubsublite.proto.PartitionAssignment>
-        getAssignPartitionsMethod;
-    if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAssignPartitionsMethod() {
+    io.grpc.MethodDescriptor getAssignPartitionsMethod;
+    if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod) == null) {
       synchronized (PartitionAssignmentServiceGrpc.class) {
-        if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod)
-            == null) {
-          PartitionAssignmentServiceGrpc.getAssignPartitionsMethod =
-              getAssignPartitionsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AssignPartitions"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.PartitionAssignmentRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.PartitionAssignment
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new PartitionAssignmentServiceMethodDescriptorSupplier(
-                              "AssignPartitions"))
-                      .build();
+        if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod) == null) {
+          PartitionAssignmentServiceGrpc.getAssignPartitionsMethod = getAssignPartitionsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AssignPartitions"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.PartitionAssignment.getDefaultInstance()))
+              .setSchemaDescriptor(new PartitionAssignmentServiceMethodDescriptorSupplier("AssignPartitions"))
+              .build();
         }
       }
     }
     return getAssignPartitionsMethod;
   }
 
-  /** 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 PartitionAssignmentServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PartitionAssignmentServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PartitionAssignmentServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PartitionAssignmentServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PartitionAssignmentServiceStub(channel, callOptions);
+        }
+      };
     return PartitionAssignmentServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PartitionAssignmentServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static PartitionAssignmentServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PartitionAssignmentServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PartitionAssignmentServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PartitionAssignmentServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PartitionAssignmentServiceBlockingStub(channel, callOptions);
+        }
+      };
     return PartitionAssignmentServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static PartitionAssignmentServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static PartitionAssignmentServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PartitionAssignmentServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PartitionAssignmentServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PartitionAssignmentServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PartitionAssignmentServiceFutureStub(channel, callOptions);
+        }
+      };
     return PartitionAssignmentServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public abstract static class PartitionAssignmentServiceImplBase - implements io.grpc.BindableService { + public static abstract class PartitionAssignmentServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -150,38 +112,31 @@ public abstract static class PartitionAssignmentServiceImplBase
      * partitions it is connected to to reflect the new assignment.
      * 
*/ - public io.grpc.stub.StreamObserver - assignPartitions( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getAssignPartitionsMethod(), responseObserver); + public io.grpc.stub.StreamObserver assignPartitions( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getAssignPartitionsMethod(), 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( - getAssignPartitionsMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest, - com.google.cloud.pubsublite.proto.PartitionAssignment>( - this, METHODID_ASSIGN_PARTITIONS))) + getAssignPartitionsMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest, + com.google.cloud.pubsublite.proto.PartitionAssignment>( + this, METHODID_ASSIGN_PARTITIONS))) .build(); } } /** - * - * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public static final class PartitionAssignmentServiceStub - extends io.grpc.stub.AbstractAsyncStub { + public static final class PartitionAssignmentServiceStub extends io.grpc.stub.AbstractAsyncStub { private PartitionAssignmentServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -194,8 +149,6 @@ protected PartitionAssignmentServiceStub build( } /** - * - * *
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -205,25 +158,20 @@ protected PartitionAssignmentServiceStub build(
      * partitions it is connected to to reflect the new assignment.
      * 
*/ - public io.grpc.stub.StreamObserver - assignPartitions( - io.grpc.stub.StreamObserver - responseObserver) { + public io.grpc.stub.StreamObserver assignPartitions( + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getAssignPartitionsMethod(), getCallOptions()), responseObserver); } } /** - * - * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public static final class PartitionAssignmentServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class PartitionAssignmentServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PartitionAssignmentServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -237,15 +185,12 @@ protected PartitionAssignmentServiceBlockingStub build( } /** - * - * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public static final class PartitionAssignmentServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { + public static final class PartitionAssignmentServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private PartitionAssignmentServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -260,11 +205,11 @@ protected PartitionAssignmentServiceFutureStub build( private static final int METHODID_ASSIGN_PARTITIONS = 0; - 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 PartitionAssignmentServiceImplBase serviceImpl; private final int methodId; @@ -288,20 +233,16 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_ASSIGN_PARTITIONS: - return (io.grpc.stub.StreamObserver) - serviceImpl.assignPartitions( - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.PartitionAssignment>) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.assignPartitions( + (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } - private abstract static class PartitionAssignmentServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class PartitionAssignmentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PartitionAssignmentServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -343,12 +284,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PartitionAssignmentServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PartitionAssignmentServiceFileDescriptorSupplier()) - .addMethod(getAssignPartitionsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PartitionAssignmentServiceFileDescriptorSupplier()) + .addMethod(getAssignPartitionsMethod()) + .build(); } } } diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java similarity index 57% rename from grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java index 3536f01ec..465b1408e 100644 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.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.cloud.pubsublite.proto; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The service that a publisher client application uses to publish messages to
  * topics. Published messages are retained by the service for the duration of
@@ -38,96 +21,82 @@ private PublisherServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.PublisherService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.PublishRequest,
-          com.google.cloud.pubsublite.proto.PublishResponse>
-      getPublishMethod;
+  private static volatile io.grpc.MethodDescriptor getPublishMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Publish",
       requestType = com.google.cloud.pubsublite.proto.PublishRequest.class,
       responseType = com.google.cloud.pubsublite.proto.PublishResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.PublishRequest,
-          com.google.cloud.pubsublite.proto.PublishResponse>
-      getPublishMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.pubsublite.proto.PublishRequest,
-            com.google.cloud.pubsublite.proto.PublishResponse>
-        getPublishMethod;
+  public static io.grpc.MethodDescriptor getPublishMethod() {
+    io.grpc.MethodDescriptor getPublishMethod;
     if ((getPublishMethod = PublisherServiceGrpc.getPublishMethod) == null) {
       synchronized (PublisherServiceGrpc.class) {
         if ((getPublishMethod = PublisherServiceGrpc.getPublishMethod) == null) {
-          PublisherServiceGrpc.getPublishMethod =
-              getPublishMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.PublishRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.PublishResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new PublisherServiceMethodDescriptorSupplier("Publish"))
-                      .build();
+          PublisherServiceGrpc.getPublishMethod = getPublishMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.PublishRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.PublishResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherServiceMethodDescriptorSupplier("Publish"))
+              .build();
         }
       }
     }
     return getPublishMethod;
   }
 
-  /** 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 PublisherServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherServiceStub(channel, callOptions);
+        }
+      };
     return PublisherServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PublisherServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static PublisherServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherServiceBlockingStub(channel, callOptions);
+        }
+      };
     return PublisherServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static PublisherServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static PublisherServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherServiceFutureStub(channel, callOptions);
+        }
+      };
     return PublisherServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -135,11 +104,9 @@ public PublisherServiceFutureStub newStub(
    * to subscriber clients upon request (via the `SubscriberService`).
    * 
*/ - public abstract static class PublisherServiceImplBase implements io.grpc.BindableService { + public static abstract class PublisherServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * Establishes a stream with the server for publishing messages. Once the
      * stream is initialized, the client publishes messages by sending publish
@@ -151,28 +118,24 @@ public abstract static class PublisherServiceImplBase implements io.grpc.Bindabl
      * 
*/ public io.grpc.stub.StreamObserver publish( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getPublishMethod(), responseObserver); + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getPublishMethod(), 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( - getPublishMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.PublishRequest, - com.google.cloud.pubsublite.proto.PublishResponse>(this, METHODID_PUBLISH))) + getPublishMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.PublishRequest, + com.google.cloud.pubsublite.proto.PublishResponse>( + this, METHODID_PUBLISH))) .build(); } } /** - * - * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -180,20 +143,19 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * to subscriber clients upon request (via the `SubscriberService`).
    * 
*/ - public static final class PublisherServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private PublisherServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherServiceStub extends io.grpc.stub.AbstractAsyncStub { + private PublisherServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PublisherServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherServiceStub(channel, callOptions); } /** - * - * *
      * Establishes a stream with the server for publishing messages. Once the
      * stream is initialized, the client publishes messages by sending publish
@@ -205,16 +167,13 @@ protected PublisherServiceStub build(io.grpc.Channel channel, io.grpc.CallOption
      * 
*/ public io.grpc.stub.StreamObserver publish( - io.grpc.stub.StreamObserver - responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getPublishMethod(), getCallOptions()), responseObserver); } } /** - * - * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -222,9 +181,9 @@ public io.grpc.stub.StreamObserver
    */
-  public static final class PublisherServiceBlockingStub
-      extends io.grpc.stub.AbstractBlockingStub {
-    private PublisherServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+  public static final class PublisherServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
+    private PublisherServiceBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -236,8 +195,6 @@ protected PublisherServiceBlockingStub build(
   }
 
   /**
-   *
-   *
    * 
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -245,9 +202,9 @@ protected PublisherServiceBlockingStub build(
    * to subscriber clients upon request (via the `SubscriberService`).
    * 
*/ - public static final class PublisherServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PublisherServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private PublisherServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -260,11 +217,11 @@ protected PublisherServiceFutureStub build( private static final int METHODID_PUBLISH = 0; - 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 PublisherServiceImplBase serviceImpl; private final int methodId; @@ -288,19 +245,16 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PUBLISH: - return (io.grpc.stub.StreamObserver) - serviceImpl.publish( - (io.grpc.stub.StreamObserver) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.publish( + (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } - private abstract static class PublisherServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class PublisherServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PublisherServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -342,12 +296,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PublisherServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PublisherServiceFileDescriptorSupplier()) - .addMethod(getPublishMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PublisherServiceFileDescriptorSupplier()) + .addMethod(getPublishMethod()) + .build(); } } } diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java similarity index 50% rename from grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java index 7a5477fee..1fa3370b4 100644 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.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.cloud.pubsublite.proto; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The service that a subscriber client application uses to receive messages
  * from subscriptions.
@@ -36,144 +19,121 @@ private SubscriberServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.SubscriberService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.SubscribeRequest,
-          com.google.cloud.pubsublite.proto.SubscribeResponse>
-      getSubscribeMethod;
+  private static volatile io.grpc.MethodDescriptor getSubscribeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Subscribe",
       requestType = com.google.cloud.pubsublite.proto.SubscribeRequest.class,
       responseType = com.google.cloud.pubsublite.proto.SubscribeResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.SubscribeRequest,
-          com.google.cloud.pubsublite.proto.SubscribeResponse>
-      getSubscribeMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.pubsublite.proto.SubscribeRequest,
-            com.google.cloud.pubsublite.proto.SubscribeResponse>
-        getSubscribeMethod;
+  public static io.grpc.MethodDescriptor getSubscribeMethod() {
+    io.grpc.MethodDescriptor getSubscribeMethod;
     if ((getSubscribeMethod = SubscriberServiceGrpc.getSubscribeMethod) == null) {
       synchronized (SubscriberServiceGrpc.class) {
         if ((getSubscribeMethod = SubscriberServiceGrpc.getSubscribeMethod) == null) {
-          SubscriberServiceGrpc.getSubscribeMethod =
-              getSubscribeMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Subscribe"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.SubscribeRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.SubscribeResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SubscriberServiceMethodDescriptorSupplier("Subscribe"))
-                      .build();
+          SubscriberServiceGrpc.getSubscribeMethod = getSubscribeMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Subscribe"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.SubscribeRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.SubscribeResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberServiceMethodDescriptorSupplier("Subscribe"))
+              .build();
         }
       }
     }
     return getSubscribeMethod;
   }
 
-  /** 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 SubscriberServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SubscriberServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SubscriberServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SubscriberServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SubscriberServiceStub(channel, callOptions);
+        }
+      };
     return SubscriberServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static SubscriberServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static SubscriberServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SubscriberServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SubscriberServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SubscriberServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SubscriberServiceBlockingStub(channel, callOptions);
+        }
+      };
     return SubscriberServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static SubscriberServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static SubscriberServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SubscriberServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SubscriberServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SubscriberServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SubscriberServiceFutureStub(channel, callOptions);
+        }
+      };
     return SubscriberServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public abstract static class SubscriberServiceImplBase implements io.grpc.BindableService { + public static abstract class SubscriberServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * Establishes a stream with the server for receiving messages.
      * 
*/ - public io.grpc.stub.StreamObserver - subscribe( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getSubscribeMethod(), responseObserver); + public io.grpc.stub.StreamObserver subscribe( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getSubscribeMethod(), 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( - getSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.SubscribeRequest, - com.google.cloud.pubsublite.proto.SubscribeResponse>( - this, METHODID_SUBSCRIBE))) + getSubscribeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.SubscribeRequest, + com.google.cloud.pubsublite.proto.SubscribeResponse>( + this, METHODID_SUBSCRIBE))) .build(); } } /** - * - * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public static final class SubscriberServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private SubscriberServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberServiceStub extends io.grpc.stub.AbstractAsyncStub { + private SubscriberServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -184,31 +144,24 @@ protected SubscriberServiceStub build( } /** - * - * *
      * Establishes a stream with the server for receiving messages.
      * 
*/ - public io.grpc.stub.StreamObserver - subscribe( - io.grpc.stub.StreamObserver - responseObserver) { + public io.grpc.stub.StreamObserver subscribe( + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getSubscribeMethod(), getCallOptions()), responseObserver); } } /** - * - * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public static final class SubscriberServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class SubscriberServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private SubscriberServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -222,16 +175,14 @@ protected SubscriberServiceBlockingStub build( } /** - * - * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public static final class SubscriberServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SubscriberServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private SubscriberServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -244,11 +195,11 @@ protected SubscriberServiceFutureStub build( private static final int METHODID_SUBSCRIBE = 0; - 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 SubscriberServiceImplBase serviceImpl; private final int methodId; @@ -272,19 +223,16 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SUBSCRIBE: - return (io.grpc.stub.StreamObserver) - serviceImpl.subscribe( - (io.grpc.stub.StreamObserver) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.subscribe( + (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } - private abstract static class SubscriberServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class SubscriberServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SubscriberServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -326,12 +274,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SubscriberServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SubscriberServiceFileDescriptorSupplier()) - .addMethod(getSubscribeMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SubscriberServiceFileDescriptorSupplier()) + .addMethod(getSubscribeMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java new file mode 100644 index 000000000..3cf4df969 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java @@ -0,0 +1,503 @@ +package com.google.cloud.pubsublite.proto; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * This service allows users to get stats about messages in their topic.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/pubsublite/v1/topic_stats.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TopicStatsServiceGrpc { + + private TopicStatsServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.TopicStatsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getComputeMessageStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeMessageStats", + requestType = com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getComputeMessageStatsMethod() { + io.grpc.MethodDescriptor getComputeMessageStatsMethod; + if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) == null) { + synchronized (TopicStatsServiceGrpc.class) { + if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) == null) { + TopicStatsServiceGrpc.getComputeMessageStatsMethod = getComputeMessageStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeMessageStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance())) + .setSchemaDescriptor(new TopicStatsServiceMethodDescriptorSupplier("ComputeMessageStats")) + .build(); + } + } + } + return getComputeMessageStatsMethod; + } + + private static volatile io.grpc.MethodDescriptor getComputeHeadCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeHeadCursor", + requestType = com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getComputeHeadCursorMethod() { + io.grpc.MethodDescriptor getComputeHeadCursorMethod; + if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) == null) { + synchronized (TopicStatsServiceGrpc.class) { + if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) == null) { + TopicStatsServiceGrpc.getComputeHeadCursorMethod = getComputeHeadCursorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeHeadCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.getDefaultInstance())) + .setSchemaDescriptor(new TopicStatsServiceMethodDescriptorSupplier("ComputeHeadCursor")) + .build(); + } + } + } + return getComputeHeadCursorMethod; + } + + private static volatile io.grpc.MethodDescriptor getComputeTimeCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeTimeCursor", + requestType = com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getComputeTimeCursorMethod() { + io.grpc.MethodDescriptor getComputeTimeCursorMethod; + if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) == null) { + synchronized (TopicStatsServiceGrpc.class) { + if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) == null) { + TopicStatsServiceGrpc.getComputeTimeCursorMethod = getComputeTimeCursorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeTimeCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.getDefaultInstance())) + .setSchemaDescriptor(new TopicStatsServiceMethodDescriptorSupplier("ComputeTimeCursor")) + .build(); + } + } + } + return getComputeTimeCursorMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TopicStatsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TopicStatsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceStub(channel, callOptions); + } + }; + return TopicStatsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TopicStatsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TopicStatsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceBlockingStub(channel, callOptions); + } + }; + return TopicStatsServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TopicStatsServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TopicStatsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceFutureStub(channel, callOptions); + } + }; + return TopicStatsServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static abstract class TopicStatsServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public void computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeMessageStatsMethod(), responseObserver); + } + + /** + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public void computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeHeadCursorMethod(), responseObserver); + } + + /** + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public void computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeTimeCursorMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getComputeMessageStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse>( + this, METHODID_COMPUTE_MESSAGE_STATS))) + .addMethod( + getComputeHeadCursorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse>( + this, METHODID_COMPUTE_HEAD_CURSOR))) + .addMethod( + getComputeTimeCursorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse>( + this, METHODID_COMPUTE_TIME_CURSOR))) + .build(); + } + } + + /** + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static final class TopicStatsServiceStub extends io.grpc.stub.AbstractAsyncStub { + private TopicStatsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TopicStatsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceStub(channel, callOptions); + } + + /** + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public void computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public void computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public void computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static final class TopicStatsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private TopicStatsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TopicStatsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeMessageStatsMethod(), getCallOptions(), request); + } + + /** + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeHeadCursorMethod(), getCallOptions(), request); + } + + /** + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeTimeCursorMethod(), getCallOptions(), request); + } + } + + /** + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static final class TopicStatsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private TopicStatsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TopicStatsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture computeMessageStats( + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), request); + } + + /** + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture computeHeadCursor( + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), request); + } + + /** + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture computeTimeCursor( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_COMPUTE_MESSAGE_STATS = 0; + private static final int METHODID_COMPUTE_HEAD_CURSOR = 1; + private static final int METHODID_COMPUTE_TIME_CURSOR = 2; + + 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 TopicStatsServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TopicStatsServiceImplBase 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_COMPUTE_MESSAGE_STATS: + serviceImpl.computeMessageStats((com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPUTE_HEAD_CURSOR: + serviceImpl.computeHeadCursor((com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPUTE_TIME_CURSOR: + serviceImpl.computeTimeCursor((com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) 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 TopicStatsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TopicStatsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TopicStatsService"); + } + } + + private static final class TopicStatsServiceFileDescriptorSupplier + extends TopicStatsServiceBaseDescriptorSupplier { + TopicStatsServiceFileDescriptorSupplier() {} + } + + private static final class TopicStatsServiceMethodDescriptorSupplier + extends TopicStatsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TopicStatsServiceMethodDescriptorSupplier(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 (TopicStatsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TopicStatsServiceFileDescriptorSupplier()) + .addMethod(getComputeMessageStatsMethod()) + .addMethod(getComputeHeadCursorMethod()) + .addMethod(getComputeTimeCursorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java new file mode 100644 index 000000000..0a1ac9a44 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java @@ -0,0 +1,553 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public final class AdminProto { + private AdminProto() {} + 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_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_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&google/cloud/pubsublite/v1/admin.proto" + + "\022\032google.cloud.pubsublite.v1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\'google/cloud/pu" + + "bsublite/v1/common.proto\032#google/longrun" + + "ning/operations.proto\032\033google/protobuf/e" + + "mpty.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"\235\001" + + "\n\022CreateTopicRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "5\n\005topic\030\002 \001(\0132!.google.cloud.pubsublite" + + ".v1.TopicB\003\340A\002\022\025\n\010topic_id\030\003 \001(\tB\003\340A\002\"H\n" + + "\017GetTopicRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" + + "pubsublite.googleapis.com/Topic\"R\n\031GetTo" + + "picPartitionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" + + "A!\n\037pubsublite.googleapis.com/Topic\"*\n\017T" + + "opicPartitions\022\027\n\017partition_count\030\001 \001(\003\"" + + "u\n\021ListTopicsRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"`" + + "\n\022ListTopicsResponse\0221\n\006topics\030\001 \003(\0132!.g" + + "oogle.cloud.pubsublite.v1.Topic\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\201\001\n\022UpdateTopicRequest\022" + + "5\n\005topic\030\001 \001(\0132!.google.cloud.pubsublite" + + ".v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"K\n\022DeleteTo" + + "picRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037pubsub" + + "lite.googleapis.com/Topic\"}\n\035ListTopicSu" + + "bscriptionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" + + "\n\037pubsublite.googleapis.com/Topic\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036List" + + "TopicSubscriptionsResponse\022\025\n\rsubscripti" + + "ons\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\317\001\n\031C" + + "reateSubscriptionRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022C\n\014subscription\030\002 \001(\0132(.google.cloud" + + ".pubsublite.v1.SubscriptionB\003\340A\002\022\034\n\017subs" + + "cription_id\030\003 \001(\tB\003\340A\002\022\024\n\014skip_backlog\030\004" + + " \001(\010\"V\n\026GetSubscriptionRequest\022<\n\004name\030\001" + + " \001(\tB.\340A\002\372A(\n&pubsublite.googleapis.com/" + + "Subscription\"|\n\030ListSubscriptionsRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"u\n\031ListSubscriptionsR" + + "esponse\022?\n\rsubscriptions\030\001 \003(\0132(.google." + + "cloud.pubsublite.v1.Subscription\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\226\001\n\031UpdateSubscription" + + "Request\022C\n\014subscription\030\001 \001(\0132(.google.c" + + "loud.pubsublite.v1.SubscriptionB\003\340A\002\0224\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\"Y\n\031DeleteSubscriptionRequest\022" + + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.google" + + "apis.com/Subscription\"\272\002\n\027SeekSubscripti" + + "onRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsubl" + + "ite.googleapis.com/Subscription\022W\n\014named" + + "_target\030\002 \001(\0162?.google.cloud.pubsublite." + + "v1.SeekSubscriptionRequest.NamedTargetH\000" + + "\022=\n\013time_target\030\003 \001(\0132&.google.cloud.pub" + + "sublite.v1.TimeTargetH\000\"?\n\013NamedTarget\022\034" + + "\n\030NAMED_TARGET_UNSPECIFIED\020\000\022\010\n\004TAIL\020\001\022\010" + + "\n\004HEAD\020\002B\010\n\006target\"\032\n\030SeekSubscriptionRe" + + "sponse\"\220\001\n\021OperationMetadata\022/\n\013create_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\"\265\001\n\030Cr" + + "eateReservationRequest\0229\n\006parent\030\001 \001(\tB)" + + "\340A\002\372A#\n!locations.googleapis.com/Locatio" + + "n\022A\n\013reservation\030\002 \001(\0132\'.google.cloud.pu" + + "bsublite.v1.ReservationB\003\340A\002\022\033\n\016reservat" + + "ion_id\030\003 \001(\tB\003\340A\002\"T\n\025GetReservationReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + + "gleapis.com/Reservation\"{\n\027ListReservati" + + "onsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + + "tions.googleapis.com/Location\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n\030ListRese" + + "rvationsResponse\022=\n\014reservations\030\001 \003(\0132\'" + + ".google.cloud.pubsublite.v1.Reservation\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\223\001\n\030UpdateReser" + + "vationRequest\022A\n\013reservation\030\001 \001(\0132\'.goo" + + "gle.cloud.pubsublite.v1.ReservationB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"W\n\030DeleteReservationReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + + "gleapis.com/Reservation\"\202\001\n\034ListReservat" + + "ionTopicsRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + + "pubsublite.googleapis.com/Reservation\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035" + + "ListReservationTopicsResponse\022\016\n\006topics\030" + + "\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\257\036\n\014Admin" + + "Service\022\271\001\n\013CreateTopic\022..google.cloud.p" + + "ubsublite.v1.CreateTopicRequest\032!.google" + + ".cloud.pubsublite.v1.Topic\"W\202\323\344\223\0029\"0/v1/" + + "admin/{parent=projects/*/locations/*}/to" + + "pics:\005topic\332A\025parent,topic,topic_id\022\233\001\n\010" + + "GetTopic\022+.google.cloud.pubsublite.v1.Ge" + + "tTopicRequest\032!.google.cloud.pubsublite." + + "v1.Topic\"?\202\323\344\223\0022\0220/v1/admin/{name=projec" + + "ts/*/locations/*/topics/*}\332A\004name\022\304\001\n\022Ge" + + "tTopicPartitions\0225.google.cloud.pubsubli" + + "te.v1.GetTopicPartitionsRequest\032+.google" + + ".cloud.pubsublite.v1.TopicPartitions\"J\202\323" + + "\344\223\002=\022;/v1/admin/{name=projects/*/locatio" + + "ns/*/topics/*}/partitions\332A\004name\022\256\001\n\nLis" + + "tTopics\022-.google.cloud.pubsublite.v1.Lis" + + "tTopicsRequest\032..google.cloud.pubsublite" + + ".v1.ListTopicsResponse\"A\202\323\344\223\0022\0220/v1/admi" + + "n/{parent=projects/*/locations/*}/topics" + + "\332A\006parent\022\273\001\n\013UpdateTopic\022..google.cloud" + + ".pubsublite.v1.UpdateTopicRequest\032!.goog" + + "le.cloud.pubsublite.v1.Topic\"Y\202\323\344\223\002?26/v" + + "1/admin/{topic.name=projects/*/locations" + + "/*/topics/*}:\005topic\332A\021topic,update_mask\022" + + "\226\001\n\013DeleteTopic\022..google.cloud.pubsublit" + + "e.v1.DeleteTopicRequest\032\026.google.protobu" + + "f.Empty\"?\202\323\344\223\0022*0/v1/admin/{name=project" + + "s/*/locations/*/topics/*}\332A\004name\022\336\001\n\026Lis" + + "tTopicSubscriptions\0229.google.cloud.pubsu" + + "blite.v1.ListTopicSubscriptionsRequest\032:" + + ".google.cloud.pubsublite.v1.ListTopicSub" + + "scriptionsResponse\"M\202\323\344\223\002@\022>/v1/admin/{n" + + "ame=projects/*/locations/*/topics/*}/sub" + + "scriptions\332A\004name\022\352\001\n\022CreateSubscription" + + "\0225.google.cloud.pubsublite.v1.CreateSubs" + + "criptionRequest\032(.google.cloud.pubsublit" + + "e.v1.Subscription\"s\202\323\344\223\002G\"7/v1/admin/{pa" + + "rent=projects/*/locations/*}/subscriptio" + + "ns:\014subscription\332A#parent,subscription,s" + + "ubscription_id\022\267\001\n\017GetSubscription\0222.goo" + + "gle.cloud.pubsublite.v1.GetSubscriptionR" + + "equest\032(.google.cloud.pubsublite.v1.Subs" + + "cription\"F\202\323\344\223\0029\0227/v1/admin/{name=projec" + + "ts/*/locations/*/subscriptions/*}\332A\004name" + + "\022\312\001\n\021ListSubscriptions\0224.google.cloud.pu" + + "bsublite.v1.ListSubscriptionsRequest\0325.g" + + "oogle.cloud.pubsublite.v1.ListSubscripti" + + "onsResponse\"H\202\323\344\223\0029\0227/v1/admin/{parent=p" + + "rojects/*/locations/*}/subscriptions\332A\006p" + + "arent\022\354\001\n\022UpdateSubscription\0225.google.cl" + + "oud.pubsublite.v1.UpdateSubscriptionRequ" + + "est\032(.google.cloud.pubsublite.v1.Subscri" + + "ption\"u\202\323\344\223\002T2D/v1/admin/{subscription.n" + + "ame=projects/*/locations/*/subscriptions" + + "/*}:\014subscription\332A\030subscription,update_" + + "mask\022\253\001\n\022DeleteSubscription\0225.google.clo" + + "ud.pubsublite.v1.DeleteSubscriptionReque" + + "st\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v1/" + + "admin/{name=projects/*/locations/*/subsc" + + "riptions/*}\332A\004name\022\337\001\n\020SeekSubscription\022" + + "3.google.cloud.pubsublite.v1.SeekSubscri" + + "ptionRequest\032\035.google.longrunning.Operat" + + "ion\"w\202\323\344\223\002A\"cloud.google.com/go/pubsub" + + "lite/apiv1/pubsublitepb;pubsublitepb\252\002\032G" + + "oogle.Cloud.PubSubLite.V1\312\002\032Google\\Cloud" + + "\\PubSubLite\\V1\352\002\035Google::Cloud::PubSubLi" + + "te::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor, + new java.lang.String[] { "Parent", "Topic", "TopicId", }); + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor, + new java.lang.String[] { "PartitionCount", }); + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor, + new java.lang.String[] { "Topics", "NextPageToken", }); + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor, + new java.lang.String[] { "Topic", "UpdateMask", }); + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor, + new java.lang.String[] { "Name", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor, + new java.lang.String[] { "Subscriptions", "NextPageToken", }); + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor, + new java.lang.String[] { "Parent", "Subscription", "SubscriptionId", "SkipBacklog", }); + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor, + new java.lang.String[] { "Subscriptions", "NextPageToken", }); + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor, + new java.lang.String[] { "Subscription", "UpdateMask", }); + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor, + new java.lang.String[] { "Name", "NamedTarget", "TimeTarget", "Target", }); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", }); + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor, + new java.lang.String[] { "Parent", "Reservation", "ReservationId", }); + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor, + new java.lang.String[] { "Reservations", "NextPageToken", }); + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor, + new java.lang.String[] { "Reservation", "UpdateMask", }); + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor, + new java.lang.String[] { "Name", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor, + new java.lang.String[] { "Topics", "NextPageToken", }); + 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.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java index f23fb4edd..3b97d9e13 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java @@ -1,114 +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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * The values associated with a key of an attribute.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.AttributeValues} */ -public final class AttributeValues extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AttributeValues extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.AttributeValues) AttributeValuesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AttributeValues.newBuilder() to construct. private AttributeValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AttributeValues() { values_ = 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 AttributeValues(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.AttributeValues.class, - com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); + com.google.cloud.pubsublite.proto.AttributeValues.class, com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List values_; /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @return A list containing the values. */ @java.lang.Override - public java.util.List getValuesList() { + public java.util.List + getValuesList() { return values_; } /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -117,7 +89,6 @@ public com.google.protobuf.ByteString getValues(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,7 +100,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 < values_.size(); i++) { output.writeBytes(1, values_.get(i)); } @@ -145,7 +117,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(values_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); @@ -158,15 +131,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.cloud.pubsublite.proto.AttributeValues)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.AttributeValues other = - (com.google.cloud.pubsublite.proto.AttributeValues) obj; + com.google.cloud.pubsublite.proto.AttributeValues other = (com.google.cloud.pubsublite.proto.AttributeValues) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.AttributeValues parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues 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; } /** - * - * *
    * The values associated with a key of an attribute.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.AttributeValues} */ - 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.cloud.pubsublite.v1.AttributeValues) com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.AttributeValues.class, - com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); + com.google.cloud.pubsublite.proto.AttributeValues.class, com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.AttributeValues.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; } @java.lang.Override @@ -347,18 +314,14 @@ public com.google.cloud.pubsublite.proto.AttributeValues build() { @java.lang.Override public com.google.cloud.pubsublite.proto.AttributeValues buildPartial() { - com.google.cloud.pubsublite.proto.AttributeValues result = - new com.google.cloud.pubsublite.proto.AttributeValues(this); + com.google.cloud.pubsublite.proto.AttributeValues result = new com.google.cloud.pubsublite.proto.AttributeValues(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.AttributeValues result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.AttributeValues result) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000001); @@ -374,39 +337,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.AttributeValues res 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.cloud.pubsublite.proto.AttributeValues) { - return mergeFrom((com.google.cloud.pubsublite.proto.AttributeValues) other); + return mergeFrom((com.google.cloud.pubsublite.proto.AttributeValues)other); } else { super.mergeFrom(other); return this; @@ -414,8 +376,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.AttributeValues other) { - if (other == com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; @@ -452,20 +413,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.ByteString v = input.readBytes(); - ensureValuesIsMutable(); - values_.add(v); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureValuesIsMutable(); + values_.add(v); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -475,12 +434,9 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List values_ = - java.util.Collections.emptyList(); - + private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new java.util.ArrayList(values_); @@ -488,44 +444,35 @@ private void ensureValuesIsMutable() { } } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @return A list containing the values. */ - public java.util.List getValuesList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(values_) - : values_; + public java.util.List + getValuesList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(values_) : values_; } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -533,76 +480,62 @@ public com.google.protobuf.ByteString getValues(int index) { return values_.get(index); } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValues( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @param value The values to add. * @return This builder for chaining. */ public Builder addValues(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); return this; } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @return This builder for chaining. */ public Builder clearValues() { @@ -611,9 +544,9 @@ public Builder clearValues() { 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); } @@ -623,12 +556,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.AttributeValues) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.AttributeValues) private static final com.google.cloud.pubsublite.proto.AttributeValues DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.AttributeValues(); } @@ -637,27 +570,27 @@ public static com.google.cloud.pubsublite.proto.AttributeValues getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttributeValues parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttributeValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -672,4 +605,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.AttributeValues getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java similarity index 59% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java index 5cb54cbde..d71b1f020 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java @@ -1,61 +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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface AttributeValuesOrBuilder - extends +public interface AttributeValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.AttributeValues) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @return A list containing the values. */ java.util.List getValuesList(); /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @return The count of values. */ int getValuesCount(); /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java index 8c46e3aa7..c3d39798d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java @@ -1,85 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for CommitCursor.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorRequest} */ -public final class CommitCursorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommitCursorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CommitCursorRequest) CommitCursorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommitCursorRequest.newBuilder() to construct. private CommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommitCursorRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommitCursorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorRequest.class, - com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorRequest.class, com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** - * - * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; - * * @return The subscription. */ @java.lang.Override @@ -88,29 +65,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; } } /** - * - * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; - * * @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 { @@ -121,15 +98,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * The partition for which to update the cursor. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -140,14 +114,11 @@ public long getPartition() { public static final int CURSOR_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -155,25 +126,18 @@ public boolean hasCursor() { return cursor_ != null; } /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The new value for the committed cursor.
    * 
@@ -182,13 +146,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +161,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_); } @@ -223,10 +185,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -236,19 +200,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.cloud.pubsublite.proto.CommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CommitCursorRequest other = - (com.google.cloud.pubsublite.proto.CommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.CommitCursorRequest other = (com.google.cloud.pubsublite.proto.CommitCursorRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (getPartition() + != other.getPartition()) return false; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -264,7 +230,8 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); @@ -275,136 +242,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.CommitCursorRequest 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 CommitCursor.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorRequest} */ - 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.cloud.pubsublite.v1.CommitCursorRequest) com.google.cloud.pubsublite.proto.CommitCursorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorRequest.class, - com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorRequest.class, com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CommitCursorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; } @java.lang.Override @@ -441,11 +401,8 @@ public com.google.cloud.pubsublite.proto.CommitCursorRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CommitCursorRequest buildPartial() { - com.google.cloud.pubsublite.proto.CommitCursorRequest result = - new com.google.cloud.pubsublite.proto.CommitCursorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.CommitCursorRequest result = new com.google.cloud.pubsublite.proto.CommitCursorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -459,7 +416,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CommitCursorRequest result.partition_ = partition_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); } } @@ -467,39 +426,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorRequest)other); } else { super.mergeFrom(other); return this; @@ -507,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CommitCursorRequest other) { - if (other == com.google.cloud.pubsublite.proto.CommitCursorRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CommitCursorRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; bitField0_ |= 0x00000001; @@ -546,31 +503,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,25 +535,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object subscription_ = ""; /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @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; @@ -607,21 +559,20 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @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 { @@ -629,35 +580,28 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -667,21 +611,17 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -689,17 +629,14 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * The partition for which to update the cursor. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -707,35 +644,29 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition for which to update the cursor. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The partition for which to update the cursor. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -747,47 +678,34 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -808,15 +726,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -827,8 +744,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -837,9 +752,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -852,8 +767,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -871,8 +784,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -885,8 +796,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -897,14 +806,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -912,24 +818,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; } - @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); } @@ -939,12 +842,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CommitCursorRequest) private static final com.google.cloud.pubsublite.proto.CommitCursorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CommitCursorRequest(); } @@ -953,27 +856,27 @@ public static com.google.cloud.pubsublite.proto.CommitCursorRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -988,4 +891,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java index 1be88c418..65194529b 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java @@ -1,94 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface CommitCursorRequestOrBuilder - extends +public interface CommitCursorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; - * * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * The partition for which to update the cursor. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ long getPartition(); /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The new value for the committed cursor.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java index 2246df767..387e5978f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java @@ -1,72 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for CommitCursor.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorResponse} */ -public final class CommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommitCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CommitCursorResponse) CommitCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommitCursorResponse.newBuilder() to construct. private CommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CommitCursorResponse() {} + private CommitCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommitCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorResponse.class, - com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorResponse.class, com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +59,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 { getUnknownFields().writeTo(output); } @@ -96,13 +78,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.cloud.pubsublite.proto.CommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CommitCursorResponse other = - (com.google.cloud.pubsublite.proto.CommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.CommitCursorResponse other = (com.google.cloud.pubsublite.proto.CommitCursorResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -121,136 +102,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.CommitCursorResponse 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 CommitCursor.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorResponse} */ - 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.cloud.pubsublite.v1.CommitCursorResponse) com.google.cloud.pubsublite.proto.CommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorResponse.class, - com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorResponse.class, com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CommitCursorResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -258,9 +232,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; } @java.lang.Override @@ -279,8 +253,7 @@ public com.google.cloud.pubsublite.proto.CommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.CommitCursorResponse result = - new com.google.cloud.pubsublite.proto.CommitCursorResponse(this); + com.google.cloud.pubsublite.proto.CommitCursorResponse result = new com.google.cloud.pubsublite.proto.CommitCursorResponse(this); onBuilt(); return result; } @@ -289,39 +262,38 @@ public com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorResponse)other); } else { super.mergeFrom(other); return this; @@ -329,8 +301,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CommitCursorResponse other) { - if (other == com.google.cloud.pubsublite.proto.CommitCursorResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CommitCursorResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -357,13 +328,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -373,9 +343,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -385,12 +355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CommitCursorResponse) private static final com.google.cloud.pubsublite.proto.CommitCursorResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CommitCursorResponse(); } @@ -399,27 +369,27 @@ public static com.google.cloud.pubsublite.proto.CommitCursorResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -434,4 +404,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java new file mode 100644 index 000000000..aa3ec1ed8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +package com.google.cloud.pubsublite.proto; + +public interface CommitCursorResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CommitCursorResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java new file mode 100644 index 000000000..da2600b69 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java @@ -0,0 +1,301 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/common.proto + +package com.google.cloud.pubsublite.proto; + +public final class CommonProto { + private CommonProto() {} + 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_cloud_pubsublite_v1_AttributeValues_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_TimeTarget_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\'google/cloud/pubsublite/v1/common.prot" + + "o\022\032google.cloud.pubsublite.v1\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\032\036google/protobuf/duration.prot" + + "o\032\037google/protobuf/timestamp.proto\"!\n\017At" + + "tributeValues\022\016\n\006values\030\001 \003(\014\"\211\002\n\rPubSub" + + "Message\022\013\n\003key\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022M\n\nat" + + "tributes\030\003 \003(\01329.google.cloud.pubsublite" + + ".v1.PubSubMessage.AttributesEntry\022.\n\neve" + + "nt_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\032^\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005val" + + "ue\030\002 \001(\0132+.google.cloud.pubsublite.v1.At" + + "tributeValues:\0028\001\"\030\n\006Cursor\022\016\n\006offset\030\001 " + + "\001(\003\"\310\001\n\020SequencedMessage\0222\n\006cursor\030\001 \001(\013" + + "2\".google.cloud.pubsublite.v1.Cursor\0220\n\014" + + "publish_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022:\n\007message\030\003 \001(\0132).google.cloud.p" + + "ubsublite.v1.PubSubMessage\022\022\n\nsize_bytes" + + "\030\004 \001(\003\"\250\001\n\013Reservation\022\014\n\004name\030\001 \001(\t\022\033\n\023" + + "throughput_capacity\030\002 \001(\003:n\352Ak\n%pubsubli" + + "te.googleapis.com/Reservation\022Bprojects/" + + "{project}/locations/{location}/reservati" + + "ons/{reservation}\"\367\005\n\005Topic\022\014\n\004name\030\001 \001(" + + "\t\022K\n\020partition_config\030\002 \001(\01321.google.clo" + + "ud.pubsublite.v1.Topic.PartitionConfig\022K" + + "\n\020retention_config\030\003 \001(\01321.google.cloud." + + "pubsublite.v1.Topic.RetentionConfig\022O\n\022r" + + "eservation_config\030\004 \001(\01323.google.cloud.p" + + "ubsublite.v1.Topic.ReservationConfig\032\332\001\n" + + "\017PartitionConfig\022\r\n\005count\030\001 \001(\003\022\023\n\005scale" + + "\030\002 \001(\005B\002\030\001H\000\022N\n\010capacity\030\003 \001(\0132:.google." + + "cloud.pubsublite.v1.Topic.PartitionConfi" + + "g.CapacityH\000\032F\n\010Capacity\022\033\n\023publish_mib_" + + "per_sec\030\001 \001(\005\022\035\n\025subscribe_mib_per_sec\030\002" + + " \001(\005B\013\n\tdimension\032Y\n\017RetentionConfig\022\033\n\023" + + "per_partition_bytes\030\001 \001(\003\022)\n\006period\030\002 \001(" + + "\0132\031.google.protobuf.Duration\032_\n\021Reservat" + + "ionConfig\022J\n\026throughput_reservation\030\001 \001(" + + "\tB*\372A\'\n%pubsublite.googleapis.com/Reserv" + + "ation:\\\352AY\n\037pubsublite.googleapis.com/To" + + "pic\0226projects/{project}/locations/{locat" + + "ion}/topics/{topic}\"\305\004\n\014Subscription\022\014\n\004" + + "name\030\001 \001(\t\0223\n\005topic\030\002 \001(\tB$\372A!\n\037pubsubli" + + "te.googleapis.com/Topic\022P\n\017delivery_conf" + + "ig\030\003 \001(\01327.google.cloud.pubsublite.v1.Su" + + "bscription.DeliveryConfig\022?\n\rexport_conf" + + "ig\030\004 \001(\0132(.google.cloud.pubsublite.v1.Ex" + + "portConfig\032\353\001\n\016DeliveryConfig\022i\n\024deliver" + + "y_requirement\030\003 \001(\0162K.google.cloud.pubsu" + + "blite.v1.Subscription.DeliveryConfig.Del" + + "iveryRequirement\"n\n\023DeliveryRequirement\022" + + "$\n DELIVERY_REQUIREMENT_UNSPECIFIED\020\000\022\027\n" + + "\023DELIVER_IMMEDIATELY\020\001\022\030\n\024DELIVER_AFTER_" + + "STORED\020\002:q\352An\n&pubsublite.googleapis.com" + + "/Subscription\022Dprojects/{project}/locati" + + "ons/{location}/subscriptions/{subscripti" + + "on}\"\301\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " + + "\001(\0162..google.cloud.pubsublite.v1.ExportC" + + "onfig.State\022J\n\rcurrent_state\030\006 \001(\0162..goo" + + "gle.cloud.pubsublite.v1.ExportConfig.Sta" + + "teB\003\340A\003\022B\n\021dead_letter_topic\030\005 \001(\tB\'\340A\001\372" + + "A!\n\037pubsublite.googleapis.com/Topic\022N\n\rp" + + "ubsub_config\030\003 \001(\01325.google.cloud.pubsub" + + "lite.v1.ExportConfig.PubSubConfigH\000\032\035\n\014P" + + "ubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUSED" + + "\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND\020\004" + + "B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publish" + + "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" + + "\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobuf." + + "TimestampH\000B\006\n\004timeB\317\001\n!com.google.cloud" + + ".pubsublite.protoB\013CommonProtoP\001Z>cloud." + + "google.com/go/pubsublite/apiv1/pubsublit" + + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + + "Google::Cloud::PubSubLite::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor, + new java.lang.String[] { "Values", }); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor, + new java.lang.String[] { "Key", "Data", "Attributes", "EventTime", }); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor = + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor, + new java.lang.String[] { "Offset", }); + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor, + new java.lang.String[] { "Cursor", "PublishTime", "Message", "SizeBytes", }); + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor, + new java.lang.String[] { "Name", "ThroughputCapacity", }); + internal_static_google_cloud_pubsublite_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_descriptor, + new java.lang.String[] { "Name", "PartitionConfig", "RetentionConfig", "ReservationConfig", }); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor, + new java.lang.String[] { "Count", "Scale", "Capacity", "Dimension", }); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor, + new java.lang.String[] { "PublishMibPerSec", "SubscribeMibPerSec", }); + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor, + new java.lang.String[] { "PerPartitionBytes", "Period", }); + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor, + new java.lang.String[] { "ThroughputReservation", }); + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor, + new java.lang.String[] { "Name", "Topic", "DeliveryConfig", "ExportConfig", }); + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor, + new java.lang.String[] { "DeliveryRequirement", }); + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor, + new java.lang.String[] { "DesiredState", "CurrentState", "DeadLetterTopic", "PubsubConfig", "Destination", }); + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor, + new java.lang.String[] { "Topic", }); + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor, + new java.lang.String[] { "PublishTime", "EventTime", "Time", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java index 4060c7f4e..3f3b77424 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java @@ -1,87 +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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Compute the current head cursor for a partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorRequest} */ -public final class ComputeHeadCursorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeHeadCursorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) ComputeHeadCursorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeHeadCursorRequest.newBuilder() to construct. private ComputeHeadCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeHeadCursorRequest() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeHeadCursorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
    * Required. The topic for which we should compute the head cursor.
    * 
* - * - * 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 @@ -90,31 +65,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; } } /** - * - * *
    * Required. The topic for which we should compute the head cursor.
    * 
* - * - * 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 { @@ -125,14 +98,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * Required. The partition for which we should compute the head cursor.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -141,7 +111,6 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,7 +122,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_); } @@ -173,7 +143,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -183,16 +154,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.cloud.pubsublite.proto.ComputeHeadCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest other = - (com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) obj; + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest other = (com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (getPartition() + != other.getPartition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,143 +179,137 @@ public int hashCode() { hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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; } /** - * - * *
    * Compute the current head cursor for a partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorRequest} */ - 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.cloud.pubsublite.v1.ComputeHeadCursorRequest) com.google.cloud.pubsublite.proto.ComputeHeadCursorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; } @java.lang.Override @@ -375,11 +341,8 @@ public com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest buildPartial() { - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest result = - new com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest result = new com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -398,39 +361,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorRe 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.cloud.pubsublite.proto.ComputeHeadCursorRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest)other); } else { super.mergeFrom(other); return this; @@ -438,8 +400,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest other) { - if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -474,25 +435,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -502,27 +460,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * 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; @@ -531,23 +484,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * 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 { @@ -555,39 +505,28 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * 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() { @@ -597,23 +536,17 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -621,16 +554,13 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * Required. The partition for which we should compute the head cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -638,33 +568,27 @@ public long getPartition() { return partition_; } /** - * - * *
      * Required. The partition for which we should compute the head cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The partition for which we should compute the head cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -673,9 +597,9 @@ public Builder clearPartition() { 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 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) private static final com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest(); } @@ -699,27 +623,27 @@ public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeHeadCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeHeadCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,4 +658,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java new file mode 100644 index 000000000..20bd159bf --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/topic_stats.proto + +package com.google.cloud.pubsublite.proto; + +public interface ComputeHeadCursorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The topic for which we should compute the head cursor.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The topic. + */ + java.lang.String getTopic(); + /** + *
+   * Required. The topic for which we should compute the head cursor.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+   * Required. The partition for which we should compute the head cursor.
+   * 
+ * + * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The partition. + */ + long getPartition(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java similarity index 64% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java index 7835d74ad..74defe649 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java @@ -1,81 +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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response containing the head cursor for the requested topic and partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorResponse} */ -public final class ComputeHeadCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeHeadCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) ComputeHeadCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeHeadCursorResponse.newBuilder() to construct. private ComputeHeadCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ComputeHeadCursorResponse() {} + private ComputeHeadCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeHeadCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); } public static final int HEAD_CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor headCursor_; /** - * - * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return Whether the headCursor field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasHeadCursor() { return headCursor_ != null; } /** - * - * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return The headCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getHeadCursor() { - return headCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : headCursor_; + return headCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; } /** - * - * *
    * The head cursor.
    * 
@@ -110,13 +82,10 @@ public com.google.cloud.pubsublite.proto.Cursor getHeadCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getHeadCursorOrBuilder() { - return headCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : headCursor_; + return headCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +97,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 (headCursor_ != null) { output.writeMessage(1, getHeadCursor()); } @@ -142,7 +112,8 @@ public int getSerializedSize() { size = 0; if (headCursor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeadCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeadCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -152,17 +123,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.cloud.pubsublite.proto.ComputeHeadCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse other = - (com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) obj; + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse other = (com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) obj; if (hasHeadCursor() != other.hasHeadCursor()) return false; if (hasHeadCursor()) { - if (!getHeadCursor().equals(other.getHeadCursor())) return false; + if (!getHeadCursor() + .equals(other.getHeadCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -185,136 +156,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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 containing the head cursor for the requested topic and partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorResponse} */ - 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.cloud.pubsublite.v1.ComputeHeadCursorResponse) com.google.cloud.pubsublite.proto.ComputeHeadCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; } @java.lang.Override @@ -349,11 +313,8 @@ public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse result = - new com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse result = new com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,7 +322,9 @@ public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse buildPartial( private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.headCursor_ = headCursorBuilder_ == null ? headCursor_ : headCursorBuilder_.build(); + result.headCursor_ = headCursorBuilder_ == null + ? headCursor_ + : headCursorBuilder_.build(); } } @@ -369,39 +332,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorRe 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.cloud.pubsublite.proto.ComputeHeadCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse)other); } else { super.mergeFrom(other); return this; @@ -409,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse other) { - if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.getDefaultInstance()) return this; if (other.hasHeadCursor()) { mergeHeadCursor(other.getHeadCursor()); } @@ -440,19 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getHeadCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getHeadCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,52 +423,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor headCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - headCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> headCursorBuilder_; /** - * - * *
      * The head cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return Whether the headCursor field is set. */ public boolean hasHeadCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The head cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return The headCursor. */ public com.google.cloud.pubsublite.proto.Cursor getHeadCursor() { if (headCursorBuilder_ == null) { - return headCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : headCursor_; + return headCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; } else { return headCursorBuilder_.getMessage(); } } /** - * - * *
      * The head cursor.
      * 
@@ -528,15 +475,14 @@ public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The head cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; */ - public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setHeadCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (headCursorBuilder_ == null) { headCursor_ = builderForValue.build(); } else { @@ -547,8 +493,6 @@ public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor.Builder bu return this; } /** - * - * *
      * The head cursor.
      * 
@@ -557,9 +501,9 @@ public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor.Builder bu */ public Builder mergeHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (headCursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && headCursor_ != null - && headCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + headCursor_ != null && + headCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getHeadCursorBuilder().mergeFrom(value); } else { headCursor_ = value; @@ -572,8 +516,6 @@ public Builder mergeHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The head cursor.
      * 
@@ -591,8 +533,6 @@ public Builder clearHeadCursor() { return this; } /** - * - * *
      * The head cursor.
      * 
@@ -605,8 +545,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getHeadCursorBuilder() { return getHeadCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The head cursor.
      * 
@@ -617,14 +555,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getHeadCursorOrBuilder( if (headCursorBuilder_ != null) { return headCursorBuilder_.getMessageOrBuilder(); } else { - return headCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : headCursor_; + return headCursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; } } /** - * - * *
      * The head cursor.
      * 
@@ -632,24 +567,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getHeadCursorOrBuilder( * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getHeadCursorFieldBuilder() { if (headCursorBuilder_ == null) { - headCursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getHeadCursor(), getParentForChildren(), isClean()); + headCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getHeadCursor(), + getParentForChildren(), + isClean()); headCursor_ = null; } return headCursorBuilder_; } - @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 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) private static final com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse(); } @@ -673,27 +605,27 @@ public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeHeadCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeHeadCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -708,4 +640,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java index 6ad52175f..282dc2f36 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; -public interface ComputeHeadCursorResponseOrBuilder - extends +public interface ComputeHeadCursorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return Whether the headCursor field is set. */ boolean hasHeadCursor(); /** - * - * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return The headCursor. */ com.google.cloud.pubsublite.proto.Cursor getHeadCursor(); /** - * - * *
    * The head cursor.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java index eb61af457..e7fc226ed 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java @@ -1,87 +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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Compute statistics about a range of messages in a given topic and partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsRequest} */ -public final class ComputeMessageStatsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeMessageStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeMessageStatsRequest) ComputeMessageStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeMessageStatsRequest.newBuilder() to construct. private ComputeMessageStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeMessageStatsRequest() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeMessageStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
    * Required. The topic for which we should compute message stats.
    * 
* - * - * 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 @@ -90,31 +65,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; } } /** - * - * *
    * Required. The topic for which we should compute message stats.
    * 
* - * - * 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 { @@ -125,14 +98,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * Required. The partition for which we should compute message stats.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -143,14 +113,11 @@ public long getPartition() { public static final int START_CURSOR_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Cursor startCursor_; /** - * - * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return Whether the startCursor field is set. */ @java.lang.Override @@ -158,25 +125,18 @@ public boolean hasStartCursor() { return startCursor_ != null; } /** - * - * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return The startCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } /** - * - * *
    * The inclusive start of the range.
    * 
@@ -185,16 +145,12 @@ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } public static final int END_CURSOR_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.Cursor endCursor_; /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -202,7 +158,6 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return Whether the endCursor field is set. */ @java.lang.Override @@ -210,8 +165,6 @@ public boolean hasEndCursor() { return endCursor_ != null; } /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -219,18 +172,13 @@ public boolean hasEndCursor() {
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return The endCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getEndCursor() { - return endCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : endCursor_; + return endCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_; } /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -241,13 +189,10 @@ public com.google.cloud.pubsublite.proto.Cursor getEndCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getEndCursorOrBuilder() {
-    return endCursor_ == null
-        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-        : endCursor_;
+    return endCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -259,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(topic_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
     }
@@ -285,13 +231,16 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
     }
     if (partition_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, partition_);
     }
     if (startCursor_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartCursor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getStartCursor());
     }
     if (endCursor_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndCursor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getEndCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -301,23 +250,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.cloud.pubsublite.proto.ComputeMessageStatsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest other =
-        (com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) obj;
+    com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest other = (com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) obj;
 
-    if (!getTopic().equals(other.getTopic())) return false;
-    if (getPartition() != other.getPartition()) return false;
+    if (!getTopic()
+        .equals(other.getTopic())) return false;
+    if (getPartition()
+        != other.getPartition()) return false;
     if (hasStartCursor() != other.hasStartCursor()) return false;
     if (hasStartCursor()) {
-      if (!getStartCursor().equals(other.getStartCursor())) return false;
+      if (!getStartCursor()
+          .equals(other.getStartCursor())) return false;
     }
     if (hasEndCursor() != other.hasEndCursor()) return false;
     if (hasEndCursor()) {
-      if (!getEndCursor().equals(other.getEndCursor())) return false;
+      if (!getEndCursor()
+          .equals(other.getEndCursor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -333,7 +285,8 @@ public int hashCode() {
     hash = (37 * hash) + TOPIC_FIELD_NUMBER;
     hash = (53 * hash) + getTopic().hashCode();
     hash = (37 * hash) + PARTITION_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getPartition());
     if (hasStartCursor()) {
       hash = (37 * hash) + START_CURSOR_FIELD_NUMBER;
       hash = (53 * hash) + getStartCursor().hashCode();
@@ -348,136 +301,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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;
   }
   /**
-   *
-   *
    * 
    * Compute statistics about a range of messages in a given topic and partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsRequest} */ - 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.cloud.pubsublite.v1.ComputeMessageStatsRequest) com.google.cloud.pubsublite.proto.ComputeMessageStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -498,14 +444,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance(); } @@ -520,17 +465,13 @@ public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result = - new com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result = new com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.topic_ = topic_; @@ -539,11 +480,14 @@ private void buildPartial0( result.partition_ = partition_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.startCursor_ = - startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); + result.startCursor_ = startCursorBuilder_ == null + ? startCursor_ + : startCursorBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.endCursor_ = endCursorBuilder_ == null ? endCursor_ : endCursorBuilder_.build(); + result.endCursor_ = endCursorBuilder_ == null + ? endCursor_ + : endCursorBuilder_.build(); } } @@ -551,39 +495,38 @@ private void buildPartial0( 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.cloud.pubsublite.proto.ComputeMessageStatsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest)other); } else { super.mergeFrom(other); return this; @@ -591,9 +534,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest other) { - if (other - == com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -634,37 +575,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getStartCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getEndCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getStartCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEndCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -674,27 +614,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * 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; @@ -703,23 +638,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * 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 { @@ -727,39 +659,28 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * 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() { @@ -769,23 +690,17 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -793,16 +708,13 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * Required. The partition for which we should compute message stats.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -810,33 +722,27 @@ public long getPartition() { return partition_; } /** - * - * *
      * Required. The partition for which we should compute message stats.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The partition for which we should compute message stats.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -848,47 +754,34 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.Cursor startCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - startCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> startCursorBuilder_; /** - * - * *
      * The inclusive start of the range.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return Whether the startCursor field is set. */ public boolean hasStartCursor() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The inclusive start of the range.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return The startCursor. */ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { if (startCursorBuilder_ == null) { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } else { return startCursorBuilder_.getMessage(); } } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -909,8 +802,6 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -929,8 +820,6 @@ public Builder setStartCursor( return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -939,9 +828,9 @@ public Builder setStartCursor( */ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (startCursorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && startCursor_ != null - && startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + startCursor_ != null && + startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getStartCursorBuilder().mergeFrom(value); } else { startCursor_ = value; @@ -954,8 +843,6 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -973,8 +860,6 @@ public Builder clearStartCursor() { return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -987,8 +872,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder() return getStartCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -999,14 +882,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder if (startCursorBuilder_ != null) { return startCursorBuilder_.getMessageOrBuilder(); } else { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -1014,17 +894,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getStartCursorFieldBuilder() { if (startCursorBuilder_ == null) { - startCursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getStartCursor(), getParentForChildren(), isClean()); + startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getStartCursor(), + getParentForChildren(), + isClean()); startCursor_ = null; } return startCursorBuilder_; @@ -1032,13 +909,8 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder private com.google.cloud.pubsublite.proto.Cursor endCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - endCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> endCursorBuilder_; /** - * - * *
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1046,15 +918,12 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
      * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return Whether the endCursor field is set. */ public boolean hasEndCursor() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1062,21 +931,16 @@ public boolean hasEndCursor() {
      * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return The endCursor. */ public com.google.cloud.pubsublite.proto.Cursor getEndCursor() { if (endCursorBuilder_ == null) { - return endCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : endCursor_; + return endCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_; } else { return endCursorBuilder_.getMessage(); } } /** - * - * *
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1099,8 +963,6 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1109,7 +971,8 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      */
-    public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setEndCursor(
+        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (endCursorBuilder_ == null) {
         endCursor_ = builderForValue.build();
       } else {
@@ -1120,8 +983,6 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1132,9 +993,9 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor.Builder bui
      */
     public Builder mergeEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (endCursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && endCursor_ != null
-            && endCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          endCursor_ != null &&
+          endCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getEndCursorBuilder().mergeFrom(value);
         } else {
           endCursor_ = value;
@@ -1147,8 +1008,6 @@ public Builder mergeEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1168,8 +1027,6 @@ public Builder clearEndCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1184,8 +1041,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getEndCursorBuilder() {
       return getEndCursorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1198,14 +1053,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getEndCursorOrBuilder()
       if (endCursorBuilder_ != null) {
         return endCursorBuilder_.getMessageOrBuilder();
       } else {
-        return endCursor_ == null
-            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-            : endCursor_;
+        return endCursor_ == null ?
+            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_;
       }
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1215,24 +1067,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getEndCursorOrBuilder()
      * .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
         getEndCursorFieldBuilder() {
       if (endCursorBuilder_ == null) {
-        endCursorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Cursor,
-                com.google.cloud.pubsublite.proto.Cursor.Builder,
-                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getEndCursor(), getParentForChildren(), isClean());
+        endCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getEndCursor(),
+                getParentForChildren(),
+                isClean());
         endCursor_ = null;
       }
       return endCursorBuilder_;
     }
-
     @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);
     }
 
@@ -1242,13 +1091,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeMessageStatsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeMessageStatsRequest)
-  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest();
   }
@@ -1257,27 +1105,27 @@ public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ComputeMessageStatsRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ComputeMessageStatsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1292,4 +1140,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
similarity index 71%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
index 871f1734d..ed0e537f3 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
@@ -1,97 +1,61 @@
-/*
- * 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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface ComputeMessageStatsRequestOrBuilder
-    extends
+public interface ComputeMessageStatsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeMessageStatsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The topic for which we should compute message stats.
    * 
* - * - * 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 topic for which we should compute message stats.
    * 
* - * - * 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(); /** - * - * *
    * Required. The partition for which we should compute message stats.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ long getPartition(); /** - * - * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return Whether the startCursor field is set. */ boolean hasStartCursor(); /** - * - * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return The startCursor. */ com.google.cloud.pubsublite.proto.Cursor getStartCursor(); /** - * - * *
    * The inclusive start of the range.
    * 
@@ -101,8 +65,6 @@ public interface ComputeMessageStatsRequestOrBuilder com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder(); /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -110,13 +72,10 @@ public interface ComputeMessageStatsRequestOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return Whether the endCursor field is set. */ boolean hasEndCursor(); /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -124,13 +83,10 @@ public interface ComputeMessageStatsRequestOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return The endCursor. */ com.google.cloud.pubsublite.proto.Cursor getEndCursor(); /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
similarity index 70%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
index 31a9aea5e..f8a92d3c2 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
@@ -1,81 +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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Response containing stats for messages in the requested topic and partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsResponse} */ -public final class ComputeMessageStatsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeMessageStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeMessageStatsResponse) ComputeMessageStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeMessageStatsResponse.newBuilder() to construct. private ComputeMessageStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ComputeMessageStatsResponse() {} + private ComputeMessageStatsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeMessageStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); } public static final int MESSAGE_COUNT_FIELD_NUMBER = 1; private long messageCount_ = 0L; /** - * - * *
    * The count of messages.
    * 
* * int64 message_count = 1; - * * @return The messageCount. */ @java.lang.Override @@ -86,14 +65,11 @@ public long getMessageCount() { public static final int MESSAGE_BYTES_FIELD_NUMBER = 2; private long messageBytes_ = 0L; /** - * - * *
    * The number of quota bytes accounted to these messages.
    * 
* * int64 message_bytes = 2; - * * @return The messageBytes. */ @java.lang.Override @@ -104,8 +80,6 @@ public long getMessageBytes() { public static final int MINIMUM_PUBLISH_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp minimumPublishTime_; /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -113,7 +87,6 @@ public long getMessageBytes() {
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return Whether the minimumPublishTime field is set. */ @java.lang.Override @@ -121,8 +94,6 @@ public boolean hasMinimumPublishTime() { return minimumPublishTime_ != null; } /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -130,18 +101,13 @@ public boolean hasMinimumPublishTime() {
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return The minimumPublishTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMinimumPublishTime() { - return minimumPublishTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : minimumPublishTime_; + return minimumPublishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_; } /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -152,16 +118,12 @@ public com.google.protobuf.Timestamp getMinimumPublishTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
-    return minimumPublishTime_ == null
-        ? com.google.protobuf.Timestamp.getDefaultInstance()
-        : minimumPublishTime_;
+    return minimumPublishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_;
   }
 
   public static final int MINIMUM_EVENT_TIME_FIELD_NUMBER = 4;
   private com.google.protobuf.Timestamp minimumEventTime_;
   /**
-   *
-   *
    * 
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -169,7 +131,6 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return Whether the minimumEventTime field is set. */ @java.lang.Override @@ -177,8 +138,6 @@ public boolean hasMinimumEventTime() { return minimumEventTime_ != null; } /** - * - * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -186,18 +145,13 @@ public boolean hasMinimumEventTime() {
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return The minimumEventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMinimumEventTime() { - return minimumEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : minimumEventTime_; + return minimumEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_; } /** - * - * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -208,13 +162,10 @@ public com.google.protobuf.Timestamp getMinimumEventTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder() {
-    return minimumEventTime_ == null
-        ? com.google.protobuf.Timestamp.getDefaultInstance()
-        : minimumEventTime_;
+    return minimumEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -226,7 +177,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 (messageCount_ != 0L) {
       output.writeInt64(1, messageCount_);
     }
@@ -249,16 +201,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (messageCount_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, messageCount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, messageCount_);
     }
     if (messageBytes_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, messageBytes_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, messageBytes_);
     }
     if (minimumPublishTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinimumPublishTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getMinimumPublishTime());
     }
     if (minimumEventTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMinimumEventTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getMinimumEventTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -268,23 +224,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.cloud.pubsublite.proto.ComputeMessageStatsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse other =
-        (com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) obj;
+    com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse other = (com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) obj;
 
-    if (getMessageCount() != other.getMessageCount()) return false;
-    if (getMessageBytes() != other.getMessageBytes()) return false;
+    if (getMessageCount()
+        != other.getMessageCount()) return false;
+    if (getMessageBytes()
+        != other.getMessageBytes()) return false;
     if (hasMinimumPublishTime() != other.hasMinimumPublishTime()) return false;
     if (hasMinimumPublishTime()) {
-      if (!getMinimumPublishTime().equals(other.getMinimumPublishTime())) return false;
+      if (!getMinimumPublishTime()
+          .equals(other.getMinimumPublishTime())) return false;
     }
     if (hasMinimumEventTime() != other.hasMinimumEventTime()) return false;
     if (hasMinimumEventTime()) {
-      if (!getMinimumEventTime().equals(other.getMinimumEventTime())) return false;
+      if (!getMinimumEventTime()
+          .equals(other.getMinimumEventTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -298,9 +257,11 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + MESSAGE_COUNT_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMessageCount());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getMessageCount());
     hash = (37 * hash) + MESSAGE_BYTES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMessageBytes());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getMessageBytes());
     if (hasMinimumPublishTime()) {
       hash = (37 * hash) + MINIMUM_PUBLISH_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getMinimumPublishTime().hashCode();
@@ -315,136 +276,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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 containing stats for messages in the requested topic and partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsResponse} */ - 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.cloud.pubsublite.v1.ComputeMessageStatsResponse) com.google.cloud.pubsublite.proto.ComputeMessageStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -465,14 +419,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance(); } @@ -487,17 +440,13 @@ public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result = - new com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result = new com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.messageCount_ = messageCount_; @@ -506,14 +455,14 @@ private void buildPartial0( result.messageBytes_ = messageBytes_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.minimumPublishTime_ = - minimumPublishTimeBuilder_ == null - ? minimumPublishTime_ - : minimumPublishTimeBuilder_.build(); + result.minimumPublishTime_ = minimumPublishTimeBuilder_ == null + ? minimumPublishTime_ + : minimumPublishTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.minimumEventTime_ = - minimumEventTimeBuilder_ == null ? minimumEventTime_ : minimumEventTimeBuilder_.build(); + result.minimumEventTime_ = minimumEventTimeBuilder_ == null + ? minimumEventTime_ + : minimumEventTimeBuilder_.build(); } } @@ -521,39 +470,38 @@ private void buildPartial0( 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.cloud.pubsublite.proto.ComputeMessageStatsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse)other); } else { super.mergeFrom(other); return this; @@ -561,9 +509,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse other) { - if (other - == com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance()) return this; if (other.getMessageCount() != 0L) { setMessageCount(other.getMessageCount()); } @@ -602,39 +548,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - messageCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - messageBytes_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage( - getMinimumPublishTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getMinimumEventTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + messageCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + messageBytes_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getMinimumPublishTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getMinimumEventTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -644,19 +587,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long messageCount_; + private long messageCount_ ; /** - * - * *
      * The count of messages.
      * 
* * int64 message_count = 1; - * * @return The messageCount. */ @java.lang.Override @@ -664,33 +603,27 @@ public long getMessageCount() { return messageCount_; } /** - * - * *
      * The count of messages.
      * 
* * int64 message_count = 1; - * * @param value The messageCount to set. * @return This builder for chaining. */ public Builder setMessageCount(long value) { - + messageCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The count of messages.
      * 
* * int64 message_count = 1; - * * @return This builder for chaining. */ public Builder clearMessageCount() { @@ -700,16 +633,13 @@ public Builder clearMessageCount() { return this; } - private long messageBytes_; + private long messageBytes_ ; /** - * - * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; - * * @return The messageBytes. */ @java.lang.Override @@ -717,33 +647,27 @@ public long getMessageBytes() { return messageBytes_; } /** - * - * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; - * * @param value The messageBytes to set. * @return This builder for chaining. */ public Builder setMessageBytes(long value) { - + messageBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; - * * @return This builder for chaining. */ public Builder clearMessageBytes() { @@ -755,13 +679,8 @@ public Builder clearMessageBytes() { private com.google.protobuf.Timestamp minimumPublishTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - minimumPublishTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minimumPublishTimeBuilder_; /** - * - * *
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -769,15 +688,12 @@ public Builder clearMessageBytes() {
      * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return Whether the minimumPublishTime field is set. */ public boolean hasMinimumPublishTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -785,21 +701,16 @@ public boolean hasMinimumPublishTime() {
      * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return The minimumPublishTime. */ public com.google.protobuf.Timestamp getMinimumPublishTime() { if (minimumPublishTimeBuilder_ == null) { - return minimumPublishTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : minimumPublishTime_; + return minimumPublishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_; } else { return minimumPublishTimeBuilder_.getMessage(); } } /** - * - * *
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -822,8 +733,6 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -832,7 +741,8 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp minimum_publish_time = 3;
      */
-    public Builder setMinimumPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setMinimumPublishTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (minimumPublishTimeBuilder_ == null) {
         minimumPublishTime_ = builderForValue.build();
       } else {
@@ -843,8 +753,6 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -855,9 +763,9 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp.Builder build
      */
     public Builder mergeMinimumPublishTime(com.google.protobuf.Timestamp value) {
       if (minimumPublishTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && minimumPublishTime_ != null
-            && minimumPublishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          minimumPublishTime_ != null &&
+          minimumPublishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getMinimumPublishTimeBuilder().mergeFrom(value);
         } else {
           minimumPublishTime_ = value;
@@ -870,8 +778,6 @@ public Builder mergeMinimumPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -891,8 +797,6 @@ public Builder clearMinimumPublishTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -907,8 +811,6 @@ public com.google.protobuf.Timestamp.Builder getMinimumPublishTimeBuilder() {
       return getMinimumPublishTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -921,14 +823,11 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
       if (minimumPublishTimeBuilder_ != null) {
         return minimumPublishTimeBuilder_.getMessageOrBuilder();
       } else {
-        return minimumPublishTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : minimumPublishTime_;
+        return minimumPublishTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -938,17 +837,14 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp minimum_publish_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> 
         getMinimumPublishTimeFieldBuilder() {
       if (minimumPublishTimeBuilder_ == null) {
-        minimumPublishTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getMinimumPublishTime(), getParentForChildren(), isClean());
+        minimumPublishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getMinimumPublishTime(),
+                getParentForChildren(),
+                isClean());
         minimumPublishTime_ = null;
       }
       return minimumPublishTimeBuilder_;
@@ -956,13 +852,8 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp minimumEventTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        minimumEventTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minimumEventTimeBuilder_;
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -970,15 +861,12 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return Whether the minimumEventTime field is set. */ public boolean hasMinimumEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -986,21 +874,16 @@ public boolean hasMinimumEventTime() {
      * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return The minimumEventTime. */ public com.google.protobuf.Timestamp getMinimumEventTime() { if (minimumEventTimeBuilder_ == null) { - return minimumEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : minimumEventTime_; + return minimumEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_; } else { return minimumEventTimeBuilder_.getMessage(); } } /** - * - * *
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1023,8 +906,6 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1033,7 +914,8 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp minimum_event_time = 4;
      */
-    public Builder setMinimumEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setMinimumEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (minimumEventTimeBuilder_ == null) {
         minimumEventTime_ = builderForValue.build();
       } else {
@@ -1044,8 +926,6 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1056,9 +936,9 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp.Builder builder
      */
     public Builder mergeMinimumEventTime(com.google.protobuf.Timestamp value) {
       if (minimumEventTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && minimumEventTime_ != null
-            && minimumEventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          minimumEventTime_ != null &&
+          minimumEventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getMinimumEventTimeBuilder().mergeFrom(value);
         } else {
           minimumEventTime_ = value;
@@ -1071,8 +951,6 @@ public Builder mergeMinimumEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1092,8 +970,6 @@ public Builder clearMinimumEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1108,8 +984,6 @@ public com.google.protobuf.Timestamp.Builder getMinimumEventTimeBuilder() {
       return getMinimumEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1122,14 +996,11 @@ public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder() {
       if (minimumEventTimeBuilder_ != null) {
         return minimumEventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return minimumEventTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : minimumEventTime_;
+        return minimumEventTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1139,24 +1010,21 @@ public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder() {
      * .google.protobuf.Timestamp minimum_event_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> 
         getMinimumEventTimeFieldBuilder() {
       if (minimumEventTimeBuilder_ == null) {
-        minimumEventTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getMinimumEventTime(), getParentForChildren(), isClean());
+        minimumEventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getMinimumEventTime(),
+                getParentForChildren(),
+                isClean());
         minimumEventTime_ = null;
       }
       return minimumEventTimeBuilder_;
     }
-
     @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);
     }
 
@@ -1166,13 +1034,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeMessageStatsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeMessageStatsResponse)
-  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse();
   }
@@ -1181,27 +1048,27 @@ public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ComputeMessageStatsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ComputeMessageStatsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1216,4 +1083,6 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
similarity index 80%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
index 90b31aba7..790c6ff59 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface ComputeMessageStatsResponseOrBuilder
-    extends
+public interface ComputeMessageStatsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeMessageStatsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The count of messages.
    * 
* * int64 message_count = 1; - * * @return The messageCount. */ long getMessageCount(); /** - * - * *
    * The number of quota bytes accounted to these messages.
    * 
* * int64 message_bytes = 2; - * * @return The messageBytes. */ long getMessageBytes(); /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -59,13 +35,10 @@ public interface ComputeMessageStatsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return Whether the minimumPublishTime field is set. */ boolean hasMinimumPublishTime(); /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -73,13 +46,10 @@ public interface ComputeMessageStatsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return The minimumPublishTime. */ com.google.protobuf.Timestamp getMinimumPublishTime(); /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -91,8 +61,6 @@ public interface ComputeMessageStatsResponseOrBuilder
   com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -100,13 +68,10 @@ public interface ComputeMessageStatsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return Whether the minimumEventTime field is set. */ boolean hasMinimumEventTime(); /** - * - * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -114,13 +79,10 @@ public interface ComputeMessageStatsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return The minimumEventTime. */ com.google.protobuf.Timestamp getMinimumEventTime(); /** - * - * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
similarity index 60%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
index 72dfa039b..ad51cebf7 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Compute the corresponding cursor for a publish or event time in a topic
  * partition.
@@ -28,61 +11,53 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorRequest}
  */
-public final class ComputeTimeCursorRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ComputeTimeCursorRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeTimeCursorRequest)
     ComputeTimeCursorRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ComputeTimeCursorRequest.newBuilder() to construct.
   private ComputeTimeCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ComputeTimeCursorRequest() {
     topic_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ComputeTimeCursorRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto
-        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto
-        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class,
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
   }
 
   public static final int TOPIC_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object topic_ = "";
   /**
-   *
-   *
    * 
    * Required. The topic for which we should compute the cursor.
    * 
* - * - * 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 @@ -91,31 +66,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; } } /** - * - * *
    * Required. The topic for which we should compute the cursor.
    * 
* - * - * 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 { @@ -126,14 +99,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * Required. The partition for which we should compute the cursor.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -144,17 +114,12 @@ public long getPartition() { public static final int TARGET_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.TimeTarget target_; /** - * - * *
-   * Required. The target publish or event time. Specifying a future time will return an
-   * unset cursor.
+   * Required. The target publish or event time. Specifying a future time will
+   * return an unset cursor.
    * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the target field is set. */ @java.lang.Override @@ -162,46 +127,32 @@ public boolean hasTarget() { return target_ != null; } /** - * - * *
-   * Required. The target publish or event time. Specifying a future time will return an
-   * unset cursor.
+   * Required. The target publish or event time. Specifying a future time will
+   * return an unset cursor.
    * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The target. */ @java.lang.Override public com.google.cloud.pubsublite.proto.TimeTarget getTarget() { - return target_ == null - ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() - : target_; + return target_ == null ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; } /** - * - * *
-   * Required. The target publish or event time. Specifying a future time will return an
-   * unset cursor.
+   * Required. The target publish or event time. Specifying a future time will
+   * return an unset cursor.
    * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder() { - return target_ == null - ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() - : target_; + return target_ == null ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +164,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_); } @@ -236,10 +188,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } if (target_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTarget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTarget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,19 +203,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest other = - (com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) obj; + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest other = (com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (getPartition() + != other.getPartition()) return false; if (hasTarget() != other.hasTarget()) return false; if (hasTarget()) { - if (!getTarget().equals(other.getTarget())) return false; + if (!getTarget() + .equals(other.getTarget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -277,7 +233,8 @@ public int hashCode() { hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); @@ -288,104 +245,96 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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; } /** - * - * *
    * Compute the corresponding cursor for a publish or event time in a topic
    * partition.
@@ -393,32 +342,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorRequest}
    */
-  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.cloud.pubsublite.v1.ComputeTimeCursorRequest)
       com.google.cloud.pubsublite.proto.ComputeTimeCursorRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class,
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -434,9 +384,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
     }
 
     @java.lang.Override
@@ -455,11 +405,8 @@ public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest result =
-          new com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest result = new com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -473,7 +420,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
         result.partition_ = partition_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build();
+        result.target_ = targetBuilder_ == null
+            ? target_
+            : targetBuilder_.build();
       }
     }
 
@@ -481,39 +430,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
     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.cloud.pubsublite.proto.ComputeTimeCursorRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -521,8 +469,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.getDefaultInstance()) return this;
       if (!other.getTopic().isEmpty()) {
         topic_ = other.topic_;
         bitField0_ |= 0x00000001;
@@ -560,31 +507,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                topic_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                partition_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              topic_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              partition_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getTargetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -594,27 +539,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object topic_ = "";
     /**
-     *
-     *
      * 
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * 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; @@ -623,23 +563,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * 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 { @@ -647,39 +584,28 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * 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() { @@ -689,23 +615,17 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -713,16 +633,13 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * Required. The partition for which we should compute the cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -730,33 +647,27 @@ public long getPartition() { return partition_; } /** - * - * *
      * Required. The partition for which we should compute the cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The partition for which we should compute the cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -768,61 +679,42 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.TimeTarget target_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, - com.google.cloud.pubsublite.proto.TimeTarget.Builder, - com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> - targetBuilder_; + com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> targetBuilder_; /** - * - * *
-     * Required. The target publish or event time. Specifying a future time will return an
-     * unset cursor.
+     * Required. The target publish or event time. Specifying a future time will
+     * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the target field is set. */ public boolean hasTarget() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
-     * Required. The target publish or event time. Specifying a future time will return an
-     * unset cursor.
+     * Required. The target publish or event time. Specifying a future time will
+     * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The target. */ public com.google.cloud.pubsublite.proto.TimeTarget getTarget() { if (targetBuilder_ == null) { - return target_ == null - ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() - : target_; + return target_ == null ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } } /** - * - * *
-     * Required. The target publish or event time. Specifying a future time will return an
-     * unset cursor.
+     * Required. The target publish or event time. Specifying a future time will
+     * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { if (targetBuilder_ == null) { @@ -838,18 +730,15 @@ public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { return this; } /** - * - * *
-     * Required. The target publish or event time. Specifying a future time will return an
-     * unset cursor.
+     * Required. The target publish or event time. Specifying a future time will
+     * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget.Builder builderForValue) { + public Builder setTarget( + com.google.cloud.pubsublite.proto.TimeTarget.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); } else { @@ -860,22 +749,18 @@ public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget.Builder bu return this; } /** - * - * *
-     * Required. The target publish or event time. Specifying a future time will return an
-     * unset cursor.
+     * Required. The target publish or event time. Specifying a future time will
+     * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { if (targetBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && target_ != null - && target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + target_ != null && + target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) { getTargetBuilder().mergeFrom(value); } else { target_ = value; @@ -888,16 +773,12 @@ public Builder mergeTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { return this; } /** - * - * *
-     * Required. The target publish or event time. Specifying a future time will return an
-     * unset cursor.
+     * Required. The target publish or event time. Specifying a future time will
+     * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTarget() { bitField0_ = (bitField0_ & ~0x00000004); @@ -910,16 +791,12 @@ public Builder clearTarget() { return this; } /** - * - * *
-     * Required. The target publish or event time. Specifying a future time will return an
-     * unset cursor.
+     * Required. The target publish or event time. Specifying a future time will
+     * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.TimeTarget.Builder getTargetBuilder() { bitField0_ |= 0x00000004; @@ -927,57 +804,45 @@ public com.google.cloud.pubsublite.proto.TimeTarget.Builder getTargetBuilder() { return getTargetFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. The target publish or event time. Specifying a future time will return an
-     * unset cursor.
+     * Required. The target publish or event time. Specifying a future time will
+     * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { - return target_ == null - ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() - : target_; + return target_ == null ? + com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; } } /** - * - * *
-     * Required. The target publish or event time. Specifying a future time will return an
-     * unset cursor.
+     * Required. The target publish or event time. Specifying a future time will
+     * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, - com.google.cloud.pubsublite.proto.TimeTarget.Builder, - com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> + com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { - targetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, - com.google.cloud.pubsublite.proto.TimeTarget.Builder, - com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>( - getTarget(), getParentForChildren(), isClean()); + targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>( + getTarget(), + getParentForChildren(), + isClean()); target_ = null; } return targetBuilder_; } - @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); } @@ -987,12 +852,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) private static final com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest(); } @@ -1001,27 +866,27 @@ public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeTimeCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeTimeCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,4 +901,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java new file mode 100644 index 000000000..7fb4006e7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/topic_stats.proto + +package com.google.cloud.pubsublite.proto; + +public interface ComputeTimeCursorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The topic for which we should compute the cursor.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The topic. + */ + java.lang.String getTopic(); + /** + *
+   * Required. The topic for which we should compute the cursor.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+   * Required. The partition for which we should compute the cursor.
+   * 
+ * + * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The partition. + */ + long getPartition(); + + /** + *
+   * Required. The target publish or event time. Specifying a future time will
+   * return an unset cursor.
+   * 
+ * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the target field is set. + */ + boolean hasTarget(); + /** + *
+   * Required. The target publish or event time. Specifying a future time will
+   * return an unset cursor.
+   * 
+ * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The target. + */ + com.google.cloud.pubsublite.proto.TimeTarget getTarget(); + /** + *
+   * Required. The target publish or event time. Specifying a future time will
+   * return an unset cursor.
+   * 
+ * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java index a05ca0b77..ef4719126 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response containing the cursor corresponding to a publish or event time in a
  * topic partition.
@@ -28,49 +11,46 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorResponse}
  */
-public final class ComputeTimeCursorResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ComputeTimeCursorResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
     ComputeTimeCursorResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ComputeTimeCursorResponse.newBuilder() to construct.
   private ComputeTimeCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ComputeTimeCursorResponse() {}
+  private ComputeTimeCursorResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ComputeTimeCursorResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto
-        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto
-        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class,
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
+            com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
   }
 
   public static final int CURSOR_FIELD_NUMBER = 1;
   private com.google.cloud.pubsublite.proto.Cursor cursor_;
   /**
-   *
-   *
    * 
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -78,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -86,8 +65,6 @@ public boolean hasCursor() { return cursor_ != null; } /** - * - * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -95,18 +72,13 @@ public boolean hasCursor() {
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -117,13 +89,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
-    return cursor_ == null
-        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-        : cursor_;
+    return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -135,7 +104,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 (cursor_ != null) {
       output.writeMessage(1, getCursor());
     }
@@ -149,7 +119,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (cursor_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -159,17 +130,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.cloud.pubsublite.proto.ComputeTimeCursorResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse other =
-        (com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) obj;
+    com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse other = (com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) obj;
 
     if (hasCursor() != other.hasCursor()) return false;
     if (hasCursor()) {
-      if (!getCursor().equals(other.getCursor())) return false;
+      if (!getCursor()
+          .equals(other.getCursor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -192,104 +163,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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 containing the cursor corresponding to a publish or event time in a
    * topic partition.
@@ -297,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorResponse}
    */
-  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.cloud.pubsublite.v1.ComputeTimeCursorResponse)
       com.google.cloud.pubsublite.proto.ComputeTimeCursorResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class,
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
+              com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -336,9 +300,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
     }
 
     @java.lang.Override
@@ -357,11 +321,8 @@ public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse buildPartial() {
-      com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse result =
-          new com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse result = new com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -369,7 +330,9 @@ public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse buildPartial(
     private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build();
+        result.cursor_ = cursorBuilder_ == null
+            ? cursor_
+            : cursorBuilder_.build();
       }
     }
 
@@ -377,39 +340,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
     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.cloud.pubsublite.proto.ComputeTimeCursorResponse) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -417,8 +379,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse other) {
-      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.getDefaultInstance()) return this;
       if (other.hasCursor()) {
         mergeCursor(other.getCursor());
       }
@@ -448,19 +409,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCursorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -470,18 +431,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.pubsublite.proto.Cursor cursor_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
-        cursorBuilder_;
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_;
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -489,15 +444,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -505,21 +457,16 @@ public boolean hasCursor() {
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -542,8 +489,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -552,7 +497,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
-    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(
+        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         cursor_ = builderForValue.build();
       } else {
@@ -563,8 +509,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -575,9 +519,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && cursor_ != null
-            && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          cursor_ != null &&
+          cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getCursorBuilder().mergeFrom(value);
         } else {
           cursor_ = value;
@@ -590,8 +534,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -611,8 +553,6 @@ public Builder clearCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -627,8 +567,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -641,14 +579,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       if (cursorBuilder_ != null) {
         return cursorBuilder_.getMessageOrBuilder();
       } else {
-        return cursor_ == null
-            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-            : cursor_;
+        return cursor_ == null ?
+            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -658,24 +593,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
-        cursorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Cursor,
-                com.google.cloud.pubsublite.proto.Cursor.Builder,
-                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getCursor(), getParentForChildren(), isClean());
+        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getCursor(),
+                getParentForChildren(),
+                isClean());
         cursor_ = null;
       }
       return cursorBuilder_;
     }
-
     @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 +617,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
   private static final com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse();
   }
@@ -699,27 +631,27 @@ public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ComputeTimeCursorResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ComputeTimeCursorResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -734,4 +666,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
similarity index 68%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
index 2ec1cd897..f0e5e4bd7 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface ComputeTimeCursorResponseOrBuilder
-    extends
+public interface ComputeTimeCursorResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -33,13 +15,10 @@ public interface ComputeTimeCursorResponseOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -47,13 +26,10 @@ public interface ComputeTimeCursorResponseOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
similarity index 62%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
index 935980c26..a048272c1 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.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/cloud/pubsublite/v1/admin.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Request for CreateReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateReservationRequest} */ -public final class CreateReservationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CreateReservationRequest) CreateReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateReservationRequest.newBuilder() to construct. private CreateReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateReservationRequest() { parent_ = ""; reservationId_ = ""; @@ -44,46 +26,39 @@ private CreateReservationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateReservationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateReservationRequest.class, - com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateReservationRequest.class, com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 @@ -92,32 +67,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 parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 { @@ -128,16 +101,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int RESERVATION_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Reservation reservation_; /** - * - * *
-   * Required. Configuration of the reservation to create. Its `name` field is ignored.
+   * Required. Configuration of the reservation to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ @java.lang.Override @@ -145,57 +114,42 @@ public boolean hasReservation() { return reservation_ != null; } /** - * - * *
-   * Required. Configuration of the reservation to create. Its `name` field is ignored.
+   * Required. Configuration of the reservation to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Reservation getReservation() { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } /** - * - * *
-   * Required. Configuration of the reservation to create. Its `name` field is ignored.
+   * Required. Configuration of the reservation to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } public static final int RESERVATION_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object reservationId_ = ""; /** - * - * *
-   * Required. The ID to use for the reservation, which will become the final component of
-   * the reservation's name.
+   * Required. The ID to use for the reservation, which will become the final
+   * component of the reservation's name.
    * This value is structured like: `my-reservation-name`.
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reservationId. */ @java.lang.Override @@ -204,31 +158,31 @@ public java.lang.String getReservationId() { 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(); reservationId_ = s; return s; } } /** - * - * *
-   * Required. The ID to use for the reservation, which will become the final component of
-   * the reservation's name.
+   * Required. The ID to use for the reservation, which will become the final
+   * component of the reservation's name.
    * This value is structured like: `my-reservation-name`.
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for reservationId. */ @java.lang.Override - public com.google.protobuf.ByteString getReservationIdBytes() { + public com.google.protobuf.ByteString + getReservationIdBytes() { java.lang.Object ref = reservationId_; 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); reservationId_ = b; return b; } else { @@ -237,7 +191,6 @@ public com.google.protobuf.ByteString getReservationIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +202,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_); } @@ -272,7 +226,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (reservation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReservation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReservation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reservationId_); @@ -285,20 +240,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.cloud.pubsublite.proto.CreateReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CreateReservationRequest other = - (com.google.cloud.pubsublite.proto.CreateReservationRequest) obj; + com.google.cloud.pubsublite.proto.CreateReservationRequest other = (com.google.cloud.pubsublite.proto.CreateReservationRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReservation() != other.hasReservation()) return false; if (hasReservation()) { - if (!getReservation().equals(other.getReservation())) return false; + if (!getReservation() + .equals(other.getReservation())) return false; } - if (!getReservationId().equals(other.getReservationId())) return false; + if (!getReservationId() + .equals(other.getReservationId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,136 +281,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.CreateReservationRequest 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 CreateReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateReservationRequest} */ - 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.cloud.pubsublite.v1.CreateReservationRequest) com.google.cloud.pubsublite.proto.CreateReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateReservationRequest.class, - com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateReservationRequest.class, com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CreateReservationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; } @java.lang.Override @@ -490,11 +440,8 @@ public com.google.cloud.pubsublite.proto.CreateReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CreateReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.CreateReservationRequest result = - new com.google.cloud.pubsublite.proto.CreateReservationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.CreateReservationRequest result = new com.google.cloud.pubsublite.proto.CreateReservationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -505,8 +452,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateReservationRe result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.reservation_ = - reservationBuilder_ == null ? reservation_ : reservationBuilder_.build(); + result.reservation_ = reservationBuilder_ == null + ? reservation_ + : reservationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.reservationId_ = reservationId_; @@ -517,39 +465,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateReservationRe 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.cloud.pubsublite.proto.CreateReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CreateReservationRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CreateReservationRequest)other); } else { super.mergeFrom(other); return this; @@ -557,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CreateReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.CreateReservationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CreateReservationRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -598,31 +544,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getReservationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - reservationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getReservationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + reservationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -632,28 +576,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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; @@ -662,24 +601,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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 { @@ -687,41 +623,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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() { @@ -731,24 +656,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -758,58 +677,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Reservation reservation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> - reservationBuilder_; + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> reservationBuilder_; /** - * - * *
-     * Required. Configuration of the reservation to create. Its `name` field is ignored.
+     * Required. Configuration of the reservation to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ public boolean hasReservation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
-     * Required. Configuration of the reservation to create. Its `name` field is ignored.
+     * Required. Configuration of the reservation to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ public com.google.cloud.pubsublite.proto.Reservation getReservation() { if (reservationBuilder_ == null) { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } else { return reservationBuilder_.getMessage(); } } /** - * - * *
-     * Required. Configuration of the reservation to create. Its `name` field is ignored.
+     * Required. Configuration of the reservation to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { @@ -825,15 +728,12 @@ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation valu return this; } /** - * - * *
-     * Required. Configuration of the reservation to create. Its `name` field is ignored.
+     * Required. Configuration of the reservation to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReservation( com.google.cloud.pubsublite.proto.Reservation.Builder builderForValue) { @@ -847,21 +747,18 @@ public Builder setReservation( return this; } /** - * - * *
-     * Required. Configuration of the reservation to create. Its `name` field is ignored.
+     * Required. Configuration of the reservation to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && reservation_ != null - && reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + reservation_ != null && + reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { getReservationBuilder().mergeFrom(value); } else { reservation_ = value; @@ -874,15 +771,12 @@ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation va return this; } /** - * - * *
-     * Required. Configuration of the reservation to create. Its `name` field is ignored.
+     * Required. Configuration of the reservation to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReservation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -895,15 +789,12 @@ public Builder clearReservation() { return this; } /** - * - * *
-     * Required. Configuration of the reservation to create. Its `name` field is ignored.
+     * Required. Configuration of the reservation to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuilder() { bitField0_ |= 0x00000002; @@ -911,48 +802,38 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuild return getReservationFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. Configuration of the reservation to create. Its `name` field is ignored.
+     * Required. Configuration of the reservation to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { if (reservationBuilder_ != null) { return reservationBuilder_.getMessageOrBuilder(); } else { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } } /** - * - * *
-     * Required. Configuration of the reservation to create. Its `name` field is ignored.
+     * Required. Configuration of the reservation to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> getReservationFieldBuilder() { if (reservationBuilder_ == null) { - reservationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder>( - getReservation(), getParentForChildren(), isClean()); + reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder>( + getReservation(), + getParentForChildren(), + isClean()); reservation_ = null; } return reservationBuilder_; @@ -960,22 +841,20 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu private java.lang.Object reservationId_ = ""; /** - * - * *
-     * Required. The ID to use for the reservation, which will become the final component of
-     * the reservation's name.
+     * Required. The ID to use for the reservation, which will become the final
+     * component of the reservation's name.
      * This value is structured like: `my-reservation-name`.
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reservationId. */ public java.lang.String getReservationId() { java.lang.Object ref = reservationId_; 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(); reservationId_ = s; return s; @@ -984,23 +863,22 @@ public java.lang.String getReservationId() { } } /** - * - * *
-     * Required. The ID to use for the reservation, which will become the final component of
-     * the reservation's name.
+     * Required. The ID to use for the reservation, which will become the final
+     * component of the reservation's name.
      * This value is structured like: `my-reservation-name`.
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for reservationId. */ - public com.google.protobuf.ByteString getReservationIdBytes() { + public com.google.protobuf.ByteString + getReservationIdBytes() { java.lang.Object ref = reservationId_; 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); reservationId_ = b; return b; } else { @@ -1008,39 +886,32 @@ public com.google.protobuf.ByteString getReservationIdBytes() { } } /** - * - * *
-     * Required. The ID to use for the reservation, which will become the final component of
-     * the reservation's name.
+     * Required. The ID to use for the reservation, which will become the final
+     * component of the reservation's name.
      * This value is structured like: `my-reservation-name`.
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The reservationId to set. * @return This builder for chaining. */ - public Builder setReservationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReservationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reservationId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Required. The ID to use for the reservation, which will become the final component of
-     * the reservation's name.
+     * Required. The ID to use for the reservation, which will become the final
+     * component of the reservation's name.
      * This value is structured like: `my-reservation-name`.
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearReservationId() { @@ -1050,32 +921,28 @@ public Builder clearReservationId() { return this; } /** - * - * *
-     * Required. The ID to use for the reservation, which will become the final component of
-     * the reservation's name.
+     * Required. The ID to use for the reservation, which will become the final
+     * component of the reservation's name.
      * This value is structured like: `my-reservation-name`.
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for reservationId to set. * @return This builder for chaining. */ - public Builder setReservationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReservationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reservationId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1085,12 +952,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CreateReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CreateReservationRequest) private static final com.google.cloud.pubsublite.proto.CreateReservationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CreateReservationRequest(); } @@ -1099,27 +966,27 @@ public static com.google.cloud.pubsublite.proto.CreateReservationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1134,4 +1001,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CreateReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java index b4672aa61..dcc2113fc 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface CreateReservationRequestOrBuilder - extends +public interface CreateReservationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CreateReservationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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. Configuration of the reservation to create. Its `name` field is ignored.
+   * Required. Configuration of the reservation to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ boolean hasReservation(); /** - * - * *
-   * Required. Configuration of the reservation to create. Its `name` field is ignored.
+   * Required. Configuration of the reservation to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ com.google.cloud.pubsublite.proto.Reservation getReservation(); /** - * - * *
-   * Required. Configuration of the reservation to create. Its `name` field is ignored.
+   * Required. Configuration of the reservation to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder(); /** - * - * *
-   * Required. The ID to use for the reservation, which will become the final component of
-   * the reservation's name.
+   * Required. The ID to use for the reservation, which will become the final
+   * component of the reservation's name.
    * This value is structured like: `my-reservation-name`.
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reservationId. */ java.lang.String getReservationId(); /** - * - * *
-   * Required. The ID to use for the reservation, which will become the final component of
-   * the reservation's name.
+   * Required. The ID to use for the reservation, which will become the final
+   * component of the reservation's name.
    * This value is structured like: `my-reservation-name`.
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for reservationId. */ - com.google.protobuf.ByteString getReservationIdBytes(); + com.google.protobuf.ByteString + getReservationIdBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java similarity index 64% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java index 6920693b3..dface03af 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for CreateSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateSubscriptionRequest} */ -public final class CreateSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CreateSubscriptionRequest) CreateSubscriptionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSubscriptionRequest.newBuilder() to construct. private CreateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSubscriptionRequest() { parent_ = ""; subscriptionId_ = ""; @@ -44,46 +26,39 @@ private CreateSubscriptionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSubscriptionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 @@ -92,32 +67,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 parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 { @@ -128,16 +101,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SUBSCRIPTION_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Subscription subscription_; /** - * - * *
-   * Required. Configuration of the subscription to create. Its `name` field is ignored.
+   * Required. Configuration of the subscription to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ @java.lang.Override @@ -145,57 +114,42 @@ public boolean hasSubscription() { return subscription_ != null; } /** - * - * *
-   * Required. Configuration of the subscription to create. Its `name` field is ignored.
+   * Required. Configuration of the subscription to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription getSubscription() { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } /** - * - * *
-   * Required. Configuration of the subscription to create. Its `name` field is ignored.
+   * Required. Configuration of the subscription to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } public static final int SUBSCRIPTION_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object subscriptionId_ = ""; /** - * - * *
-   * Required. The ID to use for the subscription, which will become the final component
-   * of the subscription's name.
+   * Required. The ID to use for the subscription, which will become the final
+   * component of the subscription's name.
    * This value is structured like: `my-sub-name`.
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subscriptionId. */ @java.lang.Override @@ -204,31 +158,31 @@ public java.lang.String getSubscriptionId() { 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(); subscriptionId_ = s; return s; } } /** - * - * *
-   * Required. The ID to use for the subscription, which will become the final component
-   * of the subscription's name.
+   * Required. The ID to use for the subscription, which will become the final
+   * component of the subscription's name.
    * This value is structured like: `my-sub-name`.
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subscriptionId. */ @java.lang.Override - public com.google.protobuf.ByteString getSubscriptionIdBytes() { + public com.google.protobuf.ByteString + getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; 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); subscriptionId_ = b; return b; } else { @@ -239,8 +193,6 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() { public static final int SKIP_BACKLOG_FIELD_NUMBER = 4; private boolean skipBacklog_ = false; /** - * - * *
    * If true, the newly created subscription will only receive messages
    * published after the subscription was created. Otherwise, the entire
@@ -248,7 +200,6 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() {
    * 
* * bool skip_backlog = 4; - * * @return The skipBacklog. */ @java.lang.Override @@ -257,7 +208,6 @@ public boolean getSkipBacklog() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +219,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_); } @@ -295,13 +246,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (subscription_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubscription()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSubscription()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subscriptionId_); } if (skipBacklog_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipBacklog_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, skipBacklog_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -311,21 +264,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.cloud.pubsublite.proto.CreateSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest other = - (com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest other = (com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSubscription() != other.hasSubscription()) return false; if (hasSubscription()) { - if (!getSubscription().equals(other.getSubscription())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; } - if (!getSubscriptionId().equals(other.getSubscriptionId())) return false; - if (getSkipBacklog() != other.getSkipBacklog()) return false; + if (!getSubscriptionId() + .equals(other.getSubscriptionId())) return false; + if (getSkipBacklog() + != other.getSkipBacklog()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,143 +302,137 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_ID_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionId().hashCode(); hash = (37 * hash) + SKIP_BACKLOG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipBacklog()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSkipBacklog()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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 CreateSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateSubscriptionRequest} */ - 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.cloud.pubsublite.v1.CreateSubscriptionRequest) com.google.cloud.pubsublite.proto.CreateSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; } @java.lang.Override @@ -520,11 +470,8 @@ public com.google.cloud.pubsublite.proto.CreateSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CreateSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.CreateSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest result = new com.google.cloud.pubsublite.proto.CreateSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -535,8 +482,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateSubscriptionR result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.subscription_ = - subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); + result.subscription_ = subscriptionBuilder_ == null + ? subscription_ + : subscriptionBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.subscriptionId_ = subscriptionId_; @@ -550,39 +498,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateSubscriptionR 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.cloud.pubsublite.proto.CreateSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CreateSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -590,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -634,37 +580,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - subscriptionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - skipBacklog_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSubscriptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + subscriptionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + skipBacklog_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -674,28 +617,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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; @@ -704,24 +642,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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 { @@ -729,41 +664,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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() { @@ -773,24 +697,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -800,58 +718,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> - subscriptionBuilder_; + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> subscriptionBuilder_; /** - * - * *
-     * Required. Configuration of the subscription to create. Its `name` field is ignored.
+     * Required. Configuration of the subscription to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ public boolean hasSubscription() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
-     * Required. Configuration of the subscription to create. Its `name` field is ignored.
+     * Required. Configuration of the subscription to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ public com.google.cloud.pubsublite.proto.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** - * - * *
-     * Required. Configuration of the subscription to create. Its `name` field is ignored.
+     * Required. Configuration of the subscription to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { @@ -867,15 +769,12 @@ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription va return this; } /** - * - * *
-     * Required. Configuration of the subscription to create. Its `name` field is ignored.
+     * Required. Configuration of the subscription to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubscription( com.google.cloud.pubsublite.proto.Subscription.Builder builderForValue) { @@ -889,22 +788,18 @@ public Builder setSubscription( return this; } /** - * - * *
-     * Required. Configuration of the subscription to create. Its `name` field is ignored.
+     * Required. Configuration of the subscription to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && subscription_ != null - && subscription_ - != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + subscription_ != null && + subscription_ != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; @@ -917,15 +812,12 @@ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription return this; } /** - * - * *
-     * Required. Configuration of the subscription to create. Its `name` field is ignored.
+     * Required. Configuration of the subscription to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubscription() { bitField0_ = (bitField0_ & ~0x00000002); @@ -938,15 +830,12 @@ public Builder clearSubscription() { return this; } /** - * - * *
-     * Required. Configuration of the subscription to create. Its `name` field is ignored.
+     * Required. Configuration of the subscription to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBuilder() { bitField0_ |= 0x00000002; @@ -954,48 +843,38 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBui return getSubscriptionFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. Configuration of the subscription to create. Its `name` field is ignored.
+     * Required. Configuration of the subscription to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } } /** - * - * *
-     * Required. Configuration of the subscription to create. Its `name` field is ignored.
+     * Required. Configuration of the subscription to create. Its `name` field is
+     * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( - getSubscription(), getParentForChildren(), isClean()); + subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( + getSubscription(), + getParentForChildren(), + isClean()); subscription_ = null; } return subscriptionBuilder_; @@ -1003,22 +882,20 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr private java.lang.Object subscriptionId_ = ""; /** - * - * *
-     * Required. The ID to use for the subscription, which will become the final component
-     * of the subscription's name.
+     * Required. The ID to use for the subscription, which will become the final
+     * component of the subscription's name.
      * This value is structured like: `my-sub-name`.
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subscriptionId. */ public java.lang.String getSubscriptionId() { java.lang.Object ref = subscriptionId_; 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(); subscriptionId_ = s; return s; @@ -1027,23 +904,22 @@ public java.lang.String getSubscriptionId() { } } /** - * - * *
-     * Required. The ID to use for the subscription, which will become the final component
-     * of the subscription's name.
+     * Required. The ID to use for the subscription, which will become the final
+     * component of the subscription's name.
      * This value is structured like: `my-sub-name`.
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subscriptionId. */ - public com.google.protobuf.ByteString getSubscriptionIdBytes() { + public com.google.protobuf.ByteString + getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; 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); subscriptionId_ = b; return b; } else { @@ -1051,39 +927,32 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() { } } /** - * - * *
-     * Required. The ID to use for the subscription, which will become the final component
-     * of the subscription's name.
+     * Required. The ID to use for the subscription, which will become the final
+     * component of the subscription's name.
      * This value is structured like: `my-sub-name`.
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The subscriptionId to set. * @return This builder for chaining. */ - public Builder setSubscriptionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscriptionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Required. The ID to use for the subscription, which will become the final component
-     * of the subscription's name.
+     * Required. The ID to use for the subscription, which will become the final
+     * component of the subscription's name.
      * This value is structured like: `my-sub-name`.
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSubscriptionId() { @@ -1093,23 +962,19 @@ public Builder clearSubscriptionId() { return this; } /** - * - * *
-     * Required. The ID to use for the subscription, which will become the final component
-     * of the subscription's name.
+     * Required. The ID to use for the subscription, which will become the final
+     * component of the subscription's name.
      * This value is structured like: `my-sub-name`.
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for subscriptionId to set. * @return This builder for chaining. */ - public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscriptionId_ = value; bitField0_ |= 0x00000004; @@ -1117,10 +982,8 @@ public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean skipBacklog_; + private boolean skipBacklog_ ; /** - * - * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1128,7 +991,6 @@ public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool skip_backlog = 4; - * * @return The skipBacklog. */ @java.lang.Override @@ -1136,8 +998,6 @@ public boolean getSkipBacklog() { return skipBacklog_; } /** - * - * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1145,20 +1005,17 @@ public boolean getSkipBacklog() {
      * 
* * bool skip_backlog = 4; - * * @param value The skipBacklog to set. * @return This builder for chaining. */ public Builder setSkipBacklog(boolean value) { - + skipBacklog_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1166,7 +1023,6 @@ public Builder setSkipBacklog(boolean value) {
      * 
* * bool skip_backlog = 4; - * * @return This builder for chaining. */ public Builder clearSkipBacklog() { @@ -1175,9 +1031,9 @@ public Builder clearSkipBacklog() { 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); } @@ -1187,12 +1043,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CreateSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CreateSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.CreateSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CreateSubscriptionRequest(); } @@ -1201,27 +1057,27 @@ public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1236,4 +1092,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.CreateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java index f0f86d515..35a369e3c 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java @@ -1,132 +1,89 @@ -/* - * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface CreateSubscriptionRequestOrBuilder - extends +public interface CreateSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CreateSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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. Configuration of the subscription to create. Its `name` field is ignored.
+   * Required. Configuration of the subscription to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ boolean hasSubscription(); /** - * - * *
-   * Required. Configuration of the subscription to create. Its `name` field is ignored.
+   * Required. Configuration of the subscription to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ com.google.cloud.pubsublite.proto.Subscription getSubscription(); /** - * - * *
-   * Required. Configuration of the subscription to create. Its `name` field is ignored.
+   * Required. Configuration of the subscription to create. Its `name` field is
+   * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** - * - * *
-   * Required. The ID to use for the subscription, which will become the final component
-   * of the subscription's name.
+   * Required. The ID to use for the subscription, which will become the final
+   * component of the subscription's name.
    * This value is structured like: `my-sub-name`.
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subscriptionId. */ java.lang.String getSubscriptionId(); /** - * - * *
-   * Required. The ID to use for the subscription, which will become the final component
-   * of the subscription's name.
+   * Required. The ID to use for the subscription, which will become the final
+   * component of the subscription's name.
    * This value is structured like: `my-sub-name`.
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subscriptionId. */ - com.google.protobuf.ByteString getSubscriptionIdBytes(); + com.google.protobuf.ByteString + getSubscriptionIdBytes(); /** - * - * *
    * If true, the newly created subscription will only receive messages
    * published after the subscription was created. Otherwise, the entire
@@ -134,7 +91,6 @@ public interface CreateSubscriptionRequestOrBuilder
    * 
* * bool skip_backlog = 4; - * * @return The skipBacklog. */ boolean getSkipBacklog(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java index 37c38ea5d..7516ea05d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for CreateTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateTopicRequest} */ -public final class CreateTopicRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateTopicRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CreateTopicRequest) CreateTopicRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateTopicRequest.newBuilder() to construct. private CreateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateTopicRequest() { parent_ = ""; topicId_ = ""; @@ -44,46 +26,39 @@ private CreateTopicRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateTopicRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateTopicRequest.class, - com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateTopicRequest.class, com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 @@ -92,32 +67,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 parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 { @@ -128,15 +101,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int TOPIC_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Topic topic_; /** - * - * *
-   * Required. Configuration of the topic to create. Its `name` field is ignored.
+   * Required. Configuration of the topic to create. Its `name` field is
+   * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ @java.lang.Override @@ -144,15 +114,12 @@ public boolean hasTopic() { return topic_ != null; } /** - * - * *
-   * Required. Configuration of the topic to create. Its `name` field is ignored.
+   * Required. Configuration of the topic to create. Its `name` field is
+   * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ @java.lang.Override @@ -160,14 +127,12 @@ public com.google.cloud.pubsublite.proto.Topic getTopic() { return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } /** - * - * *
-   * Required. Configuration of the topic to create. Its `name` field is ignored.
+   * Required. Configuration of the topic to create. Its `name` field is
+   * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { @@ -175,20 +140,16 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { } public static final int TOPIC_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object topicId_ = ""; /** - * - * *
-   * Required. The ID to use for the topic, which will become the final component of
-   * the topic's name.
+   * Required. The ID to use for the topic, which will become the final
+   * component of the topic's name.
    * This value is structured like: `my-topic-name`.
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topicId. */ @java.lang.Override @@ -197,31 +158,31 @@ public java.lang.String getTopicId() { 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(); topicId_ = s; return s; } } /** - * - * *
-   * Required. The ID to use for the topic, which will become the final component of
-   * the topic's name.
+   * Required. The ID to use for the topic, which will become the final
+   * component of the topic's name.
    * This value is structured like: `my-topic-name`.
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topicId. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicIdBytes() { + public com.google.protobuf.ByteString + getTopicIdBytes() { java.lang.Object ref = topicId_; 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); topicId_ = b; return b; } else { @@ -230,7 +191,6 @@ public com.google.protobuf.ByteString getTopicIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +202,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_); } @@ -265,7 +226,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (topic_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTopic()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTopic()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topicId_); @@ -278,20 +240,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.cloud.pubsublite.proto.CreateTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CreateTopicRequest other = - (com.google.cloud.pubsublite.proto.CreateTopicRequest) obj; + com.google.cloud.pubsublite.proto.CreateTopicRequest other = (com.google.cloud.pubsublite.proto.CreateTopicRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasTopic() != other.hasTopic()) return false; if (hasTopic()) { - if (!getTopic().equals(other.getTopic())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; } - if (!getTopicId().equals(other.getTopicId())) return false; + if (!getTopicId() + .equals(other.getTopicId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -317,135 +281,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest 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 CreateTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateTopicRequest} */ - 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.cloud.pubsublite.v1.CreateTopicRequest) com.google.cloud.pubsublite.proto.CreateTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateTopicRequest.class, - com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateTopicRequest.class, com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CreateTopicRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; } @java.lang.Override @@ -482,11 +440,8 @@ public com.google.cloud.pubsublite.proto.CreateTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CreateTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.CreateTopicRequest result = - new com.google.cloud.pubsublite.proto.CreateTopicRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.CreateTopicRequest result = new com.google.cloud.pubsublite.proto.CreateTopicRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -497,7 +452,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateTopicRequest result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); + result.topic_ = topicBuilder_ == null + ? topic_ + : topicBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.topicId_ = topicId_; @@ -508,39 +465,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CreateTopicRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CreateTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -548,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CreateTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.CreateTopicRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CreateTopicRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -589,31 +544,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - topicId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTopicFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + topicId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,28 +576,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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; @@ -653,24 +601,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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 { @@ -678,41 +623,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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() { @@ -722,24 +656,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -749,55 +677,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> - topicBuilder_; + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> topicBuilder_; /** - * - * *
-     * Required. Configuration of the topic to create. Its `name` field is ignored.
+     * Required. Configuration of the topic to create. Its `name` field is
+     * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ public boolean hasTopic() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
-     * Required. Configuration of the topic to create. Its `name` field is ignored.
+     * Required. Configuration of the topic to create. Its `name` field is
+     * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ public com.google.cloud.pubsublite.proto.Topic getTopic() { if (topicBuilder_ == null) { - return topic_ == null - ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() - : topic_; + return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } else { return topicBuilder_.getMessage(); } } /** - * - * *
-     * Required. Configuration of the topic to create. Its `name` field is ignored.
+     * Required. Configuration of the topic to create. Its `name` field is
+     * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { @@ -813,16 +728,15 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** - * - * *
-     * Required. Configuration of the topic to create. Its `name` field is ignored.
+     * Required. Configuration of the topic to create. Its `name` field is
+     * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { + public Builder setTopic( + com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); } else { @@ -833,20 +747,18 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderF return this; } /** - * - * *
-     * Required. Configuration of the topic to create. Its `name` field is ignored.
+     * Required. Configuration of the topic to create. Its `name` field is
+     * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && topic_ != null - && topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + topic_ != null && + topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { getTopicBuilder().mergeFrom(value); } else { topic_ = value; @@ -859,14 +771,12 @@ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** - * - * *
-     * Required. Configuration of the topic to create. Its `name` field is ignored.
+     * Required. Configuration of the topic to create. Its `name` field is
+     * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTopic() { bitField0_ = (bitField0_ & ~0x00000002); @@ -879,14 +789,12 @@ public Builder clearTopic() { return this; } /** - * - * *
-     * Required. Configuration of the topic to create. Its `name` field is ignored.
+     * Required. Configuration of the topic to create. Its `name` field is
+     * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { bitField0_ |= 0x00000002; @@ -894,46 +802,38 @@ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { return getTopicFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. Configuration of the topic to create. Its `name` field is ignored.
+     * Required. Configuration of the topic to create. Its `name` field is
+     * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { - return topic_ == null - ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() - : topic_; + return topic_ == null ? + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } } /** - * - * *
-     * Required. Configuration of the topic to create. Its `name` field is ignored.
+     * Required. Configuration of the topic to create. Its `name` field is
+     * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> getTopicFieldBuilder() { if (topicBuilder_ == null) { - topicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder>( - getTopic(), getParentForChildren(), isClean()); + topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder>( + getTopic(), + getParentForChildren(), + isClean()); topic_ = null; } return topicBuilder_; @@ -941,22 +841,20 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { private java.lang.Object topicId_ = ""; /** - * - * *
-     * Required. The ID to use for the topic, which will become the final component of
-     * the topic's name.
+     * Required. The ID to use for the topic, which will become the final
+     * component of the topic's name.
      * This value is structured like: `my-topic-name`.
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topicId. */ public java.lang.String getTopicId() { java.lang.Object ref = topicId_; 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(); topicId_ = s; return s; @@ -965,23 +863,22 @@ public java.lang.String getTopicId() { } } /** - * - * *
-     * Required. The ID to use for the topic, which will become the final component of
-     * the topic's name.
+     * Required. The ID to use for the topic, which will become the final
+     * component of the topic's name.
      * This value is structured like: `my-topic-name`.
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topicId. */ - public com.google.protobuf.ByteString getTopicIdBytes() { + public com.google.protobuf.ByteString + getTopicIdBytes() { java.lang.Object ref = topicId_; 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); topicId_ = b; return b; } else { @@ -989,39 +886,32 @@ public com.google.protobuf.ByteString getTopicIdBytes() { } } /** - * - * *
-     * Required. The ID to use for the topic, which will become the final component of
-     * the topic's name.
+     * Required. The ID to use for the topic, which will become the final
+     * component of the topic's name.
      * This value is structured like: `my-topic-name`.
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The topicId to set. * @return This builder for chaining. */ - public Builder setTopicId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topicId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Required. The ID to use for the topic, which will become the final component of
-     * the topic's name.
+     * Required. The ID to use for the topic, which will become the final
+     * component of the topic's name.
      * This value is structured like: `my-topic-name`.
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTopicId() { @@ -1031,32 +921,28 @@ public Builder clearTopicId() { return this; } /** - * - * *
-     * Required. The ID to use for the topic, which will become the final component of
-     * the topic's name.
+     * Required. The ID to use for the topic, which will become the final
+     * component of the topic's name.
      * This value is structured like: `my-topic-name`.
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for topicId to set. * @return This builder for chaining. */ - public Builder setTopicIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topicId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1066,12 +952,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CreateTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CreateTopicRequest) private static final com.google.cloud.pubsublite.proto.CreateTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CreateTopicRequest(); } @@ -1080,27 +966,27 @@ public static com.google.cloud.pubsublite.proto.CreateTopicRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1115,4 +1001,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CreateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java index 3c4917c40..f9643973b 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java @@ -1,123 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface CreateTopicRequestOrBuilder - extends +public interface CreateTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CreateTopicRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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. Configuration of the topic to create. Its `name` field is ignored.
+   * Required. Configuration of the topic to create. Its `name` field is
+   * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ boolean hasTopic(); /** - * - * *
-   * Required. Configuration of the topic to create. Its `name` field is ignored.
+   * Required. Configuration of the topic to create. Its `name` field is
+   * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ com.google.cloud.pubsublite.proto.Topic getTopic(); /** - * - * *
-   * Required. Configuration of the topic to create. Its `name` field is ignored.
+   * Required. Configuration of the topic to create. Its `name` field is
+   * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder(); /** - * - * *
-   * Required. The ID to use for the topic, which will become the final component of
-   * the topic's name.
+   * Required. The ID to use for the topic, which will become the final
+   * component of the topic's name.
    * This value is structured like: `my-topic-name`.
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topicId. */ java.lang.String getTopicId(); /** - * - * *
-   * Required. The ID to use for the topic, which will become the final component of
-   * the topic's name.
+   * Required. The ID to use for the topic, which will become the final
+   * component of the topic's name.
    * This value is structured like: `my-topic-name`.
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topicId. */ - com.google.protobuf.ByteString getTopicIdBytes(); + com.google.protobuf.ByteString + getTopicIdBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java similarity index 64% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java index c6dc66342..81f85bf39 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java @@ -1,82 +1,61 @@ -/* - * 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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * A cursor that describes the position of a message within a topic partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Cursor} */ -public final class Cursor extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Cursor extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Cursor) CursorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Cursor.newBuilder() to construct. private Cursor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Cursor() {} + private Cursor() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Cursor(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Cursor.class, - com.google.cloud.pubsublite.proto.Cursor.Builder.class); + com.google.cloud.pubsublite.proto.Cursor.class, com.google.cloud.pubsublite.proto.Cursor.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** - * - * *
    * The offset of a message within a topic partition. Must be greater than or
    * equal 0.
    * 
* * int64 offset = 1; - * * @return The offset. */ @java.lang.Override @@ -85,7 +64,6 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,7 +75,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 (offset_ != 0L) { output.writeInt64(1, offset_); } @@ -111,7 +90,8 @@ public int getSerializedSize() { size = 0; if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -121,14 +101,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.cloud.pubsublite.proto.Cursor)) { return super.equals(obj); } com.google.cloud.pubsublite.proto.Cursor other = (com.google.cloud.pubsublite.proto.Cursor) obj; - if (getOffset() != other.getOffset()) return false; + if (getOffset() + != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -141,142 +122,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.Cursor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Cursor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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 cursor that describes the position of a message within a topic partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Cursor} */ - 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.cloud.pubsublite.v1.Cursor) com.google.cloud.pubsublite.proto.CursorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Cursor.class, - com.google.cloud.pubsublite.proto.Cursor.Builder.class); + com.google.cloud.pubsublite.proto.Cursor.class, com.google.cloud.pubsublite.proto.Cursor.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Cursor.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -286,9 +262,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; } @java.lang.Override @@ -307,11 +283,8 @@ public com.google.cloud.pubsublite.proto.Cursor build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor buildPartial() { - com.google.cloud.pubsublite.proto.Cursor result = - new com.google.cloud.pubsublite.proto.Cursor(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Cursor result = new com.google.cloud.pubsublite.proto.Cursor(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -327,39 +300,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Cursor result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Cursor) { - return mergeFrom((com.google.cloud.pubsublite.proto.Cursor) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Cursor)other); } else { super.mergeFrom(other); return this; @@ -397,19 +369,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + offset_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,20 +389,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long offset_; + private long offset_ ; /** - * - * *
      * The offset of a message within a topic partition. Must be greater than or
      * equal 0.
      * 
* * int64 offset = 1; - * * @return The offset. */ @java.lang.Override @@ -440,35 +406,29 @@ public long getOffset() { return offset_; } /** - * - * *
      * The offset of a message within a topic partition. Must be greater than or
      * equal 0.
      * 
* * int64 offset = 1; - * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The offset of a message within a topic partition. Must be greater than or
      * equal 0.
      * 
* * int64 offset = 1; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -477,9 +437,9 @@ public Builder clearOffset() { 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); } @@ -489,12 +449,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Cursor) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Cursor) private static final com.google.cloud.pubsublite.proto.Cursor DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Cursor(); } @@ -503,27 +463,27 @@ public static com.google.cloud.pubsublite.proto.Cursor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cursor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cursor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -538,4 +498,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Cursor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java new file mode 100644 index 000000000..54313bba0 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/common.proto + +package com.google.cloud.pubsublite.proto; + +public interface CursorOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Cursor) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The offset of a message within a topic partition. Must be greater than or
+   * equal 0.
+   * 
+ * + * int64 offset = 1; + * @return The offset. + */ + long getOffset(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java new file mode 100644 index 000000000..77dece10b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java @@ -0,0 +1,232 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +package com.google.cloud.pubsublite.proto; + +public final class CursorProto { + private CursorProto() {} + 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_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_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\'google/cloud/pubsublite/v1/cursor.prot" + + "o\022\032google.cloud.pubsublite.v1\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032\'google/cloud/p" + + "ubsublite/v1/common.proto\"E\n\032InitialComm" + + "itCursorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n" + + "\tpartition\030\002 \001(\003\"\035\n\033InitialCommitCursorR" + + "esponse\"R\n\034SequencedCommitCursorRequest\022" + + "2\n\006cursor\030\001 \001(\0132\".google.cloud.pubsublit" + + "e.v1.Cursor\"=\n\035SequencedCommitCursorResp" + + "onse\022\034\n\024acknowledged_commits\030\001 \001(\003\"\300\001\n\034S" + + "treamingCommitCursorRequest\022I\n\007initial\030\001" + + " \001(\01326.google.cloud.pubsublite.v1.Initia" + + "lCommitCursorRequestH\000\022J\n\006commit\030\002 \001(\01328" + + ".google.cloud.pubsublite.v1.SequencedCom" + + "mitCursorRequestH\000B\t\n\007request\"\303\001\n\035Stream" + + "ingCommitCursorResponse\022J\n\007initial\030\001 \001(\013" + + "27.google.cloud.pubsublite.v1.InitialCom" + + "mitCursorResponseH\000\022K\n\006commit\030\002 \001(\01329.go" + + "ogle.cloud.pubsublite.v1.SequencedCommit" + + "CursorResponseH\000B\t\n\007request\"r\n\023CommitCur" + + "sorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n\tpart" + + "ition\030\002 \001(\003\0222\n\006cursor\030\003 \001(\0132\".google.clo" + + "ud.pubsublite.v1.Cursor\"\026\n\024CommitCursorR" + + "esponse\"\204\001\n\033ListPartitionCursorsRequest\022" + + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.goog" + + "leapis.com/Subscription\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurso" + + "r\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\".g" + + "oogle.cloud.pubsublite.v1.Cursor\"\177\n\034List" + + "PartitionCursorsResponse\022F\n\021partition_cu" + + "rsors\030\001 \003(\0132+.google.cloud.pubsublite.v1" + + ".PartitionCursor\022\027\n\017next_page_token\030\002 \001(" + + "\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommitC" + + "ursor\0228.google.cloud.pubsublite.v1.Strea" + + "mingCommitCursorRequest\0329.google.cloud.p" + + "ubsublite.v1.StreamingCommitCursorRespon" + + "se\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.cloud" + + ".pubsublite.v1.CommitCursorRequest\0320.goo" + + "gle.cloud.pubsublite.v1.CommitCursorResp" + + "onse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=p" + + "rojects/*/locations/*/subscriptions/*}:c" + + "ommitCursor:\001*\022\336\001\n\024ListPartitionCursors\022" + + "7.google.cloud.pubsublite.v1.ListPartiti" + + "onCursorsRequest\0328.google.cloud.pubsubli" + + "te.v1.ListPartitionCursorsResponse\"S\202\323\344\223" + + "\002D\022B/v1/cursor/{parent=projects/*/locati" + + "ons/*/subscriptions/*}/cursors\332A\006parent\032" + + "M\312A\031pubsublite.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\317" + + "\001\n!com.google.cloud.pubsublite.protoB\013Cu" + + "rsorProtoP\001Z>cloud.google.com/go/pubsubl" + + "ite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252\002" + + "\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Clo" + + "ud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSub" + + "Lite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor, + new java.lang.String[] { "Subscription", "Partition", }); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor, + new java.lang.String[] { "Cursor", }); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor, + new java.lang.String[] { "AcknowledgedCommits", }); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor, + new java.lang.String[] { "Initial", "Commit", "Request", }); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor, + new java.lang.String[] { "Initial", "Commit", "Request", }); + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor, + new java.lang.String[] { "Subscription", "Partition", "Cursor", }); + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor, + new java.lang.String[] { "Partition", "Cursor", }); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor, + new java.lang.String[] { "PartitionCursors", "NextPageToken", }); + 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.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.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java index 09db7fda0..33d5dc9eb 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java @@ -1,89 +1,64 @@ -/* - * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for DeleteReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteReservationRequest} */ -public final class DeleteReservationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.DeleteReservationRequest) DeleteReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteReservationRequest.newBuilder() to construct. private DeleteReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteReservationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteReservationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, - com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the reservation to delete.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,33 +67,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the reservation to delete.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,7 +100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +111,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_); } @@ -163,15 +136,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.cloud.pubsublite.proto.DeleteReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.DeleteReservationRequest other = - (com.google.cloud.pubsublite.proto.DeleteReservationRequest) obj; + com.google.cloud.pubsublite.proto.DeleteReservationRequest other = (com.google.cloud.pubsublite.proto.DeleteReservationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,136 +164,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.DeleteReservationRequest 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 DeleteReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteReservationRequest} */ - 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.cloud.pubsublite.v1.DeleteReservationRequest) com.google.cloud.pubsublite.proto.DeleteReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, - com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.DeleteReservationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,9 +296,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; } @java.lang.Override @@ -351,11 +317,8 @@ public com.google.cloud.pubsublite.proto.DeleteReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.DeleteReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.DeleteReservationRequest result = - new com.google.cloud.pubsublite.proto.DeleteReservationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.DeleteReservationRequest result = new com.google.cloud.pubsublite.proto.DeleteReservationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -371,39 +334,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.DeleteReservationRe 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.cloud.pubsublite.proto.DeleteReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.DeleteReservationRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.DeleteReservationRequest)other); } else { super.mergeFrom(other); return this; @@ -411,8 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.DeleteReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.DeleteReservationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.DeleteReservationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -444,19 +405,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,29 +425,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -497,25 +451,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -523,43 +474,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -569,34 +509,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -606,12 +540,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.DeleteReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.DeleteReservationRequest) private static final com.google.cloud.pubsublite.proto.DeleteReservationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.DeleteReservationRequest(); } @@ -620,27 +554,27 @@ public static com.google.cloud.pubsublite.proto.DeleteReservationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.DeleteReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java new file mode 100644 index 000000000..34666da4c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface DeleteReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the reservation to delete.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the reservation to delete.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java index de9abb50e..5994a85c9 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java @@ -1,87 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for DeleteSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; } @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the subscription to delete.
    * 
* - * - * 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 @@ -90,31 +65,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; } } /** - * - * *
    * Required. The name of the subscription to delete.
    * 
* - * - * 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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,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_); } @@ -159,15 +132,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.cloud.pubsublite.proto.DeleteSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest other = - (com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest other = (com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.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 DeleteSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.DeleteSubscriptionRequest) com.google.cloud.pubsublite.proto.DeleteSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest result = new com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.DeleteSubscriptionR 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.cloud.pubsublite.proto.DeleteSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * 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; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * 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 { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * 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() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..d5c1dc161 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface DeleteSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the subscription to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the subscription to delete.
+   * 
+ * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java index ea340d7e2..64f1208d7 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java @@ -1,87 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for DeleteTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; } @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, - com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the topic to delete.
    * 
* - * - * 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 @@ -90,31 +65,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; } } /** - * - * *
    * Required. The name of the topic to delete.
    * 
* - * - * 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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,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_); } @@ -159,15 +132,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.cloud.pubsublite.proto.DeleteTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.DeleteTopicRequest other = - (com.google.cloud.pubsublite.proto.DeleteTopicRequest) obj; + com.google.cloud.pubsublite.proto.DeleteTopicRequest other = (com.google.cloud.pubsublite.proto.DeleteTopicRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +160,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.DeleteTopicRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 DeleteTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.DeleteTopicRequest) com.google.cloud.pubsublite.proto.DeleteTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, - com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.DeleteTopicRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; } @java.lang.Override @@ -346,11 +313,8 @@ public com.google.cloud.pubsublite.proto.DeleteTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.DeleteTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.DeleteTopicRequest result = - new com.google.cloud.pubsublite.proto.DeleteTopicRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.DeleteTopicRequest result = new com.google.cloud.pubsublite.proto.DeleteTopicRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +330,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.DeleteTopicRequest 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.cloud.pubsublite.proto.DeleteTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.DeleteTopicRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.DeleteTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.DeleteTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.DeleteTopicRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.DeleteTopicRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * 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; @@ -490,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * 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 { @@ -514,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * 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() { @@ -556,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.DeleteTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.DeleteTopicRequest) private static final com.google.cloud.pubsublite.proto.DeleteTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.DeleteTopicRequest(); } @@ -605,27 +540,27 @@ public static com.google.cloud.pubsublite.proto.DeleteTopicRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.DeleteTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java new file mode 100644 index 000000000..816174b34 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface DeleteTopicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the topic to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the topic to delete.
+   * 
+ * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java index 2c85026fe..fbc580763 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Configuration for a Pub/Sub Lite subscription that writes messages to a
  * destination. User subscriber clients must not connect to this subscription.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig}
  */
-public final class ExportConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ExportConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ExportConfig)
     ExportConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ExportConfig.newBuilder() to construct.
   private ExportConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ExportConfig() {
     desiredState_ = 0;
     currentState_ = 0;
@@ -46,43 +28,39 @@ private ExportConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExportConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CommonProto
-        .internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CommonProto
-        .internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.ExportConfig.class,
-            com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
+            com.google.cloud.pubsublite.proto.ExportConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The desired export state.
    * 
* * Protobuf enum {@code google.cloud.pubsublite.v1.ExportConfig.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is unused.
      * 
@@ -91,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Messages are being exported.
      * 
@@ -101,8 +77,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * Exporting messages is suspended.
      * 
@@ -111,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PAUSED(2), /** - * - * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -121,8 +93,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PERMISSION_DENIED(3), /** - * - * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -134,8 +104,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is unused.
      * 
@@ -144,8 +112,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Messages are being exported.
      * 
@@ -154,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * Exporting messages is suspended.
      * 
@@ -164,8 +128,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PAUSED_VALUE = 2; /** - * - * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -174,8 +136,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PERMISSION_DENIED_VALUE = 3; /** - * - * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -184,6 +144,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_FOUND_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -208,53 +169,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return PAUSED; - case 3: - return PERMISSION_DENIED; - case 4: - return NOT_FOUND; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return PAUSED; + case 3: return PERMISSION_DENIED; + case 4: return NOT_FOUND; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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.cloud.pubsublite.proto.ExportConfig.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -271,14 +230,11 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.pubsublite.v1.ExportConfig.State) } - public interface PubSubConfigOrBuilder - extends + public interface PubSubConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -286,13 +242,10 @@ public interface PubSubConfigOrBuilder
      * 
* * string topic = 1; - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -300,67 +253,60 @@ public interface PubSubConfigOrBuilder
      * 
* * string topic = 1; - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); } /** - * - * *
    * Configuration for exporting to a Pub/Sub topic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig.PubSubConfig} */ - public static final class PubSubConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PubSubConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) PubSubConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PubSubConfig.newBuilder() to construct. private PubSubConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PubSubConfig() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PubSubConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -368,7 +314,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string topic = 1; - * * @return The topic. */ @java.lang.Override @@ -377,15 +322,14 @@ 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 Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -393,15 +337,16 @@ public java.lang.String getTopic() {
      * 
* * string topic = 1; - * * @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 { @@ -410,7 +355,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -422,7 +366,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_); } @@ -446,15 +391,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.cloud.pubsublite.proto.ExportConfig.PubSubConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig other = - (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) obj; + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig other = (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) obj; - if (!getTopic().equals(other.getTopic())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -474,94 +419,87 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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 @@ -571,41 +509,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for exporting to a Pub/Sub topic.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig.PubSubConfig} */ - 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.cloud.pubsublite.v1.ExportConfig.PubSubConfig) com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -615,14 +551,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance(); } @@ -637,17 +572,13 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig buildPartial() { - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result = - new com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result = new com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.topic_ = topic_; @@ -658,41 +589,38 @@ private void buildPartial0( 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig)other); } else { super.mergeFrom(other); return this; @@ -700,9 +628,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig other) { - if (other - == com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -734,19 +660,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -756,13 +680,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object topic_ = ""; /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -770,13 +691,13 @@ public Builder mergeFrom(
        * 
* * string topic = 1; - * * @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; @@ -785,8 +706,6 @@ public java.lang.String getTopic() { } } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -794,14 +713,15 @@ public java.lang.String getTopic() {
        * 
* * string topic = 1; - * * @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 { @@ -809,8 +729,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -818,22 +736,18 @@ public com.google.protobuf.ByteString getTopicBytes() {
        * 
* * string topic = 1; - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -841,7 +755,6 @@ public Builder setTopic(java.lang.String value) {
        * 
* * string topic = 1; - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -851,8 +764,6 @@ public Builder clearTopic() { return this; } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -860,21 +771,18 @@ public Builder clearTopic() {
        * 
* * string topic = 1; - * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -887,13 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) - private static final com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig(); } @@ -902,28 +809,27 @@ public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSubConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSubConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,19 +844,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBSUB_CONFIG(3), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -966,117 +870,86 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 3: - return PUBSUB_CONFIG; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 3: return PUBSUB_CONFIG; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int DESIRED_STATE_FIELD_NUMBER = 1; private int desiredState_ = 0; /** - * - * *
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The enum numeric value on the wire for desiredState. */ - @java.lang.Override - public int getDesiredStateValue() { + @java.lang.Override public int getDesiredStateValue() { return desiredState_; } /** - * - * *
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The desiredState. */ - @java.lang.Override - public com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = - com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); - return result == null - ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState() { + com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); + return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; } public static final int CURRENT_STATE_FIELD_NUMBER = 6; private int currentState_ = 0; /** - * - * *
-   * Output only. The current state of the export, which may be different to the desired
-   * state due to errors.
+   * Output only. The current state of the export, which may be different to the
+   * desired state due to errors. This field is output only.
    * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for currentState. */ - @java.lang.Override - public int getCurrentStateValue() { + @java.lang.Override public int getCurrentStateValue() { return currentState_; } /** - * - * *
-   * Output only. The current state of the export, which may be different to the desired
-   * state due to errors.
+   * Output only. The current state of the export, which may be different to the
+   * desired state due to errors. This field is output only.
    * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentState. */ - @java.lang.Override - public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = - com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); - return result == null - ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() { + com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); + return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; } public static final int DEAD_LETTER_TOPIC_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object deadLetterTopic_ = ""; /** - * - * *
-   * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not
-   * be exported to the destination. For example, the message can not be
-   * published to the Pub/Sub service because it does not satisfy the
+   * Optional. The name of an optional Pub/Sub Lite topic to publish messages
+   * that can not be exported to the destination. For example, the message can
+   * not be published to the Pub/Sub service because it does not satisfy the
    * constraints documented at https://cloud.google.com/pubsub/docs/publisher.
    * Structured like:
    * projects/{project_number}/locations/{location}/topics/{topic_id}.
@@ -1084,10 +957,7 @@ public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() {
    * may be changed or removed.
    * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The deadLetterTopic. */ @java.lang.Override @@ -1096,19 +966,18 @@ public java.lang.String getDeadLetterTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deadLetterTopic_ = s; return s; } } /** - * - * *
-   * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not
-   * be exported to the destination. For example, the message can not be
-   * published to the Pub/Sub service because it does not satisfy the
+   * Optional. The name of an optional Pub/Sub Lite topic to publish messages
+   * that can not be exported to the destination. For example, the message can
+   * not be published to the Pub/Sub service because it does not satisfy the
    * constraints documented at https://cloud.google.com/pubsub/docs/publisher.
    * Structured like:
    * projects/{project_number}/locations/{location}/topics/{topic_id}.
@@ -1116,18 +985,17 @@ public java.lang.String getDeadLetterTopic() {
    * may be changed or removed.
    * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @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 { @@ -1137,15 +1005,12 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { public static final int PUBSUB_CONFIG_FIELD_NUMBER = 3; /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return Whether the pubsubConfig field is set. */ @java.lang.Override @@ -1153,27 +1018,22 @@ public boolean hasPubsubConfig() { return destinationCase_ == 3; } /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return The pubsubConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConfig() { if (destinationCase_ == 3) { - return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_; + return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_; } return com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance(); } /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
@@ -1182,16 +1042,14 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf
    * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
    */
   @java.lang.Override
-  public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder
-      getPubsubConfigOrBuilder() {
+  public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getPubsubConfigOrBuilder() {
     if (destinationCase_ == 3) {
-      return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_;
+       return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_;
     }
     return com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1203,20 +1061,18 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (desiredState_
-        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (desiredState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, desiredState_);
     }
     if (destinationCase_ == 3) {
-      output.writeMessage(
-          3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
+      output.writeMessage(3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deadLetterTopic_);
     }
-    if (currentState_
-        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+    if (currentState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(6, currentState_);
     }
     getUnknownFields().writeTo(output);
@@ -1228,21 +1084,20 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (desiredState_
-        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, desiredState_);
+    if (desiredState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, desiredState_);
     }
     if (destinationCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deadLetterTopic_);
     }
-    if (currentState_
-        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, currentState_);
+    if (currentState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(6, currentState_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1252,21 +1107,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.cloud.pubsublite.proto.ExportConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ExportConfig other =
-        (com.google.cloud.pubsublite.proto.ExportConfig) obj;
+    com.google.cloud.pubsublite.proto.ExportConfig other = (com.google.cloud.pubsublite.proto.ExportConfig) obj;
 
     if (desiredState_ != other.desiredState_) return false;
     if (currentState_ != other.currentState_) return false;
-    if (!getDeadLetterTopic().equals(other.getDeadLetterTopic())) return false;
+    if (!getDeadLetterTopic()
+        .equals(other.getDeadLetterTopic())) return false;
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 3:
-        if (!getPubsubConfig().equals(other.getPubsubConfig())) return false;
+        if (!getPubsubConfig()
+            .equals(other.getPubsubConfig())) return false;
         break;
       case 0:
       default:
@@ -1301,104 +1157,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ExportConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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 Pub/Sub Lite subscription that writes messages to a
    * destination. User subscriber clients must not connect to this subscription.
@@ -1406,32 +1255,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig}
    */
-  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.cloud.pubsublite.v1.ExportConfig)
       com.google.cloud.pubsublite.proto.ExportConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.ExportConfig.class,
-              com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
+              com.google.cloud.pubsublite.proto.ExportConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.ExportConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1448,9 +1298,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1469,11 +1319,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.ExportConfig buildPartial() {
-      com.google.cloud.pubsublite.proto.ExportConfig result =
-          new com.google.cloud.pubsublite.proto.ExportConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.ExportConfig result = new com.google.cloud.pubsublite.proto.ExportConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1495,7 +1342,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ExportConfig result
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.ExportConfig result) {
       result.destinationCase_ = destinationCase_;
       result.destination_ = this.destination_;
-      if (destinationCase_ == 3 && pubsubConfigBuilder_ != null) {
+      if (destinationCase_ == 3 &&
+          pubsubConfigBuilder_ != null) {
         result.destination_ = pubsubConfigBuilder_.build();
       }
     }
@@ -1504,39 +1352,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.ExportConfig r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.ExportConfig) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1557,15 +1404,13 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ExportConfig other) {
         onChanged();
       }
       switch (other.getDestinationCase()) {
-        case PUBSUB_CONFIG:
-          {
-            mergePubsubConfig(other.getPubsubConfig());
-            break;
-          }
-        case DESTINATION_NOT_SET:
-          {
-            break;
-          }
+        case PUBSUB_CONFIG: {
+          mergePubsubConfig(other.getPubsubConfig());
+          break;
+        }
+        case DESTINATION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1593,37 +1438,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                desiredState_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 26:
-              {
-                input.readMessage(getPubsubConfigFieldBuilder().getBuilder(), extensionRegistry);
-                destinationCase_ = 3;
-                break;
-              } // case 26
-            case 42:
-              {
-                deadLetterTopic_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 42
-            case 48:
-              {
-                currentState_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 48
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              desiredState_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 26: {
+              input.readMessage(
+                  getPubsubConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              destinationCase_ = 3;
+              break;
+            } // case 26
+            case 42: {
+              deadLetterTopic_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 42
+            case 48: {
+              currentState_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 48
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1633,12 +1475,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-
-    public DestinationCase getDestinationCase() {
-      return DestinationCase.forNumber(destinationCase_);
+    public DestinationCase
+        getDestinationCase() {
+      return DestinationCase.forNumber(
+          destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -1652,31 +1494,24 @@ public Builder clearDestination() {
 
     private int desiredState_ = 0;
     /**
-     *
-     *
      * 
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The enum numeric value on the wire for desiredState. */ - @java.lang.Override - public int getDesiredStateValue() { + @java.lang.Override public int getDesiredStateValue() { return desiredState_; } /** - * - * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @param value The enum numeric value on the wire for desiredState to set. * @return This builder for chaining. */ @@ -1687,35 +1522,26 @@ public Builder setDesiredStateValue(int value) { return this; } /** - * - * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The desiredState. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = - com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); - return result == null - ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); + return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; } /** - * - * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @param value The desiredState to set. * @return This builder for chaining. */ @@ -1729,15 +1555,12 @@ public Builder setDesiredState(com.google.cloud.pubsublite.proto.ExportConfig.St return this; } /** - * - * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return This builder for chaining. */ public Builder clearDesiredState() { @@ -1749,35 +1572,24 @@ public Builder clearDesiredState() { private int currentState_ = 0; /** - * - * *
-     * Output only. The current state of the export, which may be different to the desired
-     * state due to errors.
+     * Output only. The current state of the export, which may be different to the
+     * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for currentState. */ - @java.lang.Override - public int getCurrentStateValue() { + @java.lang.Override public int getCurrentStateValue() { return currentState_; } /** - * - * *
-     * Output only. The current state of the export, which may be different to the desired
-     * state due to errors.
+     * Output only. The current state of the export, which may be different to the
+     * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for currentState to set. * @return This builder for chaining. */ @@ -1788,39 +1600,26 @@ public Builder setCurrentStateValue(int value) { return this; } /** - * - * *
-     * Output only. The current state of the export, which may be different to the desired
-     * state due to errors.
+     * Output only. The current state of the export, which may be different to the
+     * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentState. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = - com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); - return result == null - ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); + return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; } /** - * - * *
-     * Output only. The current state of the export, which may be different to the desired
-     * state due to errors.
+     * Output only. The current state of the export, which may be different to the
+     * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The currentState to set. * @return This builder for chaining. */ @@ -1834,17 +1633,12 @@ public Builder setCurrentState(com.google.cloud.pubsublite.proto.ExportConfig.St return this; } /** - * - * *
-     * Output only. The current state of the export, which may be different to the desired
-     * state due to errors.
+     * Output only. The current state of the export, which may be different to the
+     * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCurrentState() { @@ -1856,12 +1650,10 @@ public Builder clearCurrentState() { private java.lang.Object deadLetterTopic_ = ""; /** - * - * *
-     * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not
-     * be exported to the destination. For example, the message can not be
-     * published to the Pub/Sub service because it does not satisfy the
+     * Optional. The name of an optional Pub/Sub Lite topic to publish messages
+     * that can not be exported to the destination. For example, the message can
+     * not be published to the Pub/Sub service because it does not satisfy the
      * constraints documented at https://cloud.google.com/pubsub/docs/publisher.
      * Structured like:
      * projects/{project_number}/locations/{location}/topics/{topic_id}.
@@ -1869,16 +1661,14 @@ public Builder clearCurrentState() {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @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; @@ -1887,12 +1677,10 @@ public java.lang.String getDeadLetterTopic() { } } /** - * - * *
-     * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not
-     * be exported to the destination. For example, the message can not be
-     * published to the Pub/Sub service because it does not satisfy the
+     * Optional. The name of an optional Pub/Sub Lite topic to publish messages
+     * that can not be exported to the destination. For example, the message can
+     * not be published to the Pub/Sub service because it does not satisfy the
      * constraints documented at https://cloud.google.com/pubsub/docs/publisher.
      * Structured like:
      * projects/{project_number}/locations/{location}/topics/{topic_id}.
@@ -1900,17 +1688,16 @@ public java.lang.String getDeadLetterTopic() {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @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 { @@ -1918,12 +1705,10 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { } } /** - * - * *
-     * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not
-     * be exported to the destination. For example, the message can not be
-     * published to the Pub/Sub service because it does not satisfy the
+     * Optional. The name of an optional Pub/Sub Lite topic to publish messages
+     * that can not be exported to the destination. For example, the message can
+     * not be published to the Pub/Sub service because it does not satisfy the
      * constraints documented at https://cloud.google.com/pubsub/docs/publisher.
      * Structured like:
      * projects/{project_number}/locations/{location}/topics/{topic_id}.
@@ -1931,29 +1716,23 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeadLetterTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } deadLetterTopic_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not
-     * be exported to the destination. For example, the message can not be
-     * published to the Pub/Sub service because it does not satisfy the
+     * Optional. The name of an optional Pub/Sub Lite topic to publish messages
+     * that can not be exported to the destination. For example, the message can
+     * not be published to the Pub/Sub service because it does not satisfy the
      * constraints documented at https://cloud.google.com/pubsub/docs/publisher.
      * Structured like:
      * projects/{project_number}/locations/{location}/topics/{topic_id}.
@@ -1961,10 +1740,7 @@ public Builder setDeadLetterTopic(java.lang.String value) {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { @@ -1974,12 +1750,10 @@ public Builder clearDeadLetterTopic() { return this; } /** - * - * *
-     * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not
-     * be exported to the destination. For example, the message can not be
-     * published to the Pub/Sub service because it does not satisfy the
+     * Optional. The name of an optional Pub/Sub Lite topic to publish messages
+     * that can not be exported to the destination. For example, the message can
+     * not be published to the Pub/Sub service because it does not satisfy the
      * constraints documented at https://cloud.google.com/pubsub/docs/publisher.
      * Structured like:
      * projects/{project_number}/locations/{location}/topics/{topic_id}.
@@ -1987,17 +1761,13 @@ public Builder clearDeadLetterTopic() {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeadLetterTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deadLetterTopic_ = value; bitField0_ |= 0x00000004; @@ -2006,20 +1776,14 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> - pubsubConfigBuilder_; + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> pubsubConfigBuilder_; /** - * - * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return Whether the pubsubConfig field is set. */ @java.lang.Override @@ -2027,15 +1791,12 @@ public boolean hasPubsubConfig() { return destinationCase_ == 3; } /** - * - * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return The pubsubConfig. */ @java.lang.Override @@ -2053,8 +1814,6 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf } } /** - * - * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2062,8 +1821,7 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public Builder setPubsubConfig(
-        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
+    public Builder setPubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
       if (pubsubConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2077,8 +1835,6 @@ public Builder setPubsubConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2098,8 +1854,6 @@ public Builder setPubsubConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2107,18 +1861,12 @@ public Builder setPubsubConfig(
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public Builder mergePubsubConfig(
-        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
+    public Builder mergePubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
       if (pubsubConfigBuilder_ == null) {
-        if (destinationCase_ == 3
-            && destination_
-                != com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig
-                    .getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder(
-                      (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 3 &&
+            destination_ != com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) {
+          destination_ = com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -2134,8 +1882,6 @@ public Builder mergePubsubConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2160,8 +1906,6 @@ public Builder clearPubsubConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2169,13 +1913,10 @@ public Builder clearPubsubConfig() {
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder
-        getPubsubConfigBuilder() {
+    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder getPubsubConfigBuilder() {
       return getPubsubConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2184,8 +1925,7 @@ public Builder clearPubsubConfig() {
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder
-        getPubsubConfigOrBuilder() {
+    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getPubsubConfigOrBuilder() {
       if ((destinationCase_ == 3) && (pubsubConfigBuilder_ != null)) {
         return pubsubConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -2196,8 +1936,6 @@ public Builder clearPubsubConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2206,20 +1944,14 @@ public Builder clearPubsubConfig() {
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig,
-            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder,
-            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>
+        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> 
         getPubsubConfigFieldBuilder() {
       if (pubsubConfigBuilder_ == null) {
         if (!(destinationCase_ == 3)) {
-          destination_ =
-              com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
+          destination_ = com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
         }
-        pubsubConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig,
-                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder,
-                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>(
+        pubsubConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>(
                 (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_,
                 getParentForChildren(),
                 isClean());
@@ -2229,9 +1961,9 @@ public Builder clearPubsubConfig() {
       onChanged();
       return pubsubConfigBuilder_;
     }
-
     @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);
     }
 
@@ -2241,12 +1973,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ExportConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ExportConfig)
   private static final com.google.cloud.pubsublite.proto.ExportConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ExportConfig();
   }
@@ -2255,27 +1987,27 @@ public static com.google.cloud.pubsublite.proto.ExportConfig getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ExportConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ExportConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2290,4 +2022,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.ExportConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
similarity index 65%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
index 38fa934a1..3baaa09e1 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
@@ -1,93 +1,59 @@
-/*
- * 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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface ExportConfigOrBuilder
-    extends
+public interface ExportConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ExportConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The enum numeric value on the wire for desiredState. */ int getDesiredStateValue(); /** - * - * *
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The desiredState. */ com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState(); /** - * - * *
-   * Output only. The current state of the export, which may be different to the desired
-   * state due to errors.
+   * Output only. The current state of the export, which may be different to the
+   * desired state due to errors. This field is output only.
    * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for currentState. */ int getCurrentStateValue(); /** - * - * *
-   * Output only. The current state of the export, which may be different to the desired
-   * state due to errors.
+   * Output only. The current state of the export, which may be different to the
+   * desired state due to errors. This field is output only.
    * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentState. */ com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState(); /** - * - * *
-   * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not
-   * be exported to the destination. For example, the message can not be
-   * published to the Pub/Sub service because it does not satisfy the
+   * Optional. The name of an optional Pub/Sub Lite topic to publish messages
+   * that can not be exported to the destination. For example, the message can
+   * not be published to the Pub/Sub service because it does not satisfy the
    * constraints documented at https://cloud.google.com/pubsub/docs/publisher.
    * Structured like:
    * projects/{project_number}/locations/{location}/topics/{topic_id}.
@@ -95,20 +61,15 @@ public interface ExportConfigOrBuilder
    * may be changed or removed.
    * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); /** - * - * *
-   * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not
-   * be exported to the destination. For example, the message can not be
-   * published to the Pub/Sub service because it does not satisfy the
+   * Optional. The name of an optional Pub/Sub Lite topic to publish messages
+   * that can not be exported to the destination. For example, the message can
+   * not be published to the Pub/Sub service because it does not satisfy the
    * constraints documented at https://cloud.google.com/pubsub/docs/publisher.
    * Structured like:
    * projects/{project_number}/locations/{location}/topics/{topic_id}.
@@ -116,43 +77,33 @@ public interface ExportConfigOrBuilder
    * may be changed or removed.
    * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for deadLetterTopic. */ - com.google.protobuf.ByteString getDeadLetterTopicBytes(); + com.google.protobuf.ByteString + getDeadLetterTopicBytes(); /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return Whether the pubsubConfig field is set. */ boolean hasPubsubConfig(); /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return The pubsubConfig. */ com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConfig(); /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
similarity index 66%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
index 3fbc55ecb..fea8e5ea0 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Request to grant tokens to the server, requesting delivery of messages when
  * they become available.
@@ -28,55 +11,51 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.FlowControlRequest}
  */
-public final class FlowControlRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FlowControlRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.FlowControlRequest)
     FlowControlRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FlowControlRequest.newBuilder() to construct.
   private FlowControlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private FlowControlRequest() {}
+  private FlowControlRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FlowControlRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.FlowControlRequest.class,
-            com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.FlowControlRequest.class, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
   }
 
   public static final int ALLOWED_MESSAGES_FIELD_NUMBER = 1;
   private long allowedMessages_ = 0L;
   /**
-   *
-   *
    * 
    * The number of message tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_messages = 1; - * * @return The allowedMessages. */ @java.lang.Override @@ -87,14 +66,11 @@ public long getAllowedMessages() { public static final int ALLOWED_BYTES_FIELD_NUMBER = 2; private long allowedBytes_ = 0L; /** - * - * *
    * The number of byte tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_bytes = 2; - * * @return The allowedBytes. */ @java.lang.Override @@ -103,7 +79,6 @@ public long getAllowedBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +90,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 (allowedMessages_ != 0L) { output.writeInt64(1, allowedMessages_); } @@ -132,10 +108,12 @@ public int getSerializedSize() { size = 0; if (allowedMessages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, allowedMessages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, allowedMessages_); } if (allowedBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, allowedBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, allowedBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -145,16 +123,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.cloud.pubsublite.proto.FlowControlRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.FlowControlRequest other = - (com.google.cloud.pubsublite.proto.FlowControlRequest) obj; + com.google.cloud.pubsublite.proto.FlowControlRequest other = (com.google.cloud.pubsublite.proto.FlowControlRequest) obj; - if (getAllowedMessages() != other.getAllowedMessages()) return false; - if (getAllowedBytes() != other.getAllowedBytes()) return false; + if (getAllowedMessages() + != other.getAllowedMessages()) return false; + if (getAllowedBytes() + != other.getAllowedBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -167,112 +146,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOWED_MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAllowedMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAllowedMessages()); hash = (37 * hash) + ALLOWED_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAllowedBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAllowedBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.FlowControlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest 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 to grant tokens to the server, requesting delivery of messages when
    * they become available.
@@ -280,32 +254,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.FlowControlRequest}
    */
-  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.cloud.pubsublite.v1.FlowControlRequest)
       com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.FlowControlRequest.class,
-              com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.FlowControlRequest.class, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.FlowControlRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -316,9 +291,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
     }
 
     @java.lang.Override
@@ -337,11 +312,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.FlowControlRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.FlowControlRequest result =
-          new com.google.cloud.pubsublite.proto.FlowControlRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.FlowControlRequest result = new com.google.cloud.pubsublite.proto.FlowControlRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -360,39 +332,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.FlowControlRequest
     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.cloud.pubsublite.proto.FlowControlRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.FlowControlRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.FlowControlRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -400,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.FlowControlRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance()) return this;
       if (other.getAllowedMessages() != 0L) {
         setAllowedMessages(other.getAllowedMessages());
       }
@@ -434,25 +404,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                allowedMessages_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                allowedBytes_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              allowedMessages_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              allowedBytes_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -462,19 +429,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long allowedMessages_;
+    private long allowedMessages_ ;
     /**
-     *
-     *
      * 
      * The number of message tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_messages = 1; - * * @return The allowedMessages. */ @java.lang.Override @@ -482,33 +445,27 @@ public long getAllowedMessages() { return allowedMessages_; } /** - * - * *
      * The number of message tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_messages = 1; - * * @param value The allowedMessages to set. * @return This builder for chaining. */ public Builder setAllowedMessages(long value) { - + allowedMessages_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The number of message tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_messages = 1; - * * @return This builder for chaining. */ public Builder clearAllowedMessages() { @@ -518,16 +475,13 @@ public Builder clearAllowedMessages() { return this; } - private long allowedBytes_; + private long allowedBytes_ ; /** - * - * *
      * The number of byte tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_bytes = 2; - * * @return The allowedBytes. */ @java.lang.Override @@ -535,33 +489,27 @@ public long getAllowedBytes() { return allowedBytes_; } /** - * - * *
      * The number of byte tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_bytes = 2; - * * @param value The allowedBytes to set. * @return This builder for chaining. */ public Builder setAllowedBytes(long value) { - + allowedBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The number of byte tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_bytes = 2; - * * @return This builder for chaining. */ public Builder clearAllowedBytes() { @@ -570,9 +518,9 @@ public Builder clearAllowedBytes() { 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); } @@ -582,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.FlowControlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.FlowControlRequest) private static final com.google.cloud.pubsublite.proto.FlowControlRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.FlowControlRequest(); } @@ -596,27 +544,27 @@ public static com.google.cloud.pubsublite.proto.FlowControlRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlowControlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowControlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.FlowControlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java index d0d048716..915f21568 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java @@ -1,50 +1,28 @@ -/* - * 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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface FlowControlRequestOrBuilder - extends +public interface FlowControlRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.FlowControlRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The number of message tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_messages = 1; - * * @return The allowedMessages. */ long getAllowedMessages(); /** - * - * *
    * The number of byte tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_bytes = 2; - * * @return The allowedBytes. */ long getAllowedBytes(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java index e1e5211f5..cf60f4dbb 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java @@ -1,89 +1,64 @@ -/* - * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for GetReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetReservationRequest} */ -public final class GetReservationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.GetReservationRequest) GetReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetReservationRequest.newBuilder() to construct. private GetReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetReservationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetReservationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetReservationRequest.class, - com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetReservationRequest.class, com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the reservation whose configuration to return.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,33 +67,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the reservation whose configuration to return.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,7 +100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +111,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_); } @@ -163,15 +136,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.cloud.pubsublite.proto.GetReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetReservationRequest other = - (com.google.cloud.pubsublite.proto.GetReservationRequest) obj; + com.google.cloud.pubsublite.proto.GetReservationRequest other = (com.google.cloud.pubsublite.proto.GetReservationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,136 +164,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.GetReservationRequest 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 GetReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetReservationRequest} */ - 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.cloud.pubsublite.v1.GetReservationRequest) com.google.cloud.pubsublite.proto.GetReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetReservationRequest.class, - com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetReservationRequest.class, com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetReservationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,9 +296,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; } @java.lang.Override @@ -351,11 +317,8 @@ public com.google.cloud.pubsublite.proto.GetReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetReservationRequest result = - new com.google.cloud.pubsublite.proto.GetReservationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.GetReservationRequest result = new com.google.cloud.pubsublite.proto.GetReservationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -371,39 +334,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetReservationReque 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.cloud.pubsublite.proto.GetReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetReservationRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetReservationRequest)other); } else { super.mergeFrom(other); return this; @@ -411,8 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetReservationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.GetReservationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -444,19 +405,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,29 +425,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -497,25 +451,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -523,43 +474,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -569,34 +509,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -606,12 +540,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetReservationRequest) private static final com.google.cloud.pubsublite.proto.GetReservationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetReservationRequest(); } @@ -620,27 +554,27 @@ public static com.google.cloud.pubsublite.proto.GetReservationRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.GetReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java new file mode 100644 index 000000000..c98702f65 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface GetReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the reservation whose configuration to return.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the reservation whose configuration to return.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java index 8e10e09ef..a4a22ba0a 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java @@ -1,87 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for GetSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; } @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the subscription whose configuration to return.
    * 
* - * - * 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 @@ -90,31 +65,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; } } /** - * - * *
    * Required. The name of the subscription whose configuration to return.
    * 
* - * - * 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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,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_); } @@ -159,15 +132,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.cloud.pubsublite.proto.GetSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetSubscriptionRequest other = - (com.google.cloud.pubsublite.proto.GetSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.GetSubscriptionRequest other = (com.google.cloud.pubsublite.proto.GetSubscriptionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.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 GetSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.GetSubscriptionRequest) com.google.cloud.pubsublite.proto.GetSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.pubsublite.proto.GetSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.GetSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.GetSubscriptionRequest result = new com.google.cloud.pubsublite.proto.GetSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetSubscriptionRequ 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.cloud.pubsublite.proto.GetSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.GetSubscriptionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * 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; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * 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 { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * 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() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.GetSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetSubscriptionRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.GetSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..ee73972c2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface GetSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the subscription whose configuration to return.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the subscription whose configuration to return.
+   * 
+ * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java index a162767c8..c5d9498ae 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java @@ -1,87 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for GetTopicPartitions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetTopicPartitionsRequest} */ -public final class GetTopicPartitionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetTopicPartitionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) GetTopicPartitionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetTopicPartitionsRequest.newBuilder() to construct. private GetTopicPartitionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetTopicPartitionsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetTopicPartitionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The topic whose partition information to return.
    * 
* - * - * 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 @@ -90,31 +65,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; } } /** - * - * *
    * Required. The topic whose partition information to return.
    * 
* - * - * 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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,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_); } @@ -159,15 +132,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.cloud.pubsublite.proto.GetTopicPartitionsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest other = - (com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) obj; + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest other = (com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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 GetTopicPartitions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetTopicPartitionsRequest} */ - 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.cloud.pubsublite.v1.GetTopicPartitionsRequest) com.google.cloud.pubsublite.proto.GetTopicPartitionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest result = - new com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest result = new com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetTopicPartitionsR 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.cloud.pubsublite.proto.GetTopicPartitionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * 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; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * 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 { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * 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() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) private static final com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTopicPartitionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTopicPartitionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java new file mode 100644 index 000000000..89d39e040 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface GetTopicPartitionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The topic whose partition information to return.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The topic whose partition information to return.
+   * 
+ * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java index 2035b0d22..382f3563d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java @@ -1,87 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for GetTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; } @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicRequest.class, - com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicRequest.class, com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the topic whose configuration to return.
    * 
* - * - * 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 @@ -90,31 +65,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; } } /** - * - * *
    * Required. The name of the topic whose configuration to return.
    * 
* - * - * 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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,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_); } @@ -159,15 +132,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.cloud.pubsublite.proto.GetTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetTopicRequest other = - (com.google.cloud.pubsublite.proto.GetTopicRequest) obj; + com.google.cloud.pubsublite.proto.GetTopicRequest other = (com.google.cloud.pubsublite.proto.GetTopicRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +160,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetTopicRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetTopicRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 GetTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.GetTopicRequest) com.google.cloud.pubsublite.proto.GetTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicRequest.class, - com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicRequest.class, com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetTopicRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; } @java.lang.Override @@ -346,11 +313,8 @@ public com.google.cloud.pubsublite.proto.GetTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetTopicRequest result = - new com.google.cloud.pubsublite.proto.GetTopicRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.GetTopicRequest result = new com.google.cloud.pubsublite.proto.GetTopicRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +330,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetTopicRequest res 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.cloud.pubsublite.proto.GetTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetTopicRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.GetTopicRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * 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; @@ -490,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * 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 { @@ -514,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * 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() { @@ -556,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetTopicRequest) private static final com.google.cloud.pubsublite.proto.GetTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetTopicRequest(); } @@ -605,27 +540,27 @@ public static com.google.cloud.pubsublite.proto.GetTopicRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.GetTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java new file mode 100644 index 000000000..3bb977418 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface GetTopicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the topic whose configuration to return.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the topic whose configuration to return.
+   * 
+ * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java index 12a079f84..f0ca438f0 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * The first streaming request that must be sent on a newly-opened stream. The
  * client must wait for the response before sending subsequent requests on the
@@ -29,59 +12,53 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorRequest}
  */
-public final class InitialCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InitialCommitCursorRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialCommitCursorRequest)
     InitialCommitCursorRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InitialCommitCursorRequest.newBuilder() to construct.
   private InitialCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private InitialCommitCursorRequest() {
     subscription_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InitialCommitCursorRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CursorProto
-        .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CursorProto
-        .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class,
-            com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
-   *
-   *
    * 
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; - * * @return The subscription. */ @java.lang.Override @@ -90,29 +67,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; } } /** - * - * *
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; - * * @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 { @@ -123,15 +100,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * The partition for which to manage committed cursors. Partitions are zero
    * indexed, so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -140,7 +114,6 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +125,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_); } @@ -172,7 +146,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -182,16 +157,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.cloud.pubsublite.proto.InitialCommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest other = - (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest other = (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (getPartition() + != other.getPartition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -206,111 +182,104 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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; } /** - * - * *
    * The first streaming request that must be sent on a newly-opened stream. The
    * client must wait for the response before sending subsequent requests on the
@@ -319,32 +288,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorRequest}
    */
-  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.cloud.pubsublite.v1.InitialCommitCursorRequest)
       com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class,
-              com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -355,14 +325,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getDefaultInstanceForType() {
       return com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance();
     }
 
@@ -377,17 +346,13 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result =
-          new com.google.cloud.pubsublite.proto.InitialCommitCursorRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result = new com.google.cloud.pubsublite.proto.InitialCommitCursorRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result) {
+    private void buildPartial0(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.subscription_ = subscription_;
@@ -401,39 +366,38 @@ private void buildPartial0(
     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.cloud.pubsublite.proto.InitialCommitCursorRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -441,9 +405,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest other) {
-      if (other
-          == com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance()) return this;
       if (!other.getSubscription().isEmpty()) {
         subscription_ = other.subscription_;
         bitField0_ |= 0x00000001;
@@ -478,25 +440,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                subscription_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                partition_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              subscription_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              partition_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -506,25 +465,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
-     *
-     *
      * 
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -533,21 +489,20 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString getSubscriptionBytes() { + public com.google.protobuf.ByteString + getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscription_ = b; return b; } else { @@ -555,35 +510,28 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -593,21 +541,17 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -615,17 +559,14 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * The partition for which to manage committed cursors. Partitions are zero
      * indexed, so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -633,35 +574,29 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition for which to manage committed cursors. Partitions are zero
      * indexed, so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The partition for which to manage committed cursors. Partitions are zero
      * indexed, so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -670,9 +605,9 @@ public Builder clearPartition() { 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); } @@ -682,13 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialCommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialCommitCursorRequest) - private static final com.google.cloud.pubsublite.proto.InitialCommitCursorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.InitialCommitCursorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialCommitCursorRequest(); } @@ -697,27 +631,27 @@ public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialCommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialCommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,4 +666,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java index 4003387aa..13f989e73 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java @@ -1,63 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface InitialCommitCursorRequestOrBuilder - extends +public interface InitialCommitCursorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialCommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; - * * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * The partition for which to manage committed cursors. Partitions are zero
    * indexed, so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ long getPartition(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java similarity index 60% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java index 4e079b5a2..7b8004f7c 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java @@ -1,72 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to an InitialCommitCursorRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorResponse} */ -public final class InitialCommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitialCommitCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialCommitCursorResponse) InitialCommitCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitialCommitCursorResponse.newBuilder() to construct. private InitialCommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private InitialCommitCursorResponse() {} + private InitialCommitCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitialCommitCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +59,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 { getUnknownFields().writeTo(output); } @@ -96,13 +78,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.cloud.pubsublite.proto.InitialCommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse other = - (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse other = (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -121,136 +102,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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 to an InitialCommitCursorRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorResponse} */ - 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.cloud.pubsublite.v1.InitialCommitCursorResponse) com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -258,14 +232,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } @@ -280,8 +253,7 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse result = - new com.google.cloud.pubsublite.proto.InitialCommitCursorResponse(this); + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse result = new com.google.cloud.pubsublite.proto.InitialCommitCursorResponse(this); onBuilt(); return result; } @@ -290,39 +262,38 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse buildPartia 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.cloud.pubsublite.proto.InitialCommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorResponse)other); } else { super.mergeFrom(other); return this; @@ -330,9 +301,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialCommitCursorResponse other) { - if (other - == com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -359,13 +328,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -375,9 +343,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -387,13 +355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialCommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialCommitCursorResponse) - private static final com.google.cloud.pubsublite.proto.InitialCommitCursorResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.InitialCommitCursorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialCommitCursorResponse(); } @@ -402,27 +369,27 @@ public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialCommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialCommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -437,4 +404,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java new file mode 100644 index 000000000..5d47df1a2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +package com.google.cloud.pubsublite.proto; + +public interface InitialCommitCursorResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialCommitCursorResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java index 958e9f0a1..059d83966 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * The first request that must be sent on a newly-opened stream. The client must
  * wait for the response before sending subsequent requests on the stream.
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest}
  */
-public final class InitialPartitionAssignmentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InitialPartitionAssignmentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest)
     InitialPartitionAssignmentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InitialPartitionAssignmentRequest.newBuilder() to construct.
-  private InitialPartitionAssignmentRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private InitialPartitionAssignmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private InitialPartitionAssignmentRequest() {
     subscription_ = "";
     clientId_ = com.google.protobuf.ByteString.EMPTY;
@@ -46,37 +27,33 @@ private InitialPartitionAssignmentRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InitialPartitionAssignmentRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class,
-            com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
-   *
-   *
    * 
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -84,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string subscription = 1; - * * @return The subscription. */ @java.lang.Override @@ -93,15 +69,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; } } /** - * - * *
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -109,15 +84,16 @@ public java.lang.String getSubscription() {
    * 
* * string subscription = 1; - * * @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 { @@ -128,8 +104,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int CLIENT_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * An opaque, unique client identifier. This field must be exactly 16 bytes
    * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -141,7 +115,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 
* * bytes client_id = 2; - * * @return The clientId. */ @java.lang.Override @@ -150,7 +123,6 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -162,7 +134,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_); } @@ -182,7 +155,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (!clientId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, clientId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, clientId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,16 +166,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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other = - (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) obj; + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other = (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (!getClientId().equals(other.getClientId())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (!getClientId() + .equals(other.getClientId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,105 +198,96 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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; } /** - * - * *
    * The first request that must be sent on a newly-opened stream. The client must
    * wait for the response before sending subsequent requests on the stream.
@@ -329,33 +295,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest}
    */
-  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.cloud.pubsublite.v1.InitialPartitionAssignmentRequest)
       com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class,
-              com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -366,16 +332,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest
-          .getDefaultInstance();
+    public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstanceForType() {
+      return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -389,17 +353,13 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest build
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result =
-          new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result = new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result) {
+    private void buildPartial0(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.subscription_ = subscription_;
@@ -413,51 +373,46 @@ private void buildPartial0(
     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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) {
-        return mergeFrom(
-            (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other) {
-      if (other
-          == com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other) {
+      if (other == com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance()) return this;
       if (!other.getSubscription().isEmpty()) {
         subscription_ = other.subscription_;
         bitField0_ |= 0x00000001;
@@ -492,25 +447,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                subscription_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                clientId_ = input.readBytes();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              subscription_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              clientId_ = input.readBytes();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -520,13 +472,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
-     *
-     *
      * 
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -534,13 +483,13 @@ public Builder mergeFrom(
      * 
* * string subscription = 1; - * * @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; @@ -549,8 +498,6 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -558,14 +505,15 @@ public java.lang.String getSubscription() {
      * 
* * string subscription = 1; - * * @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 { @@ -573,8 +521,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -582,22 +528,18 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
      * 
* * string subscription = 1; - * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -605,7 +547,6 @@ public Builder setSubscription(java.lang.String value) {
      * 
* * string subscription = 1; - * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -615,8 +556,6 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -624,14 +563,12 @@ public Builder clearSubscription() {
      * 
* * string subscription = 1; - * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -641,8 +578,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -654,7 +589,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 2; - * * @return The clientId. */ @java.lang.Override @@ -662,8 +596,6 @@ public com.google.protobuf.ByteString getClientId() { return clientId_; } /** - * - * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -675,22 +607,17 @@ public com.google.protobuf.ByteString getClientId() {
      * 
* * bytes client_id = 2; - * * @param value The clientId to set. * @return This builder for chaining. */ public Builder setClientId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } clientId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -702,7 +629,6 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 2; - * * @return This builder for chaining. */ public Builder clearClientId() { @@ -711,9 +637,9 @@ public Builder clearClientId() { 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); } @@ -723,43 +649,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) - private static final com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPartitionAssignmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPartitionAssignmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -771,8 +695,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java index 54a8e32f9..fb5b9581a 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface InitialPartitionAssignmentRequestOrBuilder - extends +public interface InitialPartitionAssignmentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -33,13 +15,10 @@ public interface InitialPartitionAssignmentRequestOrBuilder
    * 
* * string subscription = 1; - * * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -47,14 +26,12 @@ public interface InitialPartitionAssignmentRequestOrBuilder
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * An opaque, unique client identifier. This field must be exactly 16 bytes
    * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -66,7 +43,6 @@ public interface InitialPartitionAssignmentRequestOrBuilder
    * 
* * bytes client_id = 2; - * * @return The clientId. */ com.google.protobuf.ByteString getClientId(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java similarity index 59% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java index 6282f81a8..78f9b4068 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java @@ -1,85 +1,63 @@ -/* - * 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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * The first request that must be sent on a newly-opened stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishRequest} */ -public final class InitialPublishRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitialPublishRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialPublishRequest) InitialPublishRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitialPublishRequest.newBuilder() to construct. private InitialPublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InitialPublishRequest() { topic_ = ""; + clientId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitialPublishRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishRequest.class, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishRequest.class, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; - * * @return The topic. */ @java.lang.Override @@ -88,29 +66,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 topic to which messages will be written.
    * 
* * string topic = 1; - * * @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 { @@ -121,8 +99,6 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * The partition within the topic to which messages will be written.
    * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -130,7 +106,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -138,8 +113,27 @@ public long getPartition() { return partition_; } - private byte memoizedIsInitialized = -1; + public static final int CLIENT_ID_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+   * Unique identifier for a publisher client. If set, enables publish
+   * idempotency within a publisher client session.
+   * The length of this field must be exactly 16 bytes long and should be
+   * populated with a 128 bit uuid, generated by standard uuid algorithms like
+   * uuid1 or uuid4. The same identifier should be reused following
+   * disconnections with retryable stream errors.
+   * 
+ * + * bytes client_id = 3; + * @return The clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientId() { + return clientId_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,13 +145,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(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } if (partition_ != 0L) { output.writeInt64(2, partition_); } + if (!clientId_.isEmpty()) { + output.writeBytes(3, clientId_); + } getUnknownFields().writeTo(output); } @@ -171,7 +169,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); + } + if (!clientId_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, clientId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,16 +184,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.cloud.pubsublite.proto.InitialPublishRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialPublishRequest other = - (com.google.cloud.pubsublite.proto.InitialPublishRequest) obj; + com.google.cloud.pubsublite.proto.InitialPublishRequest other = (com.google.cloud.pubsublite.proto.InitialPublishRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (getPartition() + != other.getPartition()) return false; + if (!getClientId() + .equals(other.getClientId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,156 +211,153 @@ public int hashCode() { hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialPublishRequest 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; } /** - * - * *
    * The first request that must be sent on a newly-opened stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishRequest} */ - 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.cloud.pubsublite.v1.InitialPublishRequest) com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishRequest.class, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishRequest.class, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialPublishRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; topic_ = ""; partition_ = 0L; + clientId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; } @java.lang.Override @@ -373,11 +376,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishRequest buildPartial() { - com.google.cloud.pubsublite.proto.InitialPublishRequest result = - new com.google.cloud.pubsublite.proto.InitialPublishRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.InitialPublishRequest result = new com.google.cloud.pubsublite.proto.InitialPublishRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -390,45 +390,47 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialPublishReque if (((from_bitField0_ & 0x00000002) != 0)) { result.partition_ = partition_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientId_ = clientId_; + } } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.cloud.pubsublite.proto.InitialPublishRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishRequest)other); } else { super.mergeFrom(other); return this; @@ -436,8 +438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPublishRequest other) { - if (other == com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -446,6 +447,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPublishRequest if (other.getPartition() != 0L) { setPartition(other.getPartition()); } + if (other.getClientId() != com.google.protobuf.ByteString.EMPTY) { + setClientId(other.getClientId()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -472,25 +476,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + clientId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,25 +506,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object topic_ = ""; /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @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; @@ -527,21 +530,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @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 { @@ -549,35 +551,28 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -587,21 +582,17 @@ public Builder clearTopic() { return this; } /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -609,10 +600,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * The partition within the topic to which messages will be written.
      * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -620,7 +609,6 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -628,8 +616,6 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition within the topic to which messages will be written.
      * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -637,20 +623,17 @@ public long getPartition() {
      * 
* * int64 partition = 2; - * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The partition within the topic to which messages will be written.
      * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -658,7 +641,6 @@ public Builder setPartition(long value) {
      * 
* * int64 partition = 2; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -668,8 +650,67 @@ public Builder clearPartition() { return this; } + private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Unique identifier for a publisher client. If set, enables publish
+     * idempotency within a publisher client session.
+     * The length of this field must be exactly 16 bytes long and should be
+     * populated with a 128 bit uuid, generated by standard uuid algorithms like
+     * uuid1 or uuid4. The same identifier should be reused following
+     * disconnections with retryable stream errors.
+     * 
+ * + * bytes client_id = 3; + * @return The clientId. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public com.google.protobuf.ByteString getClientId() { + return clientId_; + } + /** + *
+     * Unique identifier for a publisher client. If set, enables publish
+     * idempotency within a publisher client session.
+     * The length of this field must be exactly 16 bytes long and should be
+     * populated with a 128 bit uuid, generated by standard uuid algorithms like
+     * uuid1 or uuid4. The same identifier should be reused following
+     * disconnections with retryable stream errors.
+     * 
+ * + * bytes client_id = 3; + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + clientId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Unique identifier for a publisher client. If set, enables publish
+     * idempotency within a publisher client session.
+     * The length of this field must be exactly 16 bytes long and should be
+     * populated with a 128 bit uuid, generated by standard uuid algorithms like
+     * uuid1 or uuid4. The same identifier should be reused following
+     * disconnections with retryable stream errors.
+     * 
+ * + * bytes client_id = 3; + * @return This builder for chaining. + */ + public Builder clearClientId() { + bitField0_ = (bitField0_ & ~0x00000004); + clientId_ = getDefaultInstance().getClientId(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -679,12 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPublishRequest) private static final com.google.cloud.pubsublite.proto.InitialPublishRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPublishRequest(); } @@ -693,27 +734,27 @@ public static com.google.cloud.pubsublite.proto.InitialPublishRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,4 +769,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialPublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java index 7ec0b629f..7a122affa 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java @@ -1,56 +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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; -public interface InitialPublishRequestOrBuilder - extends +public interface InitialPublishRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPublishRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * The partition within the topic to which messages will be written.
    * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -58,8 +35,22 @@ public interface InitialPublishRequestOrBuilder
    * 
* * int64 partition = 2; - * * @return The partition. */ long getPartition(); + + /** + *
+   * Unique identifier for a publisher client. If set, enables publish
+   * idempotency within a publisher client session.
+   * The length of this field must be exactly 16 bytes long and should be
+   * populated with a 128 bit uuid, generated by standard uuid algorithms like
+   * uuid1 or uuid4. The same identifier should be reused following
+   * disconnections with retryable stream errors.
+   * 
+ * + * bytes client_id = 3; + * @return The clientId. + */ + com.google.protobuf.ByteString getClientId(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java index 6e8233d80..05b8ec724 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java @@ -1,72 +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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to an InitialPublishRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishResponse} */ -public final class InitialPublishResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitialPublishResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialPublishResponse) InitialPublishResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitialPublishResponse.newBuilder() to construct. private InitialPublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private InitialPublishResponse() {} + private InitialPublishResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitialPublishResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishResponse.class, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishResponse.class, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +59,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 { getUnknownFields().writeTo(output); } @@ -96,13 +78,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.cloud.pubsublite.proto.InitialPublishResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialPublishResponse other = - (com.google.cloud.pubsublite.proto.InitialPublishResponse) obj; + com.google.cloud.pubsublite.proto.InitialPublishResponse other = (com.google.cloud.pubsublite.proto.InitialPublishResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -121,136 +102,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialPublishResponse 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 to an InitialPublishRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishResponse} */ - 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.cloud.pubsublite.v1.InitialPublishResponse) com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishResponse.class, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishResponse.class, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialPublishResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -258,9 +232,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; } @java.lang.Override @@ -279,8 +253,7 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishResponse buildPartial() { - com.google.cloud.pubsublite.proto.InitialPublishResponse result = - new com.google.cloud.pubsublite.proto.InitialPublishResponse(this); + com.google.cloud.pubsublite.proto.InitialPublishResponse result = new com.google.cloud.pubsublite.proto.InitialPublishResponse(this); onBuilt(); return result; } @@ -289,39 +262,38 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishResponse)other); } else { super.mergeFrom(other); return this; @@ -329,8 +301,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPublishResponse other) { - if (other == com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -357,13 +328,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -373,9 +343,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -385,12 +355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPublishResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPublishResponse) private static final com.google.cloud.pubsublite.proto.InitialPublishResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPublishResponse(); } @@ -399,27 +369,27 @@ public static com.google.cloud.pubsublite.proto.InitialPublishResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPublishResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -434,4 +404,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialPublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java new file mode 100644 index 000000000..5660753c1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/publisher.proto + +package com.google.cloud.pubsublite.proto; + +public interface InitialPublishResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPublishResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java index 9f9493362..92c4d7fe1 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * The first request that must be sent on a newly-opened stream. The client must
  * wait for the response before sending subsequent requests on the stream.
@@ -28,59 +11,53 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeRequest}
  */
-public final class InitialSubscribeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InitialSubscribeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialSubscribeRequest)
     InitialSubscribeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InitialSubscribeRequest.newBuilder() to construct.
   private InitialSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private InitialSubscribeRequest() {
     subscription_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InitialSubscribeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class,
-            com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
-   *
-   *
    * 
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; - * * @return The subscription. */ @java.lang.Override @@ -89,29 +66,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; } } /** - * - * *
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; - * * @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 { @@ -122,15 +99,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * The partition from which to receive messages. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -141,18 +115,13 @@ public long getPartition() { public static final int INITIAL_LOCATION_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.SeekRequest initialLocation_; /** - * - * *
-   * Optional. Initial target location within the message backlog. If not set, messages
-   * will be delivered from the commit cursor for the given subscription and
-   * partition.
+   * Optional. Initial target location within the message backlog. If not set,
+   * messages will be delivered from the commit cursor for the given
+   * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the initialLocation field is set. */ @java.lang.Override @@ -160,48 +129,34 @@ public boolean hasInitialLocation() { return initialLocation_ != null; } /** - * - * *
-   * Optional. Initial target location within the message backlog. If not set, messages
-   * will be delivered from the commit cursor for the given subscription and
-   * partition.
+   * Optional. Initial target location within the message backlog. If not set,
+   * messages will be delivered from the commit cursor for the given
+   * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The initialLocation. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest getInitialLocation() { - return initialLocation_ == null - ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() - : initialLocation_; + return initialLocation_ == null ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; } /** - * - * *
-   * Optional. Initial target location within the message backlog. If not set, messages
-   * will be delivered from the commit cursor for the given subscription and
-   * partition.
+   * Optional. Initial target location within the message backlog. If not set,
+   * messages will be delivered from the commit cursor for the given
+   * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getInitialLocationOrBuilder() { - return initialLocation_ == null - ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() - : initialLocation_; + return initialLocation_ == null ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +168,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_); } @@ -236,10 +192,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } if (initialLocation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInitialLocation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInitialLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,19 +207,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.cloud.pubsublite.proto.InitialSubscribeRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialSubscribeRequest other = - (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) obj; + com.google.cloud.pubsublite.proto.InitialSubscribeRequest other = (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (getPartition() + != other.getPartition()) return false; if (hasInitialLocation() != other.hasInitialLocation()) return false; if (hasInitialLocation()) { - if (!getInitialLocation().equals(other.getInitialLocation())) return false; + if (!getInitialLocation() + .equals(other.getInitialLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -277,7 +237,8 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); if (hasInitialLocation()) { hash = (37 * hash) + INITIAL_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getInitialLocation().hashCode(); @@ -288,104 +249,96 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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; } /** - * - * *
    * The first request that must be sent on a newly-opened stream. The client must
    * wait for the response before sending subsequent requests on the stream.
@@ -393,32 +346,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeRequest}
    */
-  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.cloud.pubsublite.v1.InitialSubscribeRequest)
       com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class,
-              com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.InitialSubscribeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -434,9 +388,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -455,11 +409,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.InitialSubscribeRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.InitialSubscribeRequest result =
-          new com.google.cloud.pubsublite.proto.InitialSubscribeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.InitialSubscribeRequest result = new com.google.cloud.pubsublite.proto.InitialSubscribeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -473,8 +424,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeReq
         result.partition_ = partition_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.initialLocation_ =
-            initialLocationBuilder_ == null ? initialLocation_ : initialLocationBuilder_.build();
+        result.initialLocation_ = initialLocationBuilder_ == null
+            ? initialLocation_
+            : initialLocationBuilder_.build();
       }
     }
 
@@ -482,39 +434,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeReq
     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.cloud.pubsublite.proto.InitialSubscribeRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -522,8 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialSubscribeRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance()) return this;
       if (!other.getSubscription().isEmpty()) {
         subscription_ = other.subscription_;
         bitField0_ |= 0x00000001;
@@ -561,31 +511,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                subscription_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                partition_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 34:
-              {
-                input.readMessage(getInitialLocationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              subscription_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              partition_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 34: {
+              input.readMessage(
+                  getInitialLocationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -595,25 +543,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
-     *
-     *
      * 
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @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; @@ -622,21 +567,20 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @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 { @@ -644,35 +588,28 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -682,21 +619,17 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -704,17 +637,14 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * The partition from which to receive messages. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -722,35 +652,29 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition from which to receive messages. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The partition from which to receive messages. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -762,64 +686,45 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.SeekRequest initialLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> - initialLocationBuilder_; + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> initialLocationBuilder_; /** - * - * *
-     * Optional. Initial target location within the message backlog. If not set, messages
-     * will be delivered from the commit cursor for the given subscription and
-     * partition.
+     * Optional. Initial target location within the message backlog. If not set,
+     * messages will be delivered from the commit cursor for the given
+     * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the initialLocation field is set. */ public boolean hasInitialLocation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
-     * Optional. Initial target location within the message backlog. If not set, messages
-     * will be delivered from the commit cursor for the given subscription and
-     * partition.
+     * Optional. Initial target location within the message backlog. If not set,
+     * messages will be delivered from the commit cursor for the given
+     * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The initialLocation. */ public com.google.cloud.pubsublite.proto.SeekRequest getInitialLocation() { if (initialLocationBuilder_ == null) { - return initialLocation_ == null - ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() - : initialLocation_; + return initialLocation_ == null ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; } else { return initialLocationBuilder_.getMessage(); } } /** - * - * *
-     * Optional. Initial target location within the message backlog. If not set, messages
-     * will be delivered from the commit cursor for the given subscription and
-     * partition.
+     * Optional. Initial target location within the message backlog. If not set,
+     * messages will be delivered from the commit cursor for the given
+     * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setInitialLocation(com.google.cloud.pubsublite.proto.SeekRequest value) { if (initialLocationBuilder_ == null) { @@ -835,17 +740,13 @@ public Builder setInitialLocation(com.google.cloud.pubsublite.proto.SeekRequest return this; } /** - * - * *
-     * Optional. Initial target location within the message backlog. If not set, messages
-     * will be delivered from the commit cursor for the given subscription and
-     * partition.
+     * Optional. Initial target location within the message backlog. If not set,
+     * messages will be delivered from the commit cursor for the given
+     * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setInitialLocation( com.google.cloud.pubsublite.proto.SeekRequest.Builder builderForValue) { @@ -859,24 +760,19 @@ public Builder setInitialLocation( return this; } /** - * - * *
-     * Optional. Initial target location within the message backlog. If not set, messages
-     * will be delivered from the commit cursor for the given subscription and
-     * partition.
+     * Optional. Initial target location within the message backlog. If not set,
+     * messages will be delivered from the commit cursor for the given
+     * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeInitialLocation(com.google.cloud.pubsublite.proto.SeekRequest value) { if (initialLocationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && initialLocation_ != null - && initialLocation_ - != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + initialLocation_ != null && + initialLocation_ != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { getInitialLocationBuilder().mergeFrom(value); } else { initialLocation_ = value; @@ -889,17 +785,13 @@ public Builder mergeInitialLocation(com.google.cloud.pubsublite.proto.SeekReques return this; } /** - * - * *
-     * Optional. Initial target location within the message backlog. If not set, messages
-     * will be delivered from the commit cursor for the given subscription and
-     * partition.
+     * Optional. Initial target location within the message backlog. If not set,
+     * messages will be delivered from the commit cursor for the given
+     * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearInitialLocation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -912,17 +804,13 @@ public Builder clearInitialLocation() { return this; } /** - * - * *
-     * Optional. Initial target location within the message backlog. If not set, messages
-     * will be delivered from the commit cursor for the given subscription and
-     * partition.
+     * Optional. Initial target location within the message backlog. If not set,
+     * messages will be delivered from the commit cursor for the given
+     * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getInitialLocationBuilder() { bitField0_ |= 0x00000004; @@ -930,59 +818,47 @@ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getInitialLocationB return getInitialLocationFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. Initial target location within the message backlog. If not set, messages
-     * will be delivered from the commit cursor for the given subscription and
-     * partition.
+     * Optional. Initial target location within the message backlog. If not set,
+     * messages will be delivered from the commit cursor for the given
+     * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getInitialLocationOrBuilder() { if (initialLocationBuilder_ != null) { return initialLocationBuilder_.getMessageOrBuilder(); } else { - return initialLocation_ == null - ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() - : initialLocation_; + return initialLocation_ == null ? + com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; } } /** - * - * *
-     * Optional. Initial target location within the message backlog. If not set, messages
-     * will be delivered from the commit cursor for the given subscription and
-     * partition.
+     * Optional. Initial target location within the message backlog. If not set,
+     * messages will be delivered from the commit cursor for the given
+     * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> getInitialLocationFieldBuilder() { if (initialLocationBuilder_ == null) { - initialLocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( - getInitialLocation(), getParentForChildren(), isClean()); + initialLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( + getInitialLocation(), + getParentForChildren(), + isClean()); initialLocation_ = null; } return initialLocationBuilder_; } - @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); } @@ -992,12 +868,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialSubscribeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialSubscribeRequest) private static final com.google.cloud.pubsublite.proto.InitialSubscribeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialSubscribeRequest(); } @@ -1006,27 +882,27 @@ public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialSubscribeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,4 +917,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java index 37fa43b10..feb8b4760 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java @@ -1,111 +1,73 @@ -/* - * 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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface InitialSubscribeRequestOrBuilder - extends +public interface InitialSubscribeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialSubscribeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; - * * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * The partition from which to receive messages. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ long getPartition(); /** - * - * *
-   * Optional. Initial target location within the message backlog. If not set, messages
-   * will be delivered from the commit cursor for the given subscription and
-   * partition.
+   * Optional. Initial target location within the message backlog. If not set,
+   * messages will be delivered from the commit cursor for the given
+   * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the initialLocation field is set. */ boolean hasInitialLocation(); /** - * - * *
-   * Optional. Initial target location within the message backlog. If not set, messages
-   * will be delivered from the commit cursor for the given subscription and
-   * partition.
+   * Optional. Initial target location within the message backlog. If not set,
+   * messages will be delivered from the commit cursor for the given
+   * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The initialLocation. */ com.google.cloud.pubsublite.proto.SeekRequest getInitialLocation(); /** - * - * *
-   * Optional. Initial target location within the message backlog. If not set, messages
-   * will be delivered from the commit cursor for the given subscription and
-   * partition.
+   * Optional. Initial target location within the message backlog. If not set,
+   * messages will be delivered from the commit cursor for the given
+   * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getInitialLocationOrBuilder(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java index 459af776e..91695a7f8 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java @@ -1,82 +1,61 @@ -/* - * 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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to an InitialSubscribeRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeResponse} */ -public final class InitialSubscribeResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitialSubscribeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialSubscribeResponse) InitialSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitialSubscribeResponse.newBuilder() to construct. private InitialSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private InitialSubscribeResponse() {} + private InitialSubscribeResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitialSubscribeResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); } public static final int CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -84,26 +63,19 @@ public boolean hasCursor() { return cursor_ != null; } /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
@@ -113,13 +85,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
-    return cursor_ == null
-        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-        : cursor_;
+    return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -131,7 +100,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 (cursor_ != null) {
       output.writeMessage(1, getCursor());
     }
@@ -145,7 +115,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (cursor_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -155,17 +126,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.cloud.pubsublite.proto.InitialSubscribeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.InitialSubscribeResponse other =
-        (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) obj;
+    com.google.cloud.pubsublite.proto.InitialSubscribeResponse other = (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) obj;
 
     if (hasCursor() != other.hasCursor()) return false;
     if (hasCursor()) {
-      if (!getCursor().equals(other.getCursor())) return false;
+      if (!getCursor()
+          .equals(other.getCursor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -188,136 +159,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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 to an InitialSubscribeRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeResponse} */ - 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.cloud.pubsublite.v1.InitialSubscribeResponse) com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialSubscribeResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -331,9 +295,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; } @java.lang.Override @@ -352,11 +316,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeResponse buildPartial() { - com.google.cloud.pubsublite.proto.InitialSubscribeResponse result = - new com.google.cloud.pubsublite.proto.InitialSubscribeResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.InitialSubscribeResponse result = new com.google.cloud.pubsublite.proto.InitialSubscribeResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,7 +325,9 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse buildPartial() private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); } } @@ -372,39 +335,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeRes 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.cloud.pubsublite.proto.InitialSubscribeResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeResponse)other); } else { super.mergeFrom(other); return this; @@ -412,8 +374,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialSubscribeResponse other) { - if (other == com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance()) return this; if (other.hasCursor()) { mergeCursor(other.getCursor()); } @@ -443,19 +404,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,54 +426,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -534,8 +481,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -543,7 +488,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
-    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(
+        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         cursor_ = builderForValue.build();
       } else {
@@ -554,8 +500,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -565,9 +509,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && cursor_ != null
-            && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          cursor_ != null &&
+          cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getCursorBuilder().mergeFrom(value);
         } else {
           cursor_ = value;
@@ -580,8 +524,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -600,8 +542,6 @@ public Builder clearCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -615,8 +555,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -628,14 +566,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       if (cursorBuilder_ != null) {
         return cursorBuilder_.getMessageOrBuilder();
       } else {
-        return cursor_ == null
-            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-            : cursor_;
+        return cursor_ == null ?
+            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
       }
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -644,24 +579,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
-        cursorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Cursor,
-                com.google.cloud.pubsublite.proto.Cursor.Builder,
-                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getCursor(), getParentForChildren(), isClean());
+        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getCursor(),
+                getParentForChildren(),
+                isClean());
         cursor_ = null;
       }
       return cursorBuilder_;
     }
-
     @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);
     }
 
@@ -671,12 +603,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialSubscribeResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialSubscribeResponse)
   private static final com.google.cloud.pubsublite.proto.InitialSubscribeResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialSubscribeResponse();
   }
@@ -685,27 +617,27 @@ public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InitialSubscribeResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InitialSubscribeResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -720,4 +652,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
similarity index 63%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
index c6bea975b..4b8a3a564 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface InitialSubscribeResponseOrBuilder
-    extends
+public interface InitialSubscribeResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialSubscribeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
similarity index 67%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
index 54d393474..3cde739a0 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.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/cloud/pubsublite/v1/cursor.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Request for ListPartitionCursors.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsRequest} */ -public final class ListPartitionCursorsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPartitionCursorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) ListPartitionCursorsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPartitionCursorsRequest.newBuilder() to construct. private ListPartitionCursorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPartitionCursorsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,47 +26,40 @@ private ListPartitionCursorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPartitionCursorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 @@ -93,33 +68,31 @@ 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 subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 { @@ -130,8 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of cursors to return. The service may return fewer than
    * this value.
@@ -139,7 +110,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -148,12 +118,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -162,7 +129,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,15 +137,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; } } /** - * - * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -188,15 +153,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 { @@ -205,7 +171,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +182,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_); } @@ -240,7 +206,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -253,17 +220,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.cloud.pubsublite.proto.ListPartitionCursorsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other = - (com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) obj; + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other = (com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,136 +256,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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 ListPartitionCursors.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsRequest} */ - 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.cloud.pubsublite.v1.ListPartitionCursorsRequest) com.google.cloud.pubsublite.proto.ListPartitionCursorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -428,14 +390,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance(); } @@ -450,17 +411,13 @@ public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result = - new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result = new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -477,39 +434,38 @@ private void buildPartial0( 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.cloud.pubsublite.proto.ListPartitionCursorsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest)other); } else { super.mergeFrom(other); return this; @@ -517,9 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other) { - if (other - == com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -559,31 +513,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -593,29 +543,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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; @@ -624,25 +569,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 { @@ -650,43 +592,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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() { @@ -696,25 +627,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -722,10 +647,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -733,7 +656,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -741,8 +663,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -750,20 +670,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -771,7 +688,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -783,8 +699,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -793,13 +707,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; @@ -808,8 +722,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -818,14 +730,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 { @@ -833,8 +746,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -843,22 +754,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -867,7 +774,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -877,8 +783,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -887,23 +791,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,13 +815,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) - private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(); } @@ -928,27 +829,27 @@ public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPartitionCursorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartitionCursorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -963,4 +864,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java index 266c36844..b8ecca71f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * 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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface ListPartitionCursorsRequestOrBuilder - extends +public interface ListPartitionCursorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 maximum number of cursors to return. The service may return fewer than
    * this value.
@@ -66,14 +39,11 @@ public interface ListPartitionCursorsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListPartitionCursorsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -97,8 +64,8 @@ public interface ListPartitionCursorsRequestOrBuilder
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java index 051be93b9..80dbd8c7e 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListPartitionCursors
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsResponse} */ -public final class ListPartitionCursorsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPartitionCursorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) ListPartitionCursorsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPartitionCursorsResponse.newBuilder() to construct. private ListPartitionCursorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPartitionCursorsResponse() { partitionCursors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,37 +26,33 @@ private ListPartitionCursorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPartitionCursorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); } public static final int PARTITION_CURSORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List partitionCursors_; /** - * - * *
    * The partition cursors from this request.
    * 
@@ -82,13 +60,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ @java.lang.Override - public java.util.List - getPartitionCursorsList() { + public java.util.List getPartitionCursorsList() { return partitionCursors_; } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -96,13 +71,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPartitionCursorsOrBuilderList() { return partitionCursors_; } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -114,8 +87,6 @@ public int getPartitionCursorsCount() { return partitionCursors_.size(); } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -127,8 +98,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int return partitionCursors_.get(index); } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -142,19 +111,15 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +128,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,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 < partitionCursors_.size(); i++) { output.writeMessage(1, partitionCursors_.get(i)); } @@ -224,7 +189,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < partitionCursors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, partitionCursors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, partitionCursors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -237,16 +203,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.cloud.pubsublite.proto.ListPartitionCursorsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse other = - (com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) obj; + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse other = (com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) obj; - if (!getPartitionCursorsList().equals(other.getPartitionCursorsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getPartitionCursorsList() + .equals(other.getPartitionCursorsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,136 +237,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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 ListPartitionCursors
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsResponse} */ - 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.cloud.pubsublite.v1.ListPartitionCursorsResponse) com.google.cloud.pubsublite.proto.ListPartitionCursorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,14 +376,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance(); } @@ -438,18 +397,14 @@ public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result = - new com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse(this); + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result = new com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { if (partitionCursorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { partitionCursors_ = java.util.Collections.unmodifiableList(partitionCursors_); @@ -461,8 +416,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -473,39 +427,38 @@ private void buildPartial0( 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.cloud.pubsublite.proto.ListPartitionCursorsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse)other); } else { super.mergeFrom(other); return this; @@ -513,9 +466,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse other) { - if (other - == com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance()) return this; if (partitionCursorsBuilder_ == null) { if (!other.partitionCursors_.isEmpty()) { if (partitionCursors_.isEmpty()) { @@ -534,10 +485,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsR partitionCursorsBuilder_ = null; partitionCursors_ = other.partitionCursors_; bitField0_ = (bitField0_ & ~0x00000001); - partitionCursorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartitionCursorsFieldBuilder() - : null; + partitionCursorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartitionCursorsFieldBuilder() : null; } else { partitionCursorsBuilder_.addAllMessages(other.partitionCursors_); } @@ -574,33 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.PartitionCursor m = - input.readMessage( - com.google.cloud.pubsublite.proto.PartitionCursor.parser(), - extensionRegistry); - if (partitionCursorsBuilder_ == null) { - ensurePartitionCursorsIsMutable(); - partitionCursors_.add(m); - } else { - partitionCursorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.PartitionCursor m = + input.readMessage( + com.google.cloud.pubsublite.proto.PartitionCursor.parser(), + extensionRegistry); + if (partitionCursorsBuilder_ == null) { + ensurePartitionCursorsIsMutable(); + partitionCursors_.add(m); + } else { + partitionCursorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,38 +557,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List partitionCursors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePartitionCursorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - partitionCursors_ = - new java.util.ArrayList( - partitionCursors_); + partitionCursors_ = new java.util.ArrayList(partitionCursors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionCursor, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder, - com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> - partitionCursorsBuilder_; + com.google.cloud.pubsublite.proto.PartitionCursor, com.google.cloud.pubsublite.proto.PartitionCursor.Builder, com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> partitionCursorsBuilder_; /** - * - * *
      * The partition cursors from this request.
      * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - public java.util.List - getPartitionCursorsList() { + public java.util.List getPartitionCursorsList() { if (partitionCursorsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitionCursors_); } else { @@ -649,8 +586,6 @@ private void ensurePartitionCursorsIsMutable() { } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -665,8 +600,6 @@ public int getPartitionCursorsCount() { } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -681,8 +614,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -704,8 +635,6 @@ public Builder setPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -724,8 +653,6 @@ public Builder setPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -746,8 +673,6 @@ public Builder addPartitionCursors(com.google.cloud.pubsublite.proto.PartitionCu return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -769,8 +694,6 @@ public Builder addPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -789,8 +712,6 @@ public Builder addPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -809,8 +730,6 @@ public Builder addPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -821,7 +740,8 @@ public Builder addAllPartitionCursors( java.lang.Iterable values) { if (partitionCursorsBuilder_ == null) { ensurePartitionCursorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitionCursors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partitionCursors_); onChanged(); } else { partitionCursorsBuilder_.addAllMessages(values); @@ -829,8 +749,6 @@ public Builder addAllPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -848,8 +766,6 @@ public Builder clearPartitionCursors() { return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -867,8 +783,6 @@ public Builder removePartitionCursors(int index) { return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -880,8 +794,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder getPartitionCur return getPartitionCursorsFieldBuilder().getBuilder(index); } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -891,22 +803,19 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder getPartitionCur public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCursorsOrBuilder( int index) { if (partitionCursorsBuilder_ == null) { - return partitionCursors_.get(index); - } else { + return partitionCursors_.get(index); } else { return partitionCursorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The partition cursors from this request.
      * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - public java.util.List - getPartitionCursorsOrBuilderList() { + public java.util.List + getPartitionCursorsOrBuilderList() { if (partitionCursorsBuilder_ != null) { return partitionCursorsBuilder_.getMessageOrBuilderList(); } else { @@ -914,8 +823,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -923,12 +830,10 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCursorsBuilder() { - return getPartitionCursorsFieldBuilder() - .addBuilder(com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); + return getPartitionCursorsFieldBuilder().addBuilder( + com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -937,35 +842,26 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCur */ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCursorsBuilder( int index) { - return getPartitionCursorsFieldBuilder() - .addBuilder( - index, com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); + return getPartitionCursorsFieldBuilder().addBuilder( + index, com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); } /** - * - * *
      * The partition cursors from this request.
      * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - public java.util.List - getPartitionCursorsBuilderList() { + public java.util.List + getPartitionCursorsBuilderList() { return getPartitionCursorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionCursor, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder, - com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> + com.google.cloud.pubsublite.proto.PartitionCursor, com.google.cloud.pubsublite.proto.PartitionCursor.Builder, com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> getPartitionCursorsFieldBuilder() { if (partitionCursorsBuilder_ == null) { - partitionCursorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionCursor, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder, - com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder>( + partitionCursorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.PartitionCursor, com.google.cloud.pubsublite.proto.PartitionCursor.Builder, com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder>( partitionCursors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -977,21 +873,19 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCur private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,22 +894,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1023,37 +916,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1063,31 +949,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1097,43 +979,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) - private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse(); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPartitionCursorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartitionCursorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1145,8 +1025,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java index e448215fc..7fb416493 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface ListPartitionCursorsResponseOrBuilder - extends +public interface ListPartitionCursorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The partition cursors from this request.
    * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - java.util.List getPartitionCursorsList(); + java.util.List + getPartitionCursorsList(); /** - * - * *
    * The partition cursors from this request.
    * 
@@ -44,8 +25,6 @@ public interface ListPartitionCursorsResponseOrBuilder */ com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int index); /** - * - * *
    * The partition cursors from this request.
    * 
@@ -54,19 +33,15 @@ public interface ListPartitionCursorsResponseOrBuilder */ int getPartitionCursorsCount(); /** - * - * *
    * The partition cursors from this request.
    * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - java.util.List + java.util.List getPartitionCursorsOrBuilderList(); /** - * - * *
    * The partition cursors from this request.
    * 
@@ -77,29 +52,24 @@ com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCursorsOr int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java index efe19f6d2..62aae34a7 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListReservationTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsRequest} */ -public final class ListReservationTopicsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReservationTopicsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationTopicsRequest) ListReservationTopicsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReservationTopicsRequest.newBuilder() to construct. private ListReservationTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReservationTopicsRequest() { name_ = ""; pageToken_ = ""; @@ -44,47 +26,40 @@ private ListReservationTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationTopicsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -93,33 +68,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -130,8 +103,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of topics to return. The service may return fewer
    * than this value.
@@ -139,7 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -148,12 +118,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -162,7 +129,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,15 +137,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; } } /** - * - * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -188,15 +153,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 { @@ -205,7 +171,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +182,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_); } @@ -240,7 +206,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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_); @@ -253,17 +220,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.cloud.pubsublite.proto.ListReservationTopicsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other = - (com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) obj; + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other = (com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,136 +256,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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 ListReservationTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsRequest} */ - 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.cloud.pubsublite.v1.ListReservationTopicsRequest) com.google.cloud.pubsublite.proto.ListReservationTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -428,14 +390,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance(); } @@ -450,17 +411,13 @@ public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result = - new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result = new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -477,39 +434,38 @@ private void buildPartial0( 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.cloud.pubsublite.proto.ListReservationTopicsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest)other); } else { super.mergeFrom(other); return this; @@ -517,9 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other) { - if (other - == com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -559,31 +513,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -593,29 +543,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -624,25 +569,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -650,43 +592,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -696,25 +627,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -722,10 +647,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -733,7 +656,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -741,8 +663,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -750,20 +670,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -771,7 +688,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -783,8 +699,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -793,13 +707,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; @@ -808,8 +722,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -818,14 +730,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 { @@ -833,8 +746,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -843,22 +754,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -867,7 +774,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -877,8 +783,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -887,23 +791,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,43 +815,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationTopicsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationTopicsRequest) - private static final com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListReservationTopicsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationTopicsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationTopicsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -961,8 +861,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java index 8b0078d9b..e5fbfd232 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListReservationTopicsRequestOrBuilder - extends +public interface ListReservationTopicsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationTopicsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The maximum number of topics to return. The service may return fewer
    * than this value.
@@ -66,14 +39,11 @@ public interface ListReservationTopicsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListReservationTopicsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -97,8 +64,8 @@ public interface ListReservationTopicsRequestOrBuilder
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java index d1476d61f..518ca4cef 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListReservationTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsResponse} */ -public final class ListReservationTopicsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReservationTopicsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationTopicsResponse) ListReservationTopicsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReservationTopicsResponse.newBuilder() to construct. private ListReservationTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReservationTopicsResponse() { topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; @@ -44,74 +26,64 @@ private ListReservationTopicsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationTopicsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); } public static final int TOPICS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList topics_; /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @return A list containing the topics. */ - public com.google.protobuf.ProtocolStringList getTopicsList() { + public com.google.protobuf.ProtocolStringList + getTopicsList() { return topics_; } /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @param index The index of the element to return. * @return The topics at the given index. */ @@ -119,36 +91,30 @@ public java.lang.String getTopics(int index) { return topics_.get(index); } /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @param index The index of the value to return. * @return The bytes of the topics at the given index. */ - public com.google.protobuf.ByteString getTopicsBytes(int index) { + public com.google.protobuf.ByteString + getTopicsBytes(int index) { return topics_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topics_.getRaw(i)); } @@ -236,16 +202,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.cloud.pubsublite.proto.ListReservationTopicsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other = - (com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) obj; + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other = (com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) obj; - if (!getTopicsList().equals(other.getTopicsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getTopicsList() + .equals(other.getTopicsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,136 +236,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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 ListReservationTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsResponse} */ - 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.cloud.pubsublite.v1.ListReservationTopicsResponse) com.google.cloud.pubsublite.proto.ListReservationTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance(); } @@ -432,18 +391,14 @@ public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result = - new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(this); + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result = new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { if (((bitField0_ & 0x00000001) != 0)) { topics_ = topics_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -451,8 +406,7 @@ private void buildPartialRepeatedFields( result.topics_ = topics_; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -463,50 +417,46 @@ private void buildPartial0( 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.cloud.pubsublite.proto.ListReservationTopicsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other) { - if (other - == com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other) { + if (other == com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance()) return this; if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { topics_ = other.topics_; @@ -548,26 +498,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTopicsIsMutable(); - topics_.add(s); - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTopicsIsMutable(); + topics_.add(s); + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -577,58 +524,47 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList topics_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTopicsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { topics_ = new com.google.protobuf.LazyStringArrayList(topics_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @return A list containing the topics. */ - public com.google.protobuf.ProtocolStringList getTopicsList() { + public com.google.protobuf.ProtocolStringList + getTopicsList() { return topics_.getUnmodifiableView(); } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param index The index of the element to return. * @return The topics at the given index. */ @@ -636,95 +572,81 @@ public java.lang.String getTopics(int index) { return topics_.get(index); } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param index The index of the value to return. * @return The bytes of the topics at the given index. */ - public com.google.protobuf.ByteString getTopicsBytes(int index) { + public com.google.protobuf.ByteString + getTopicsBytes(int index) { return topics_.getByteString(index); } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param index The index to set the value at. * @param value The topics to set. * @return This builder for chaining. */ - public Builder setTopics(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopics( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.set(index, value); onChanged(); return this; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param value The topics to add. * @return This builder for chaining. */ - public Builder addTopics(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTopics( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.add(value); onChanged(); return this; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param values The topics to add. * @return This builder for chaining. */ - public Builder addAllTopics(java.lang.Iterable values) { + public Builder addAllTopics( + java.lang.Iterable values) { ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topics_); onChanged(); return this; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @return This builder for chaining. */ public Builder clearTopics() { @@ -734,22 +656,18 @@ public Builder clearTopics() { return this; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param value The bytes of the topics to add. * @return This builder for chaining. */ - public Builder addTopicsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTopicsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTopicsIsMutable(); topics_.add(value); @@ -759,21 +677,19 @@ public Builder addTopicsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -782,22 +698,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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 { @@ -805,37 +720,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -845,31 +753,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -879,43 +783,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationTopicsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationTopicsResponse) - private static final com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListReservationTopicsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationTopicsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationTopicsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -927,8 +829,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java index 897b94adb..62dfa1fc1 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java @@ -1,107 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListReservationTopicsResponseOrBuilder - extends +public interface ListReservationTopicsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationTopicsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @return A list containing the topics. */ - java.util.List getTopicsList(); + java.util.List + getTopicsList(); /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @return The count of topics. */ int getTopicsCount(); /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @param index The index of the element to return. * @return The topics at the given index. */ java.lang.String getTopics(int index); /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @param index The index of the value to return. * @return The bytes of the topics at the given index. */ - com.google.protobuf.ByteString getTopicsBytes(int index); + com.google.protobuf.ByteString + getTopicsBytes(int index); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java index c8d1a2298..be4260a62 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListReservations.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsRequest} */ -public final class ListReservationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReservationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationsRequest) ListReservationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReservationsRequest.newBuilder() to construct. private ListReservationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReservationsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,46 +26,39 @@ private ListReservationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsRequest.class, - com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsRequest.class, com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 @@ -92,32 +67,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 parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of reservations to return. The service may return fewer
    * than this value. If unset or zero, all reservations for the parent will be
@@ -137,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,12 +116,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -160,7 +127,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -169,15 +135,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; } } /** - * - * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -186,15 +151,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 { @@ -203,7 +169,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,7 +180,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_); } @@ -238,7 +204,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -251,17 +218,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.cloud.pubsublite.proto.ListReservationsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationsRequest other = - (com.google.cloud.pubsublite.proto.ListReservationsRequest) obj; + com.google.cloud.pubsublite.proto.ListReservationsRequest other = (com.google.cloud.pubsublite.proto.ListReservationsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,136 +254,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationsRequest 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 ListReservations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsRequest} */ - 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.cloud.pubsublite.v1.ListReservationsRequest) com.google.cloud.pubsublite.proto.ListReservationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsRequest.class, - com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsRequest.class, com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override @@ -447,11 +409,8 @@ public com.google.cloud.pubsublite.proto.ListReservationsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationsRequest result = - new com.google.cloud.pubsublite.proto.ListReservationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListReservationsRequest result = new com.google.cloud.pubsublite.proto.ListReservationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -473,39 +432,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationsReq 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.cloud.pubsublite.proto.ListReservationsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsRequest)other); } else { super.mergeFrom(other); return this; @@ -513,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -554,31 +511,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -588,28 +541,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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; @@ -618,24 +566,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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 { @@ -643,41 +588,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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() { @@ -687,24 +621,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -712,10 +640,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -723,7 +649,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -731,8 +656,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -740,20 +663,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -761,7 +681,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -773,8 +692,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -783,13 +700,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 +715,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -808,14 +723,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 { @@ -823,8 +739,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -833,22 +747,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -857,7 +767,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -867,8 +776,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -877,23 +784,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -903,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationsRequest) private static final com.google.cloud.pubsublite.proto.ListReservationsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationsRequest(); } @@ -917,27 +822,27 @@ public static com.google.cloud.pubsublite.proto.ListReservationsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListReservationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java index b82b063ca..6e3a1d461 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListReservationsRequestOrBuilder - extends +public interface ListReservationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 maximum number of reservations to return. The service may return fewer
    * than this value. If unset or zero, all reservations for the parent will be
@@ -64,14 +37,11 @@ public interface ListReservationsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListReservationsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -95,8 +62,8 @@ public interface ListReservationsRequestOrBuilder
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java index 55683923e..bb8e74adf 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListReservations.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsResponse} */ -public final class ListReservationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReservationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationsResponse) ListReservationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReservationsResponse.newBuilder() to construct. private ListReservationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReservationsResponse() { reservations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,37 +26,33 @@ private ListReservationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsResponse.class, - com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsResponse.class, com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); } public static final int RESERVATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List reservations_; /** - * - * *
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -87,8 +65,6 @@ public java.util.List getReservat
     return reservations_;
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -97,13 +73,11 @@ public java.util.List getReservat
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getReservationsOrBuilderList() {
     return reservations_;
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -116,8 +90,6 @@ public int getReservationsCount() {
     return reservations_.size();
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -130,8 +102,6 @@ public com.google.cloud.pubsublite.proto.Reservation getReservations(int index)
     return reservations_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -146,19 +116,15 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -167,30 +133,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -199,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,7 +176,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 < reservations_.size(); i++) { output.writeMessage(1, reservations_.get(i)); } @@ -228,7 +194,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reservations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, reservations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -241,16 +208,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.cloud.pubsublite.proto.ListReservationsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationsResponse other = - (com.google.cloud.pubsublite.proto.ListReservationsResponse) obj; + com.google.cloud.pubsublite.proto.ListReservationsResponse other = (com.google.cloud.pubsublite.proto.ListReservationsResponse) obj; - if (!getReservationsList().equals(other.getReservationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getReservationsList() + .equals(other.getReservationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,136 +242,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationsResponse 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 ListReservations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsResponse} */ - 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.cloud.pubsublite.v1.ListReservationsResponse) com.google.cloud.pubsublite.proto.ListReservationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsResponse.class, - com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsResponse.class, com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; } @java.lang.Override @@ -441,18 +402,14 @@ public com.google.cloud.pubsublite.proto.ListReservationsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationsResponse result = - new com.google.cloud.pubsublite.proto.ListReservationsResponse(this); + com.google.cloud.pubsublite.proto.ListReservationsResponse result = new com.google.cloud.pubsublite.proto.ListReservationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListReservationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListReservationsResponse result) { if (reservationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { reservations_ = java.util.Collections.unmodifiableList(reservations_); @@ -475,39 +432,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationsRes 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.cloud.pubsublite.proto.ListReservationsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsResponse)other); } else { super.mergeFrom(other); return this; @@ -515,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListReservationsResponse.getDefaultInstance()) return this; if (reservationsBuilder_ == null) { if (!other.reservations_.isEmpty()) { if (reservations_.isEmpty()) { @@ -535,10 +490,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsRespo reservationsBuilder_ = null; reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000001); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReservationsFieldBuilder() - : null; + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReservationsFieldBuilder() : null; } else { reservationsBuilder_.addAllMessages(other.reservations_); } @@ -575,32 +529,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.Reservation m = - input.readMessage( - com.google.cloud.pubsublite.proto.Reservation.parser(), extensionRegistry); - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.add(m); - } else { - reservationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.Reservation m = + input.readMessage( + com.google.cloud.pubsublite.proto.Reservation.parser(), + extensionRegistry); + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.add(m); + } else { + reservationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,29 +562,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List reservations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReservationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - reservations_ = - new java.util.ArrayList(reservations_); + reservations_ = new java.util.ArrayList(reservations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> - reservationsBuilder_; + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> reservationsBuilder_; /** - * - * *
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -648,8 +592,6 @@ public java.util.List getReservat
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -665,8 +607,6 @@ public int getReservationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -682,8 +622,6 @@ public com.google.cloud.pubsublite.proto.Reservation getReservations(int index)
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -691,7 +629,8 @@ public com.google.cloud.pubsublite.proto.Reservation getReservations(int index)
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public Builder setReservations(int index, com.google.cloud.pubsublite.proto.Reservation value) {
+    public Builder setReservations(
+        int index, com.google.cloud.pubsublite.proto.Reservation value) {
       if (reservationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -705,8 +644,6 @@ public Builder setReservations(int index, com.google.cloud.pubsublite.proto.Rese
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -726,8 +663,6 @@ public Builder setReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -749,8 +684,6 @@ public Builder addReservations(com.google.cloud.pubsublite.proto.Reservation val
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -758,7 +691,8 @@ public Builder addReservations(com.google.cloud.pubsublite.proto.Reservation val
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public Builder addReservations(int index, com.google.cloud.pubsublite.proto.Reservation value) {
+    public Builder addReservations(
+        int index, com.google.cloud.pubsublite.proto.Reservation value) {
       if (reservationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -772,8 +706,6 @@ public Builder addReservations(int index, com.google.cloud.pubsublite.proto.Rese
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -793,8 +725,6 @@ public Builder addReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -814,8 +744,6 @@ public Builder addReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -827,7 +755,8 @@ public Builder addAllReservations(
         java.lang.Iterable values) {
       if (reservationsBuilder_ == null) {
         ensureReservationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, reservations_);
         onChanged();
       } else {
         reservationsBuilder_.addAllMessages(values);
@@ -835,8 +764,6 @@ public Builder addAllReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -855,8 +782,6 @@ public Builder clearReservations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -875,8 +800,6 @@ public Builder removeReservations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -884,12 +807,11 @@ public Builder removeReservations(int index) {
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationsBuilder(int index) {
+    public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationsBuilder(
+        int index) {
       return getReservationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -900,14 +822,11 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationsBuil
     public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrBuilder(
         int index) {
       if (reservationsBuilder_ == null) {
-        return reservations_.get(index);
-      } else {
+        return reservations_.get(index);  } else {
         return reservationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -915,8 +834,8 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public java.util.List
-        getReservationsOrBuilderList() {
+    public java.util.List 
+         getReservationsOrBuilderList() {
       if (reservationsBuilder_ != null) {
         return reservationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -924,8 +843,6 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -934,12 +851,10 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
     public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuilder() {
-      return getReservationsFieldBuilder()
-          .addBuilder(com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
+      return getReservationsFieldBuilder().addBuilder(
+          com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -947,13 +862,12 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuil
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuilder(int index) {
-      return getReservationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
+    public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuilder(
+        int index) {
+      return getReservationsFieldBuilder().addBuilder(
+          index, com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -961,23 +875,20 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuil
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public java.util.List
-        getReservationsBuilderList() {
+    public java.util.List 
+         getReservationsBuilderList() {
       return getReservationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Reservation,
-            com.google.cloud.pubsublite.proto.Reservation.Builder,
-            com.google.cloud.pubsublite.proto.ReservationOrBuilder>
+        com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> 
         getReservationsFieldBuilder() {
       if (reservationsBuilder_ == null) {
-        reservationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Reservation,
-                com.google.cloud.pubsublite.proto.Reservation.Builder,
-                com.google.cloud.pubsublite.proto.ReservationOrBuilder>(
-                reservations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder>(
+                reservations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         reservations_ = null;
       }
       return reservationsBuilder_;
@@ -985,21 +896,19 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuil
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -1008,22 +917,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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 { @@ -1031,37 +939,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1071,31 +972,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1105,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationsResponse) private static final com.google.cloud.pubsublite.proto.ListReservationsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationsResponse(); } @@ -1119,27 +1016,27 @@ public static com.google.cloud.pubsublite.proto.ListReservationsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1154,4 +1051,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListReservationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java index 8776091b0..18165c42b 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListReservationsResponseOrBuilder - extends +public interface ListReservationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -33,10 +15,9 @@ public interface ListReservationsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
-  java.util.List getReservationsList();
+  java.util.List 
+      getReservationsList();
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -46,8 +27,6 @@ public interface ListReservationsResponseOrBuilder
    */
   com.google.cloud.pubsublite.proto.Reservation getReservations(int index);
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -57,8 +36,6 @@ public interface ListReservationsResponseOrBuilder
    */
   int getReservationsCount();
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -66,11 +43,9 @@ public interface ListReservationsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
-  java.util.List
+  java.util.List 
       getReservationsOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -78,32 +53,28 @@ public interface ListReservationsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
-  com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrBuilder(int index);
+  com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java index 78fbe4dc0..d962c5f64 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { parent_ = ""; pageToken_ = ""; @@ -44,46 +26,39 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 @@ -92,32 +67,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 parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -137,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,12 +116,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -160,7 +127,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -169,15 +135,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; } } /** - * - * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -186,15 +151,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 { @@ -203,7 +169,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,7 +180,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_); } @@ -238,7 +204,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -251,17 +218,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.cloud.pubsublite.proto.ListSubscriptionsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other = - (com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) obj; + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other = (com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,136 +254,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.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 ListSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListSubscriptionsRequest) com.google.cloud.pubsublite.proto.ListSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override @@ -447,11 +409,8 @@ public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest result = - new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest result = new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -473,39 +432,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListSubscriptionsRe 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.cloud.pubsublite.proto.ListSubscriptionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest)other); } else { super.mergeFrom(other); return this; @@ -513,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -554,31 +511,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -588,28 +541,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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; @@ -618,24 +566,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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 { @@ -643,41 +588,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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() { @@ -687,24 +621,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -712,10 +640,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -723,7 +649,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -731,8 +656,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -740,20 +663,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -761,7 +681,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -773,8 +692,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -783,13 +700,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 +715,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -808,14 +723,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 { @@ -823,8 +739,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -833,22 +747,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -857,7 +767,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -867,8 +776,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -877,23 +784,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -903,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListSubscriptionsRequest) private static final com.google.cloud.pubsublite.proto.ListSubscriptionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(); } @@ -917,27 +822,27 @@ public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubscriptionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubscriptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java index 4268ac2d2..6735ab35e 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListSubscriptionsRequestOrBuilder - extends +public interface ListSubscriptionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -64,14 +37,11 @@ public interface ListSubscriptionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -95,8 +62,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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java similarity index 73% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java index 0e91ef43f..ad9383469 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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,37 +26,33 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List subscriptions_; /** - * - * *
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -87,8 +65,6 @@ public java.util.List getSubscri
     return subscriptions_;
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -97,13 +73,11 @@ public java.util.List getSubscri
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSubscriptionsOrBuilderList() {
     return subscriptions_;
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -116,8 +90,6 @@ public int getSubscriptionsCount() {
     return subscriptions_.size();
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -130,8 +102,6 @@ public com.google.cloud.pubsublite.proto.Subscription getSubscriptions(int index
     return subscriptions_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -146,19 +116,15 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -167,30 +133,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -199,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,7 +176,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)); } @@ -228,7 +194,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_); @@ -241,16 +208,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.cloud.pubsublite.proto.ListSubscriptionsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse other = - (com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) obj; + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse other = (com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) obj; - if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSubscriptionsList() + .equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,136 +242,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.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 ListSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListSubscriptionsResponse) com.google.cloud.pubsublite.proto.ListSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override @@ -441,18 +402,14 @@ public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result = - new com.google.cloud.pubsublite.proto.ListSubscriptionsResponse(this); + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result = new com.google.cloud.pubsublite.proto.ListSubscriptionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result) { if (subscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); @@ -475,39 +432,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListSubscriptionsRe 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.cloud.pubsublite.proto.ListSubscriptionsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsResponse)other); } else { super.mergeFrom(other); return this; @@ -515,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.getDefaultInstance()) return this; if (subscriptionsBuilder_ == null) { if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { @@ -535,10 +490,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsResp 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_); } @@ -575,32 +529,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.Subscription m = - input.readMessage( - com.google.cloud.pubsublite.proto.Subscription.parser(), extensionRegistry); - if (subscriptionsBuilder_ == null) { - ensureSubscriptionsIsMutable(); - subscriptions_.add(m); - } else { - subscriptionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.Subscription m = + input.readMessage( + com.google.cloud.pubsublite.proto.Subscription.parser(), + extensionRegistry); + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.add(m); + } else { + subscriptionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,29 +562,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List subscriptions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - subscriptions_ = - new java.util.ArrayList(subscriptions_); + subscriptions_ = new java.util.ArrayList(subscriptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> - subscriptionsBuilder_; + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> subscriptionsBuilder_; /** - * - * *
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -648,8 +592,6 @@ public java.util.List getSubscri
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -665,8 +607,6 @@ public int getSubscriptionsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -682,8 +622,6 @@ public com.google.cloud.pubsublite.proto.Subscription getSubscriptions(int index
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -706,8 +644,6 @@ public Builder setSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -727,8 +663,6 @@ public Builder setSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -750,8 +684,6 @@ public Builder addSubscriptions(com.google.cloud.pubsublite.proto.Subscription v
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -774,8 +706,6 @@ public Builder addSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -795,8 +725,6 @@ public Builder addSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -816,8 +744,6 @@ public Builder addSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -829,7 +755,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);
@@ -837,8 +764,6 @@ public Builder addAllSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -857,8 +782,6 @@ public Builder clearSubscriptions() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -877,8 +800,6 @@ public Builder removeSubscriptions(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -891,8 +812,6 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionsBu
       return getSubscriptionsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -903,14 +822,11 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionsBu
     public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsOrBuilder(
         int index) {
       if (subscriptionsBuilder_ == null) {
-        return subscriptions_.get(index);
-      } else {
+        return subscriptions_.get(index);  } else {
         return subscriptionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -918,8 +834,8 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
      *
      * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
      */
-    public java.util.List
-        getSubscriptionsOrBuilderList() {
+    public java.util.List 
+         getSubscriptionsOrBuilderList() {
       if (subscriptionsBuilder_ != null) {
         return subscriptionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -927,8 +843,6 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -937,12 +851,10 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
      * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
      */
     public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBuilder() {
-      return getSubscriptionsFieldBuilder()
-          .addBuilder(com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
+      return getSubscriptionsFieldBuilder().addBuilder(
+          com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -952,12 +864,10 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBu
      */
     public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBuilder(
         int index) {
-      return getSubscriptionsFieldBuilder()
-          .addBuilder(index, com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
+      return getSubscriptionsFieldBuilder().addBuilder(
+          index, com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -965,22 +875,16 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBu
      *
      * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
      */
-    public java.util.List
-        getSubscriptionsBuilderList() {
+    public java.util.List 
+         getSubscriptionsBuilderList() {
       return getSubscriptionsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Subscription,
-            com.google.cloud.pubsublite.proto.Subscription.Builder,
-            com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>
+        com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> 
         getSubscriptionsFieldBuilder() {
       if (subscriptionsBuilder_ == null) {
-        subscriptionsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Subscription,
-                com.google.cloud.pubsublite.proto.Subscription.Builder,
-                com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>(
+        subscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>(
                 subscriptions_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -992,21 +896,19 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBu
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -1015,22 +917,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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 { @@ -1038,37 +939,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1078,31 +972,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListSubscriptionsResponse) private static final com.google.cloud.pubsublite.proto.ListSubscriptionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListSubscriptionsResponse(); } @@ -1126,27 +1016,27 @@ public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubscriptionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubscriptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1161,4 +1051,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java index ea0c2ded8..06af6546b 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListSubscriptionsResponseOrBuilder - extends +public interface ListSubscriptionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -33,10 +15,9 @@ public interface ListSubscriptionsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
-  java.util.List getSubscriptionsList();
+  java.util.List 
+      getSubscriptionsList();
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -46,8 +27,6 @@ public interface ListSubscriptionsResponseOrBuilder
    */
   com.google.cloud.pubsublite.proto.Subscription getSubscriptions(int index);
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -57,8 +36,6 @@ public interface ListSubscriptionsResponseOrBuilder
    */
   int getSubscriptionsCount();
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -66,11 +43,9 @@ public interface ListSubscriptionsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
-  java.util.List
+  java.util.List 
       getSubscriptionsOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -78,32 +53,28 @@ public interface ListSubscriptionsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
-  com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index);
+  com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java index dd9af147d..320470d5d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListTopicSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; pageToken_ = ""; @@ -44,45 +26,38 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * - * 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 @@ -91,31 +66,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; } } /** - * - * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * - * 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 { @@ -126,8 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -135,7 +106,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,12 +114,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -158,7 +125,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -167,15 +133,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; } } /** - * - * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -184,15 +149,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 { @@ -201,7 +167,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +178,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_); } @@ -236,7 +202,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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_); @@ -249,17 +216,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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other = - (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) obj; + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other = (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,136 +252,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.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 ListTopicSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,14 +386,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance(); } @@ -446,17 +407,13 @@ public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result = - new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -473,50 +430,46 @@ private void buildPartial0( 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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other) { - if (other - == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other) { + if (other == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -556,31 +509,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -590,27 +539,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * 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; @@ -619,23 +563,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * 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 { @@ -643,39 +584,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * 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() { @@ -685,23 +615,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -709,10 +633,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -720,7 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -728,8 +649,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -737,20 +656,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -758,7 +674,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -770,8 +685,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -780,13 +693,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; @@ -795,8 +708,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -805,14 +716,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 { @@ -820,8 +732,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -830,22 +740,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -854,7 +760,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -864,8 +769,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -874,23 +777,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -900,43 +801,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) - private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSubscriptionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSubscriptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,8 +847,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java index da4ea21fd..ba7bba85e 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListTopicSubscriptionsRequestOrBuilder - extends +public interface ListTopicSubscriptionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * - * 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 topic whose subscriptions to list.
    * 
* - * - * 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 maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -62,14 +35,11 @@ public interface ListTopicSubscriptionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -78,13 +48,10 @@ public interface ListTopicSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -93,8 +60,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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java index ebf9a1f49..2a4b6bf99 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListTopicSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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,74 +26,64 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList subscriptions_; /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @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. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -120,36 +91,30 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. */ - public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { + public com.google.protobuf.ByteString + getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -190,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +166,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)); } @@ -237,16 +202,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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other = - (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) obj; + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other = (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) obj; - if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSubscriptionsList() + .equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,136 +236,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.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 ListTopicSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance(); } @@ -433,18 +391,14 @@ public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse build() @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result = - new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(this); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -452,8 +406,7 @@ private void buildPartialRepeatedFields( result.subscriptions_ = subscriptions_; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -464,50 +417,46 @@ private void buildPartial0( 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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other) { - if (other - == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other) { + if (other == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance()) return this; if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { subscriptions_ = other.subscriptions_; @@ -549,26 +498,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubscriptionsIsMutable(); - subscriptions_.add(s); - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubscriptionsIsMutable(); + subscriptions_.add(s); + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,58 +524,47 @@ public Builder mergeFrom( } // finally 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. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @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. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -637,95 +572,81 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @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. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param index The index to set the value at. * @param value The subscriptions to set. * @return This builder for chaining. */ - public Builder setSubscriptions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubscriptionsIsMutable(); subscriptions_.set(index, value); onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param value The subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubscriptions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @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. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @return This builder for chaining. */ public Builder clearSubscriptions() { @@ -735,22 +656,18 @@ public Builder clearSubscriptions() { return this; } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param value The bytes of the subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubscriptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubscriptionsIsMutable(); subscriptions_.add(value); @@ -760,21 +677,19 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -783,22 +698,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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 { @@ -806,37 +720,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -846,31 +753,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -880,43 +783,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) - private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSubscriptionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSubscriptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,8 +829,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java index 24d56f8aa..4c7fd2de0 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,107 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListTopicSubscriptionsResponseOrBuilder - extends +public interface ListTopicSubscriptionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @return A list containing the subscriptions. */ - java.util.List getSubscriptionsList(); + java.util.List + getSubscriptionsList(); /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @return The count of subscriptions. */ int getSubscriptionsCount(); /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @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. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @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); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java index ff8094ce8..7bc6a24cb 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { parent_ = ""; pageToken_ = ""; @@ -44,46 +26,39 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsRequest.class, - com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsRequest.class, com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 @@ -92,32 +67,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 parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of topics to return. The service may return fewer than
    * this value.
@@ -137,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,12 +116,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -160,7 +127,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -169,15 +135,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; } } /** - * - * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -186,15 +151,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 { @@ -203,7 +169,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,7 +180,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_); } @@ -238,7 +204,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -251,17 +218,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.cloud.pubsublite.proto.ListTopicsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicsRequest other = - (com.google.cloud.pubsublite.proto.ListTopicsRequest) obj; + com.google.cloud.pubsublite.proto.ListTopicsRequest other = (com.google.cloud.pubsublite.proto.ListTopicsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,135 +254,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicsRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 ListTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListTopicsRequest) com.google.cloud.pubsublite.proto.ListTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsRequest.class, - com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsRequest.class, com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override @@ -446,11 +409,8 @@ public com.google.cloud.pubsublite.proto.ListTopicsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicsRequest result = - new com.google.cloud.pubsublite.proto.ListTopicsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListTopicsRequest result = new com.google.cloud.pubsublite.proto.ListTopicsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -472,39 +432,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicsRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListTopicsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsRequest)other); } else { super.mergeFrom(other); return this; @@ -512,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -553,31 +511,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,28 +541,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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; @@ -617,24 +566,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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 { @@ -642,41 +588,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * 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() { @@ -686,24 +621,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -711,10 +640,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -722,7 +649,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -730,8 +656,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -739,20 +663,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -760,7 +681,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -772,8 +692,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -782,13 +700,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 +715,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -807,14 +723,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 +739,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -832,22 +747,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -856,7 +767,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -866,8 +776,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -876,23 +784,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -902,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicsRequest) private static final com.google.cloud.pubsublite.proto.ListTopicsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicsRequest(); } @@ -916,27 +822,27 @@ public static com.google.cloud.pubsublite.proto.ListTopicsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java index 2e17a0d4d..c19f8e09f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListTopicsRequestOrBuilder - extends +public interface ListTopicsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * 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 maximum number of topics to return. The service may return fewer than
    * this value.
@@ -64,14 +37,11 @@ public interface ListTopicsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListTopicsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -95,8 +62,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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java index 250246b52..aaddb32ff 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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,37 +26,33 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsResponse.class, - com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsResponse.class, com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); } public static final int TOPICS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List topics_; /** - * - * *
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -87,8 +65,6 @@ public java.util.List getTopicsList() {
     return topics_;
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -97,13 +73,11 @@ public java.util.List getTopicsList() {
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTopicsOrBuilderList() {
     return topics_;
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -116,8 +90,6 @@ public int getTopicsCount() {
     return topics_.size();
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -130,8 +102,6 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
     return topics_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -140,24 +110,21 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
   @java.lang.Override
-  public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int index) {
+  public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
+      int index) {
     return topics_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -166,30 +133,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -198,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +176,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)); } @@ -227,7 +194,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_); @@ -240,16 +208,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.cloud.pubsublite.proto.ListTopicsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicsResponse other = - (com.google.cloud.pubsublite.proto.ListTopicsResponse) obj; + com.google.cloud.pubsublite.proto.ListTopicsResponse other = (com.google.cloud.pubsublite.proto.ListTopicsResponse) obj; - if (!getTopicsList().equals(other.getTopicsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getTopicsList() + .equals(other.getTopicsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,135 +242,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicsResponse 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 ListTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListTopicsResponse) com.google.cloud.pubsublite.proto.ListTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsResponse.class, - com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsResponse.class, com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; } @java.lang.Override @@ -439,18 +402,14 @@ public com.google.cloud.pubsublite.proto.ListTopicsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicsResponse result = - new com.google.cloud.pubsublite.proto.ListTopicsResponse(this); + com.google.cloud.pubsublite.proto.ListTopicsResponse result = new com.google.cloud.pubsublite.proto.ListTopicsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListTopicsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListTopicsResponse result) { if (topicsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); @@ -473,39 +432,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicsResponse 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.cloud.pubsublite.proto.ListTopicsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsResponse)other); } else { super.mergeFrom(other); return this; @@ -513,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListTopicsResponse.getDefaultInstance()) return this; if (topicsBuilder_ == null) { if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { @@ -533,10 +490,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsResponse ot 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_); } @@ -573,32 +529,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.Topic m = - input.readMessage( - com.google.cloud.pubsublite.proto.Topic.parser(), extensionRegistry); - if (topicsBuilder_ == null) { - ensureTopicsIsMutable(); - topics_.add(m); - } else { - topicsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.Topic m = + input.readMessage( + com.google.cloud.pubsublite.proto.Topic.parser(), + extensionRegistry); + if (topicsBuilder_ == null) { + ensureTopicsIsMutable(); + topics_.add(m); + } else { + topicsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -608,28 +562,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List topics_ = - java.util.Collections.emptyList(); - + 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.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> - topicsBuilder_; + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> topicsBuilder_; /** - * - * *
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -645,8 +592,6 @@ public java.util.List getTopicsList() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -662,8 +607,6 @@ public int getTopicsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -679,8 +622,6 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -688,7 +629,8 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public Builder setTopics(int index, com.google.cloud.pubsublite.proto.Topic value) {
+    public Builder setTopics(
+        int index, com.google.cloud.pubsublite.proto.Topic value) {
       if (topicsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -702,8 +644,6 @@ public Builder setTopics(int index, com.google.cloud.pubsublite.proto.Topic valu
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -723,8 +663,6 @@ public Builder setTopics(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -746,8 +684,6 @@ public Builder addTopics(com.google.cloud.pubsublite.proto.Topic value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -755,7 +691,8 @@ public Builder addTopics(com.google.cloud.pubsublite.proto.Topic value) {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public Builder addTopics(int index, com.google.cloud.pubsublite.proto.Topic value) {
+    public Builder addTopics(
+        int index, com.google.cloud.pubsublite.proto.Topic value) {
       if (topicsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -769,8 +706,6 @@ public Builder addTopics(int index, com.google.cloud.pubsublite.proto.Topic valu
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -778,7 +713,8 @@ public Builder addTopics(int index, com.google.cloud.pubsublite.proto.Topic valu
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public Builder addTopics(com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) {
+    public Builder addTopics(
+        com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) {
       if (topicsBuilder_ == null) {
         ensureTopicsIsMutable();
         topics_.add(builderForValue.build());
@@ -789,8 +725,6 @@ public Builder addTopics(com.google.cloud.pubsublite.proto.Topic.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -810,8 +744,6 @@ public Builder addTopics(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -823,7 +755,8 @@ 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);
@@ -831,8 +764,6 @@ public Builder addAllTopics(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -851,8 +782,6 @@ public Builder clearTopics() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -871,8 +800,6 @@ public Builder removeTopics(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -880,12 +807,11 @@ public Builder removeTopics(int index) {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public com.google.cloud.pubsublite.proto.Topic.Builder getTopicsBuilder(int index) {
+    public com.google.cloud.pubsublite.proto.Topic.Builder getTopicsBuilder(
+        int index) {
       return getTopicsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -893,16 +819,14 @@ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicsBuilder(int inde
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int index) {
+    public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
+        int index) {
       if (topicsBuilder_ == null) {
-        return topics_.get(index);
-      } else {
+        return topics_.get(index);  } else {
         return topicsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -910,8 +834,8 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int i
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public java.util.List
-        getTopicsOrBuilderList() {
+    public java.util.List 
+         getTopicsOrBuilderList() {
       if (topicsBuilder_ != null) {
         return topicsBuilder_.getMessageOrBuilderList();
       } else {
@@ -919,8 +843,6 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int i
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -929,12 +851,10 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int i
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
     public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder() {
-      return getTopicsFieldBuilder()
-          .addBuilder(com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
+      return getTopicsFieldBuilder().addBuilder(
+          com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -942,13 +862,12 @@ public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder() {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(int index) {
-      return getTopicsFieldBuilder()
-          .addBuilder(index, com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
+    public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(
+        int index) {
+      return getTopicsFieldBuilder().addBuilder(
+          index, com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -956,22 +875,20 @@ public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(int inde
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public java.util.List getTopicsBuilderList() {
+    public java.util.List 
+         getTopicsBuilderList() {
       return getTopicsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Topic,
-            com.google.cloud.pubsublite.proto.Topic.Builder,
-            com.google.cloud.pubsublite.proto.TopicOrBuilder>
+        com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> 
         getTopicsFieldBuilder() {
       if (topicsBuilder_ == null) {
-        topicsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Topic,
-                com.google.cloud.pubsublite.proto.Topic.Builder,
-                com.google.cloud.pubsublite.proto.TopicOrBuilder>(
-                topics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder>(
+                topics_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         topics_ = null;
       }
       return topicsBuilder_;
@@ -979,21 +896,19 @@ public java.util.List getTopics
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -1002,22 +917,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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,37 +939,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1065,31 +972,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1099,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicsResponse) private static final com.google.cloud.pubsublite.proto.ListTopicsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicsResponse(); } @@ -1113,27 +1016,27 @@ public static com.google.cloud.pubsublite.proto.ListTopicsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,4 +1051,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java index e6a365012..00efedc69 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListTopicsResponseOrBuilder - extends +public interface ListTopicsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -33,10 +15,9 @@ public interface ListTopicsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
-  java.util.List getTopicsList();
+  java.util.List 
+      getTopicsList();
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -46,8 +27,6 @@ public interface ListTopicsResponseOrBuilder
    */
   com.google.cloud.pubsublite.proto.Topic getTopics(int index);
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -57,8 +36,6 @@ public interface ListTopicsResponseOrBuilder
    */
   int getTopicsCount();
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -66,11 +43,9 @@ public interface ListTopicsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
-  java.util.List
+  java.util.List 
       getTopicsOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -78,32 +53,28 @@ public interface ListTopicsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
-  com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int index);
+  com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java index c9d4710e2..f2a012890 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java @@ -1,79 +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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request to publish messages to the topic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishRequest} */ -public final class MessagePublishRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MessagePublishRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishRequest) MessagePublishRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MessagePublishRequest.newBuilder() to construct. private MessagePublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MessagePublishRequest() { messages_ = 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 MessagePublishRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishRequest.class, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishRequest.class, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); } public static final int MESSAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List messages_; /** - * - * *
    * The messages to publish.
    * 
@@ -85,8 +63,6 @@ public java.util.List getMessag return messages_; } /** - * - * *
    * The messages to publish.
    * 
@@ -94,13 +70,11 @@ public java.util.List getMessag * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** - * - * *
    * The messages to publish.
    * 
@@ -112,8 +86,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * The messages to publish.
    * 
@@ -125,8 +97,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { return messages_.get(index); } /** - * - * *
    * The messages to publish.
    * 
@@ -134,12 +104,36 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder(int index) { + public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder( + int index) { return messages_.get(index); } - private byte memoizedIsInitialized = -1; + public static final int FIRST_SEQUENCE_NUMBER_FIELD_NUMBER = 2; + private long firstSequenceNumber_ = 0L; + /** + *
+   * The sequence number corresponding to the first message in `messages`.
+   * Messages within a batch are ordered and the sequence numbers of all
+   * subsequent messages in the batch are assumed to be incremental.
+   * Sequence numbers are assigned at the message level and the first message
+   * published in a publisher client session must have a sequence number of 0.
+   * All messages must have contiguous sequence numbers, which uniquely identify
+   * the messages accepted by the publisher client. Since messages are ordered,
+   * the client only needs to specify the sequence number of the first message
+   * in a published batch. The server deduplicates messages with the same
+   * sequence number from the same publisher `client_id`.
+   * 
+ * + * int64 first_sequence_number = 2; + * @return The firstSequenceNumber. + */ + @java.lang.Override + public long getFirstSequenceNumber() { + return firstSequenceNumber_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,10 +145,14 @@ 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 < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } + if (firstSequenceNumber_ != 0L) { + output.writeInt64(2, firstSequenceNumber_); + } getUnknownFields().writeTo(output); } @@ -165,7 +163,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, messages_.get(i)); + } + if (firstSequenceNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, firstSequenceNumber_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,15 +178,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.cloud.pubsublite.proto.MessagePublishRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessagePublishRequest other = - (com.google.cloud.pubsublite.proto.MessagePublishRequest) obj; + com.google.cloud.pubsublite.proto.MessagePublishRequest other = (com.google.cloud.pubsublite.proto.MessagePublishRequest) obj; - if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; + if (getFirstSequenceNumber() + != other.getFirstSequenceNumber()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,142 +204,138 @@ public int hashCode() { hash = (37 * hash) + MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMessagesList().hashCode(); } + hash = (37 * hash) + FIRST_SEQUENCE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFirstSequenceNumber()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.MessagePublishRequest 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 to publish messages to the topic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishRequest} */ - 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.cloud.pubsublite.v1.MessagePublishRequest) com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishRequest.class, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishRequest.class, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.MessagePublishRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -346,13 +347,14 @@ public Builder clear() { messagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + firstSequenceNumber_ = 0L; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; } @java.lang.Override @@ -371,18 +373,14 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishRequest buildPartial() { - com.google.cloud.pubsublite.proto.MessagePublishRequest result = - new com.google.cloud.pubsublite.proto.MessagePublishRequest(this); + com.google.cloud.pubsublite.proto.MessagePublishRequest result = new com.google.cloud.pubsublite.proto.MessagePublishRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.MessagePublishRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.MessagePublishRequest result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -396,45 +394,47 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishRequest result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firstSequenceNumber_ = firstSequenceNumber_; + } } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.cloud.pubsublite.proto.MessagePublishRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishRequest)other); } else { super.mergeFrom(other); return this; @@ -442,8 +442,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishRequest other) { - if (other == com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) return this; if (messagesBuilder_ == null) { if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { @@ -462,15 +461,17 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishRequest 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_); } } } + if (other.getFirstSequenceNumber() != 0L) { + setFirstSequenceNumber(other.getFirstSequenceNumber()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -497,27 +498,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.PubSubMessage m = - input.readMessage( - com.google.cloud.pubsublite.proto.PubSubMessage.parser(), - extensionRegistry); - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.add(m); - } else { - messagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.PubSubMessage m = + input.readMessage( + com.google.cloud.pubsublite.proto.PubSubMessage.parser(), + extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + firstSequenceNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,29 +531,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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_); + messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> - messagesBuilder_; + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> messagesBuilder_; /** - * - * *
      * The messages to publish.
      * 
@@ -564,8 +560,6 @@ public java.util.List getMessag } } /** - * - * *
      * The messages to publish.
      * 
@@ -580,8 +574,6 @@ public int getMessagesCount() { } } /** - * - * *
      * The messages to publish.
      * 
@@ -596,15 +588,14 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { } } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public Builder setMessages(int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { + public Builder setMessages( + int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -618,8 +609,6 @@ public Builder setMessages(int index, com.google.cloud.pubsublite.proto.PubSubMe return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -638,8 +627,6 @@ public Builder setMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -660,15 +647,14 @@ public Builder addMessages(com.google.cloud.pubsublite.proto.PubSubMessage value return this; } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public Builder addMessages(int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { + public Builder addMessages( + int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -682,8 +668,6 @@ public Builder addMessages(int index, com.google.cloud.pubsublite.proto.PubSubMe return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -702,8 +686,6 @@ public Builder addMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -722,8 +704,6 @@ public Builder addMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -734,7 +714,8 @@ 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); @@ -742,8 +723,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -761,8 +740,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -780,20 +757,17 @@ public Builder removeMessages(int index) { return this; } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessagesBuilder(int index) { + public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessagesBuilder( + int index) { return getMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The messages to publish.
      * 
@@ -803,22 +777,19 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessagesBuilde public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { - return messages_.get(index); - } else { + return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -826,8 +797,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui } } /** - * - * *
      * The messages to publish.
      * 
@@ -835,55 +804,120 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder() - .addBuilder(com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder(int index) { - return getMessagesFieldBuilder() - .addBuilder(index, com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); + public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder( + int index) { + return getMessagesFieldBuilder().addBuilder( + index, com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( + messages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); messages_ = null; } return messagesBuilder_; } + private long firstSequenceNumber_ ; + /** + *
+     * The sequence number corresponding to the first message in `messages`.
+     * Messages within a batch are ordered and the sequence numbers of all
+     * subsequent messages in the batch are assumed to be incremental.
+     * Sequence numbers are assigned at the message level and the first message
+     * published in a publisher client session must have a sequence number of 0.
+     * All messages must have contiguous sequence numbers, which uniquely identify
+     * the messages accepted by the publisher client. Since messages are ordered,
+     * the client only needs to specify the sequence number of the first message
+     * in a published batch. The server deduplicates messages with the same
+     * sequence number from the same publisher `client_id`.
+     * 
+ * + * int64 first_sequence_number = 2; + * @return The firstSequenceNumber. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public long getFirstSequenceNumber() { + return firstSequenceNumber_; + } + /** + *
+     * The sequence number corresponding to the first message in `messages`.
+     * Messages within a batch are ordered and the sequence numbers of all
+     * subsequent messages in the batch are assumed to be incremental.
+     * Sequence numbers are assigned at the message level and the first message
+     * published in a publisher client session must have a sequence number of 0.
+     * All messages must have contiguous sequence numbers, which uniquely identify
+     * the messages accepted by the publisher client. Since messages are ordered,
+     * the client only needs to specify the sequence number of the first message
+     * in a published batch. The server deduplicates messages with the same
+     * sequence number from the same publisher `client_id`.
+     * 
+ * + * int64 first_sequence_number = 2; + * @param value The firstSequenceNumber to set. + * @return This builder for chaining. + */ + public Builder setFirstSequenceNumber(long value) { + + firstSequenceNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The sequence number corresponding to the first message in `messages`.
+     * Messages within a batch are ordered and the sequence numbers of all
+     * subsequent messages in the batch are assumed to be incremental.
+     * Sequence numbers are assigned at the message level and the first message
+     * published in a publisher client session must have a sequence number of 0.
+     * All messages must have contiguous sequence numbers, which uniquely identify
+     * the messages accepted by the publisher client. Since messages are ordered,
+     * the client only needs to specify the sequence number of the first message
+     * in a published batch. The server deduplicates messages with the same
+     * sequence number from the same publisher `client_id`.
+     * 
+ * + * int64 first_sequence_number = 2; + * @return This builder for chaining. + */ + public Builder clearFirstSequenceNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + firstSequenceNumber_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -893,12 +927,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishRequest) private static final com.google.cloud.pubsublite.proto.MessagePublishRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishRequest(); } @@ -907,27 +941,27 @@ public static com.google.cloud.pubsublite.proto.MessagePublishRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessagePublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessagePublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -942,4 +976,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.MessagePublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java index ede8b0881..1124f87d8 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; -public interface MessagePublishRequestOrBuilder - extends +public interface MessagePublishRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The messages to publish.
    * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - java.util.List getMessagesList(); + java.util.List + getMessagesList(); /** - * - * *
    * The messages to publish.
    * 
@@ -44,8 +25,6 @@ public interface MessagePublishRequestOrBuilder */ com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index); /** - * - * *
    * The messages to publish.
    * 
@@ -54,24 +33,40 @@ public interface MessagePublishRequestOrBuilder */ int getMessagesCount(); /** - * - * *
    * The messages to publish.
    * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** - * - * *
    * The messages to publish.
    * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder(int index); + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder( + int index); + + /** + *
+   * The sequence number corresponding to the first message in `messages`.
+   * Messages within a batch are ordered and the sequence numbers of all
+   * subsequent messages in the batch are assumed to be incremental.
+   * Sequence numbers are assigned at the message level and the first message
+   * published in a publisher client session must have a sequence number of 0.
+   * All messages must have contiguous sequence numbers, which uniquely identify
+   * the messages accepted by the publisher client. Since messages are ordered,
+   * the client only needs to specify the sequence number of the first message
+   * in a published batch. The server deduplicates messages with the same
+   * sequence number from the same publisher `client_id`.
+   * 
+ * + * int64 first_sequence_number = 2; + * @return The firstSequenceNumber. + */ + long getFirstSequenceNumber(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java new file mode 100644 index 000000000..2e384dcce --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java @@ -0,0 +1,2116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/publisher.proto + +package com.google.cloud.pubsublite.proto; + +/** + *
+ * Response to a MessagePublishRequest.
+ * 
+ * + * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse} + */ +public final class MessagePublishResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishResponse) + MessagePublishResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MessagePublishResponse.newBuilder() to construct. + private MessagePublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MessagePublishResponse() { + cursorRanges_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MessagePublishResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.pubsublite.proto.MessagePublishResponse.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); + } + + public interface CursorRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The cursor of the message at the start index. The cursors for remaining
+     * messages up to the end index (exclusive) are sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return Whether the startCursor field is set. + */ + boolean hasStartCursor(); + /** + *
+     * The cursor of the message at the start index. The cursors for remaining
+     * messages up to the end index (exclusive) are sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return The startCursor. + */ + com.google.cloud.pubsublite.proto.Cursor getStartCursor(); + /** + *
+     * The cursor of the message at the start index. The cursors for remaining
+     * messages up to the end index (exclusive) are sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder(); + + /** + *
+     * Index of the message in the published batch that corresponds to the
+     * start cursor. Inclusive.
+     * 
+ * + * int32 start_index = 2; + * @return The startIndex. + */ + int getStartIndex(); + + /** + *
+     * Index of the last message in this range. Exclusive.
+     * 
+ * + * int32 end_index = 3; + * @return The endIndex. + */ + int getEndIndex(); + } + /** + *
+   * Cursors for a subrange of published messages.
+   * 
+ * + * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange} + */ + public static final class CursorRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) + CursorRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CursorRange.newBuilder() to construct. + private CursorRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CursorRange() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CursorRange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); + } + + public static final int START_CURSOR_FIELD_NUMBER = 1; + private com.google.cloud.pubsublite.proto.Cursor startCursor_; + /** + *
+     * The cursor of the message at the start index. The cursors for remaining
+     * messages up to the end index (exclusive) are sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return Whether the startCursor field is set. + */ + @java.lang.Override + public boolean hasStartCursor() { + return startCursor_ != null; + } + /** + *
+     * The cursor of the message at the start index. The cursors for remaining
+     * messages up to the end index (exclusive) are sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return The startCursor. + */ + @java.lang.Override + public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + } + /** + *
+     * The cursor of the message at the start index. The cursors for remaining
+     * messages up to the end index (exclusive) are sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + @java.lang.Override + public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() { + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + } + + public static final int START_INDEX_FIELD_NUMBER = 2; + private int startIndex_ = 0; + /** + *
+     * Index of the message in the published batch that corresponds to the
+     * start cursor. Inclusive.
+     * 
+ * + * int32 start_index = 2; + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 3; + private int endIndex_ = 0; + /** + *
+     * Index of the last message in this range. Exclusive.
+     * 
+ * + * int32 end_index = 3; + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (startCursor_ != null) { + output.writeMessage(1, getStartCursor()); + } + if (startIndex_ != 0) { + output.writeInt32(2, startIndex_); + } + if (endIndex_ != 0) { + output.writeInt32(3, endIndex_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startCursor_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartCursor()); + } + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, startIndex_); + } + if (endIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, endIndex_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange)) { + return super.equals(obj); + } + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other = (com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) obj; + + if (hasStartCursor() != other.hasStartCursor()) return false; + if (hasStartCursor()) { + if (!getStartCursor() + .equals(other.getStartCursor())) return false; + } + if (getStartIndex() + != other.getStartIndex()) return false; + if (getEndIndex() + != other.getEndIndex()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartCursor()) { + hash = (37 * hash) + START_CURSOR_FIELD_NUMBER; + hash = (53 * hash) + getStartCursor().hashCode(); + } + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Cursors for a subrange of published messages.
+     * 
+ * + * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); + } + + // Construct using com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startCursor_ = null; + if (startCursorBuilder_ != null) { + startCursorBuilder_.dispose(); + startCursorBuilder_ = null; + } + startIndex_ = 0; + endIndex_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstanceForType() { + return com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange build() { + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange buildPartial() { + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = new com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startCursor_ = startCursorBuilder_ == null + ? startCursor_ + : startCursorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startIndex_ = startIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endIndex_ = endIndex_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) { + return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other) { + if (other == com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance()) return this; + if (other.hasStartCursor()) { + mergeStartCursor(other.getStartCursor()); + } + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getStartCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.pubsublite.proto.Cursor startCursor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> startCursorBuilder_; + /** + *
+       * The cursor of the message at the start index. The cursors for remaining
+       * messages up to the end index (exclusive) are sequential.
+       * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return Whether the startCursor field is set. + */ + public boolean hasStartCursor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * The cursor of the message at the start index. The cursors for remaining
+       * messages up to the end index (exclusive) are sequential.
+       * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return The startCursor. + */ + public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { + if (startCursorBuilder_ == null) { + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + } else { + return startCursorBuilder_.getMessage(); + } + } + /** + *
+       * The cursor of the message at the start index. The cursors for remaining
+       * messages up to the end index (exclusive) are sequential.
+       * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { + if (startCursorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startCursor_ = value; + } else { + startCursorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The cursor of the message at the start index. The cursors for remaining
+       * messages up to the end index (exclusive) are sequential.
+       * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public Builder setStartCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + if (startCursorBuilder_ == null) { + startCursor_ = builderForValue.build(); + } else { + startCursorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The cursor of the message at the start index. The cursors for remaining
+       * messages up to the end index (exclusive) are sequential.
+       * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { + if (startCursorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + startCursor_ != null && + startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + getStartCursorBuilder().mergeFrom(value); + } else { + startCursor_ = value; + } + } else { + startCursorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The cursor of the message at the start index. The cursors for remaining
+       * messages up to the end index (exclusive) are sequential.
+       * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public Builder clearStartCursor() { + bitField0_ = (bitField0_ & ~0x00000001); + startCursor_ = null; + if (startCursorBuilder_ != null) { + startCursorBuilder_.dispose(); + startCursorBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The cursor of the message at the start index. The cursors for remaining
+       * messages up to the end index (exclusive) are sequential.
+       * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartCursorFieldBuilder().getBuilder(); + } + /** + *
+       * The cursor of the message at the start index. The cursors for remaining
+       * messages up to the end index (exclusive) are sequential.
+       * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() { + if (startCursorBuilder_ != null) { + return startCursorBuilder_.getMessageOrBuilder(); + } else { + return startCursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + } + } + /** + *
+       * The cursor of the message at the start index. The cursors for remaining
+       * messages up to the end index (exclusive) are sequential.
+       * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + getStartCursorFieldBuilder() { + if (startCursorBuilder_ == null) { + startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getStartCursor(), + getParentForChildren(), + isClean()); + startCursor_ = null; + } + return startCursorBuilder_; + } + + private int startIndex_ ; + /** + *
+       * Index of the message in the published batch that corresponds to the
+       * start cursor. Inclusive.
+       * 
+ * + * int32 start_index = 2; + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + /** + *
+       * Index of the message in the published batch that corresponds to the
+       * start cursor. Inclusive.
+       * 
+ * + * int32 start_index = 2; + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Index of the message in the published batch that corresponds to the
+       * start cursor. Inclusive.
+       * 
+ * + * int32 start_index = 2; + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_ ; + /** + *
+       * Index of the last message in this range. Exclusive.
+       * 
+ * + * int32 end_index = 3; + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + /** + *
+       * Index of the last message in this range. Exclusive.
+       * 
+ * + * int32 end_index = 3; + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Index of the last message in this range. Exclusive.
+       * 
+ * + * int32 end_index = 3; + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000004); + endIndex_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) + private static final com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange(); + } + + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CursorRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int START_CURSOR_FIELD_NUMBER = 1; + private com.google.cloud.pubsublite.proto.Cursor startCursor_; + /** + *
+   * The cursor of the first published message in the batch. The cursors for any
+   * remaining messages in the batch are guaranteed to be sequential.
+   * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return Whether the startCursor field is set. + */ + @java.lang.Override + public boolean hasStartCursor() { + return startCursor_ != null; + } + /** + *
+   * The cursor of the first published message in the batch. The cursors for any
+   * remaining messages in the batch are guaranteed to be sequential.
+   * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return The startCursor. + */ + @java.lang.Override + public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + } + /** + *
+   * The cursor of the first published message in the batch. The cursors for any
+   * remaining messages in the batch are guaranteed to be sequential.
+   * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + @java.lang.Override + public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() { + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + } + + public static final int CURSOR_RANGES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List cursorRanges_; + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + @java.lang.Override + public java.util.List getCursorRangesList() { + return cursorRanges_; + } + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + @java.lang.Override + public java.util.List + getCursorRangesOrBuilderList() { + return cursorRanges_; + } + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + @java.lang.Override + public int getCursorRangesCount() { + return cursorRanges_.size(); + } + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges(int index) { + return cursorRanges_.get(index); + } + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder( + int index) { + return cursorRanges_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (startCursor_ != null) { + output.writeMessage(1, getStartCursor()); + } + for (int i = 0; i < cursorRanges_.size(); i++) { + output.writeMessage(2, cursorRanges_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startCursor_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartCursor()); + } + for (int i = 0; i < cursorRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, cursorRanges_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse)) { + return super.equals(obj); + } + com.google.cloud.pubsublite.proto.MessagePublishResponse other = (com.google.cloud.pubsublite.proto.MessagePublishResponse) obj; + + if (hasStartCursor() != other.hasStartCursor()) return false; + if (hasStartCursor()) { + if (!getStartCursor() + .equals(other.getStartCursor())) return false; + } + if (!getCursorRangesList() + .equals(other.getCursorRangesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartCursor()) { + hash = (37 * hash) + START_CURSOR_FIELD_NUMBER; + hash = (53 * hash) + getStartCursor().hashCode(); + } + if (getCursorRangesCount() > 0) { + hash = (37 * hash) + CURSOR_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getCursorRangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.pubsublite.proto.MessagePublishResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response to a MessagePublishRequest.
+   * 
+ * + * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.MessagePublishResponse) + com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.pubsublite.proto.MessagePublishResponse.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); + } + + // Construct using com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startCursor_ = null; + if (startCursorBuilder_ != null) { + startCursorBuilder_.dispose(); + startCursorBuilder_ = null; + } + if (cursorRangesBuilder_ == null) { + cursorRanges_ = java.util.Collections.emptyList(); + } else { + cursorRanges_ = null; + cursorRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaultInstanceForType() { + return com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse build() { + com.google.cloud.pubsublite.proto.MessagePublishResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse buildPartial() { + com.google.cloud.pubsublite.proto.MessagePublishResponse result = new com.google.cloud.pubsublite.proto.MessagePublishResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.MessagePublishResponse result) { + if (cursorRangesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + cursorRanges_ = java.util.Collections.unmodifiableList(cursorRanges_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cursorRanges_ = cursorRanges_; + } else { + result.cursorRanges_ = cursorRangesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startCursor_ = startCursorBuilder_ == null + ? startCursor_ + : startCursorBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse) { + return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishResponse other) { + if (other == com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) return this; + if (other.hasStartCursor()) { + mergeStartCursor(other.getStartCursor()); + } + if (cursorRangesBuilder_ == null) { + if (!other.cursorRanges_.isEmpty()) { + if (cursorRanges_.isEmpty()) { + cursorRanges_ = other.cursorRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCursorRangesIsMutable(); + cursorRanges_.addAll(other.cursorRanges_); + } + onChanged(); + } + } else { + if (!other.cursorRanges_.isEmpty()) { + if (cursorRangesBuilder_.isEmpty()) { + cursorRangesBuilder_.dispose(); + cursorRangesBuilder_ = null; + cursorRanges_ = other.cursorRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + cursorRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCursorRangesFieldBuilder() : null; + } else { + cursorRangesBuilder_.addAllMessages(other.cursorRanges_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getStartCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange m = + input.readMessage( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.parser(), + extensionRegistry); + if (cursorRangesBuilder_ == null) { + ensureCursorRangesIsMutable(); + cursorRanges_.add(m); + } else { + cursorRangesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.pubsublite.proto.Cursor startCursor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> startCursorBuilder_; + /** + *
+     * The cursor of the first published message in the batch. The cursors for any
+     * remaining messages in the batch are guaranteed to be sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return Whether the startCursor field is set. + */ + public boolean hasStartCursor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The cursor of the first published message in the batch. The cursors for any
+     * remaining messages in the batch are guaranteed to be sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return The startCursor. + */ + public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { + if (startCursorBuilder_ == null) { + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + } else { + return startCursorBuilder_.getMessage(); + } + } + /** + *
+     * The cursor of the first published message in the batch. The cursors for any
+     * remaining messages in the batch are guaranteed to be sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { + if (startCursorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startCursor_ = value; + } else { + startCursorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The cursor of the first published message in the batch. The cursors for any
+     * remaining messages in the batch are guaranteed to be sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public Builder setStartCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + if (startCursorBuilder_ == null) { + startCursor_ = builderForValue.build(); + } else { + startCursorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The cursor of the first published message in the batch. The cursors for any
+     * remaining messages in the batch are guaranteed to be sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { + if (startCursorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + startCursor_ != null && + startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + getStartCursorBuilder().mergeFrom(value); + } else { + startCursor_ = value; + } + } else { + startCursorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The cursor of the first published message in the batch. The cursors for any
+     * remaining messages in the batch are guaranteed to be sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public Builder clearStartCursor() { + bitField0_ = (bitField0_ & ~0x00000001); + startCursor_ = null; + if (startCursorBuilder_ != null) { + startCursorBuilder_.dispose(); + startCursorBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The cursor of the first published message in the batch. The cursors for any
+     * remaining messages in the batch are guaranteed to be sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartCursorFieldBuilder().getBuilder(); + } + /** + *
+     * The cursor of the first published message in the batch. The cursors for any
+     * remaining messages in the batch are guaranteed to be sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() { + if (startCursorBuilder_ != null) { + return startCursorBuilder_.getMessageOrBuilder(); + } else { + return startCursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + } + } + /** + *
+     * The cursor of the first published message in the batch. The cursors for any
+     * remaining messages in the batch are guaranteed to be sequential.
+     * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + getStartCursorFieldBuilder() { + if (startCursorBuilder_ == null) { + startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getStartCursor(), + getParentForChildren(), + isClean()); + startCursor_ = null; + } + return startCursorBuilder_; + } + + private java.util.List cursorRanges_ = + java.util.Collections.emptyList(); + private void ensureCursorRangesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + cursorRanges_ = new java.util.ArrayList(cursorRanges_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> cursorRangesBuilder_; + + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public java.util.List getCursorRangesList() { + if (cursorRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(cursorRanges_); + } else { + return cursorRangesBuilder_.getMessageList(); + } + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public int getCursorRangesCount() { + if (cursorRangesBuilder_ == null) { + return cursorRanges_.size(); + } else { + return cursorRangesBuilder_.getCount(); + } + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges(int index) { + if (cursorRangesBuilder_ == null) { + return cursorRanges_.get(index); + } else { + return cursorRangesBuilder_.getMessage(index); + } + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public Builder setCursorRanges( + int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { + if (cursorRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCursorRangesIsMutable(); + cursorRanges_.set(index, value); + onChanged(); + } else { + cursorRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public Builder setCursorRanges( + int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder builderForValue) { + if (cursorRangesBuilder_ == null) { + ensureCursorRangesIsMutable(); + cursorRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + cursorRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public Builder addCursorRanges(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { + if (cursorRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCursorRangesIsMutable(); + cursorRanges_.add(value); + onChanged(); + } else { + cursorRangesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public Builder addCursorRanges( + int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { + if (cursorRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCursorRangesIsMutable(); + cursorRanges_.add(index, value); + onChanged(); + } else { + cursorRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public Builder addCursorRanges( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder builderForValue) { + if (cursorRangesBuilder_ == null) { + ensureCursorRangesIsMutable(); + cursorRanges_.add(builderForValue.build()); + onChanged(); + } else { + cursorRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public Builder addCursorRanges( + int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder builderForValue) { + if (cursorRangesBuilder_ == null) { + ensureCursorRangesIsMutable(); + cursorRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + cursorRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public Builder addAllCursorRanges( + java.lang.Iterable values) { + if (cursorRangesBuilder_ == null) { + ensureCursorRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cursorRanges_); + onChanged(); + } else { + cursorRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public Builder clearCursorRanges() { + if (cursorRangesBuilder_ == null) { + cursorRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + cursorRangesBuilder_.clear(); + } + return this; + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public Builder removeCursorRanges(int index) { + if (cursorRangesBuilder_ == null) { + ensureCursorRangesIsMutable(); + cursorRanges_.remove(index); + onChanged(); + } else { + cursorRangesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder getCursorRangesBuilder( + int index) { + return getCursorRangesFieldBuilder().getBuilder(index); + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder( + int index) { + if (cursorRangesBuilder_ == null) { + return cursorRanges_.get(index); } else { + return cursorRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public java.util.List + getCursorRangesOrBuilderList() { + if (cursorRangesBuilder_ != null) { + return cursorRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cursorRanges_); + } + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder() { + return getCursorRangesFieldBuilder().addBuilder( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance()); + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder( + int index) { + return getCursorRangesFieldBuilder().addBuilder( + index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance()); + } + /** + *
+     * Cursors for messages published in the batch. There will exist multiple
+     * ranges when cursors are not contiguous within the batch.
+     * The cursor ranges may not account for all messages in the batch when
+     * publish idempotency is enabled. A missing range indicates that cursors
+     * could not be determined for messages within the range, as they were
+     * deduplicated and the necessary data was not available at publish time.
+     * These messages will have offsets when received by a subscriber.
+     * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + public java.util.List + getCursorRangesBuilderList() { + return getCursorRangesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> + getCursorRangesFieldBuilder() { + if (cursorRangesBuilder_ == null) { + cursorRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>( + cursorRanges_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + cursorRanges_ = null; + } + return cursorRangesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishResponse) + private static final com.google.cloud.pubsublite.proto.MessagePublishResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishResponse(); + } + + public static com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessagePublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java new file mode 100644 index 000000000..18832ecf1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/publisher.proto + +package com.google.cloud.pubsublite.proto; + +public interface MessagePublishResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The cursor of the first published message in the batch. The cursors for any
+   * remaining messages in the batch are guaranteed to be sequential.
+   * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return Whether the startCursor field is set. + */ + boolean hasStartCursor(); + /** + *
+   * The cursor of the first published message in the batch. The cursors for any
+   * remaining messages in the batch are guaranteed to be sequential.
+   * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * @return The startCursor. + */ + com.google.cloud.pubsublite.proto.Cursor getStartCursor(); + /** + *
+   * The cursor of the first published message in the batch. The cursors for any
+   * remaining messages in the batch are guaranteed to be sequential.
+   * 
+ * + * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + */ + com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder(); + + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + java.util.List + getCursorRangesList(); + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges(int index); + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + int getCursorRangesCount(); + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + java.util.List + getCursorRangesOrBuilderList(); + /** + *
+   * Cursors for messages published in the batch. There will exist multiple
+   * ranges when cursors are not contiguous within the batch.
+   * The cursor ranges may not account for all messages in the batch when
+   * publish idempotency is enabled. A missing range indicates that cursors
+   * could not be determined for messages within the range, as they were
+   * deduplicated and the necessary data was not available at publish time.
+   * These messages will have offsets when received by a subscriber.
+   * 
+ * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + */ + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder( + int index); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java index 1b59d4b66..a4d433726 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response containing a list of messages. Upon delivering a MessageResponse to
  * the client, the server:
@@ -32,53 +15,48 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.MessageResponse}
  */
-public final class MessageResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MessageResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessageResponse)
     MessageResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MessageResponse.newBuilder() to construct.
   private MessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MessageResponse() {
     messages_ = 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 MessageResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.MessageResponse.class,
-            com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
+            com.google.cloud.pubsublite.proto.MessageResponse.class, com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
   }
 
   public static final int MESSAGES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List messages_;
   /**
-   *
-   *
    * 
    * Messages from the topic partition.
    * 
@@ -90,8 +68,6 @@ public java.util.List getMes return messages_; } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -99,13 +75,11 @@ public java.util.List getMes * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -117,8 +91,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -130,8 +102,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) return messages_.get(index); } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -145,7 +115,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,7 +126,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 < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } @@ -171,7 +141,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, messages_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,15 +152,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.cloud.pubsublite.proto.MessageResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessageResponse other = - (com.google.cloud.pubsublite.proto.MessageResponse) obj; + com.google.cloud.pubsublite.proto.MessageResponse other = (com.google.cloud.pubsublite.proto.MessageResponse) obj; - if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -211,103 +182,96 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse 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 containing a list of messages. Upon delivering a MessageResponse to
    * the client, the server:
@@ -319,32 +283,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.MessageResponse}
    */
-  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.cloud.pubsublite.v1.MessageResponse)
       com.google.cloud.pubsublite.proto.MessageResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.MessageResponse.class,
-              com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
+              com.google.cloud.pubsublite.proto.MessageResponse.class, com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.MessageResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -360,9 +325,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
     }
 
     @java.lang.Override
@@ -381,18 +346,14 @@ public com.google.cloud.pubsublite.proto.MessageResponse build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.MessageResponse buildPartial() {
-      com.google.cloud.pubsublite.proto.MessageResponse result =
-          new com.google.cloud.pubsublite.proto.MessageResponse(this);
+      com.google.cloud.pubsublite.proto.MessageResponse result = new com.google.cloud.pubsublite.proto.MessageResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.pubsublite.proto.MessageResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.MessageResponse result) {
       if (messagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           messages_ = java.util.Collections.unmodifiableList(messages_);
@@ -412,39 +373,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessageResponse res
     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.cloud.pubsublite.proto.MessageResponse) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.MessageResponse) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.MessageResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -452,8 +412,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessageResponse other) {
-      if (other == com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance()) return this;
       if (messagesBuilder_ == null) {
         if (!other.messages_.isEmpty()) {
           if (messages_.isEmpty()) {
@@ -472,10 +431,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessageResponse 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_);
           }
@@ -507,27 +465,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.pubsublite.proto.SequencedMessage m =
-                    input.readMessage(
-                        com.google.cloud.pubsublite.proto.SequencedMessage.parser(),
-                        extensionRegistry);
-                if (messagesBuilder_ == null) {
-                  ensureMessagesIsMutable();
-                  messages_.add(m);
-                } else {
-                  messagesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.pubsublite.proto.SequencedMessage m =
+                  input.readMessage(
+                      com.google.cloud.pubsublite.proto.SequencedMessage.parser(),
+                      extensionRegistry);
+              if (messagesBuilder_ == null) {
+                ensureMessagesIsMutable();
+                messages_.add(m);
+              } else {
+                messagesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -537,29 +493,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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_);
+        messages_ = new java.util.ArrayList(messages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.SequencedMessage,
-            com.google.cloud.pubsublite.proto.SequencedMessage.Builder,
-            com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder>
-        messagesBuilder_;
+        com.google.cloud.pubsublite.proto.SequencedMessage, com.google.cloud.pubsublite.proto.SequencedMessage.Builder, com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> messagesBuilder_;
 
     /**
-     *
-     *
      * 
      * Messages from the topic partition.
      * 
@@ -574,8 +522,6 @@ public java.util.List getMes } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -590,8 +536,6 @@ public int getMessagesCount() { } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -606,8 +550,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -629,8 +571,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -649,8 +589,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -671,8 +609,6 @@ public Builder addMessages(com.google.cloud.pubsublite.proto.SequencedMessage va return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -694,8 +630,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -714,8 +648,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -734,8 +666,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -746,7 +676,8 @@ 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); @@ -754,8 +685,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -773,8 +702,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -792,8 +719,6 @@ public Builder removeMessages(int index) { return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -805,8 +730,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder getMessagesBui return getMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -816,22 +739,19 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder getMessagesBui public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { - return messages_.get(index); - } else { + return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Messages from the topic partition.
      * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -839,8 +759,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -848,12 +766,10 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder() - .addBuilder(com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -862,43 +778,37 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder addMessagesBui */ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder addMessagesBuilder( int index) { - return getMessagesFieldBuilder() - .addBuilder( - index, com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + index, com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); } /** - * - * *
      * Messages from the topic partition.
      * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedMessage, - com.google.cloud.pubsublite.proto.SequencedMessage.Builder, - com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> + com.google.cloud.pubsublite.proto.SequencedMessage, com.google.cloud.pubsublite.proto.SequencedMessage.Builder, com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedMessage, - com.google.cloud.pubsublite.proto.SequencedMessage.Builder, - com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.SequencedMessage, com.google.cloud.pubsublite.proto.SequencedMessage.Builder, com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder>( + 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); } @@ -908,12 +818,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessageResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessageResponse) private static final com.google.cloud.pubsublite.proto.MessageResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessageResponse(); } @@ -922,27 +832,27 @@ public static com.google.cloud.pubsublite.proto.MessageResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.MessageResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java index da9f18511..b1bc909ff 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface MessageResponseOrBuilder - extends +public interface MessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessageResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Messages from the topic partition.
    * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - java.util.List getMessagesList(); + java.util.List + getMessagesList(); /** - * - * *
    * Messages from the topic partition.
    * 
@@ -44,8 +25,6 @@ public interface MessageResponseOrBuilder */ com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index); /** - * - * *
    * Messages from the topic partition.
    * 
@@ -54,24 +33,21 @@ public interface MessageResponseOrBuilder */ int getMessagesCount(); /** - * - * *
    * Messages from the topic partition.
    * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** - * - * *
    * Messages from the topic partition.
    * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOrBuilder(int index); + com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOrBuilder( + int index); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java index 6ec82f03e..b4b477272 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Metadata for long running operations.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -44,41 +26,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.OperationMetadata.class, - com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); + com.google.cloud.pubsublite.proto.OperationMetadata.class, com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -86,14 +64,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -101,8 +76,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
@@ -117,15 +90,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -133,15 +103,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -149,8 +116,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
@@ -164,12 +129,9 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int TARGET_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object target_ = "";
   /**
-   *
-   *
    * 
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -177,7 +139,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string target = 3; - * * @return The target. */ @java.lang.Override @@ -186,15 +147,14 @@ public java.lang.String getTarget() { 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(); target_ = s; return s; } } /** - * - * *
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -202,15 +162,16 @@ public java.lang.String getTarget() {
    * 
* * string target = 3; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object 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); target_ = b; return b; } else { @@ -219,18 +180,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ @java.lang.Override @@ -239,29 +196,29 @@ public java.lang.String getVerb() { 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(); verb_ = s; return s; } } /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; 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); verb_ = b; return b; } else { @@ -270,7 +227,6 @@ public com.google.protobuf.ByteString getVerbBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,7 +238,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -305,10 +262,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -324,24 +283,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.cloud.pubsublite.proto.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.OperationMetadata other = - (com.google.cloud.pubsublite.proto.OperationMetadata) obj; + com.google.cloud.pubsublite.proto.OperationMetadata other = (com.google.cloud.pubsublite.proto.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -371,135 +333,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata 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; } /** - * - * *
    * Metadata for long running operations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.OperationMetadata} */ - 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.cloud.pubsublite.v1.OperationMetadata) com.google.cloud.pubsublite.proto.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.OperationMetadata.class, - com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); + com.google.cloud.pubsublite.proto.OperationMetadata.class, com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -541,11 +497,8 @@ public com.google.cloud.pubsublite.proto.OperationMetadata build() { @java.lang.Override public com.google.cloud.pubsublite.proto.OperationMetadata buildPartial() { - com.google.cloud.pubsublite.proto.OperationMetadata result = - new com.google.cloud.pubsublite.proto.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.OperationMetadata result = new com.google.cloud.pubsublite.proto.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -553,10 +506,14 @@ public com.google.cloud.pubsublite.proto.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.pubsublite.proto.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -570,39 +527,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.OperationMetadata r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.OperationMetadata) { - return mergeFrom((com.google.cloud.pubsublite.proto.OperationMetadata) other); + return mergeFrom((com.google.cloud.pubsublite.proto.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -610,8 +566,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.OperationMetadata other) { - if (other == com.google.cloud.pubsublite.proto.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -654,37 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -694,52 +648,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was created.
      * 
@@ -760,15 +700,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -779,8 +718,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -789,9 +726,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -804,8 +741,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -823,8 +758,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -837,8 +770,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
@@ -849,14 +780,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time the operation was created.
      * 
@@ -864,17 +792,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -882,35 +807,26 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -921,8 +837,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -944,8 +858,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -953,7 +865,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 2;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -964,8 +877,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -975,9 +886,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -990,8 +901,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -1010,8 +919,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -1025,8 +932,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -1038,12 +943,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -1052,17 +956,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_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> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1070,8 +971,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object target_ = "";
     /**
-     *
-     *
      * 
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1079,13 +978,13 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * string target = 3; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object 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(); target_ = s; return s; @@ -1094,8 +993,6 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1103,14 +1000,15 @@ public java.lang.String getTarget() {
      * 
* * string target = 3; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object 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); target_ = b; return b; } else { @@ -1118,8 +1016,6 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1127,22 +1023,18 @@ public com.google.protobuf.ByteString getTargetBytes() {
      * 
* * string target = 3; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1150,7 +1042,6 @@ public Builder setTarget(java.lang.String value) {
      * 
* * string target = 3; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1160,8 +1051,6 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1169,14 +1058,12 @@ public Builder clearTarget() {
      * 
* * string target = 3; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1186,20 +1073,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; 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(); verb_ = s; return s; @@ -1208,21 +1093,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; 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); verb_ = b; return b; } else { @@ -1230,35 +1114,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1268,30 +1145,26 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1301,12 +1174,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.OperationMetadata) private static final com.google.cloud.pubsublite.proto.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.OperationMetadata(); } @@ -1315,27 +1188,27 @@ public static com.google.cloud.pubsublite.proto.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1350,4 +1223,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java index c69d56414..400773e16 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
@@ -59,34 +35,26 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
@@ -97,8 +65,6 @@ public interface OperationMetadataOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -106,13 +72,10 @@ public interface OperationMetadataOrBuilder
    * 
* * string target = 3; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -120,33 +83,28 @@ public interface OperationMetadataOrBuilder
    * 
* * string target = 3; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java index 8aada8e94..cf9686ada 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * PartitionAssignments should not race with acknowledgements. There
  * should be exactly one unacknowledged PartitionAssignment at a time. If not,
@@ -29,99 +12,86 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignment}
  */
-public final class PartitionAssignment extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PartitionAssignment extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionAssignment)
     PartitionAssignmentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PartitionAssignment.newBuilder() to construct.
   private PartitionAssignment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PartitionAssignment() {
     partitions_ = emptyLongList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PartitionAssignment();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.PartitionAssignment.class,
-            com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
+            com.google.cloud.pubsublite.proto.PartitionAssignment.class, com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
   }
 
   public static final int PARTITIONS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.Internal.LongList partitions_;
   /**
-   *
-   *
    * 
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @return A list containing the partitions. */ @java.lang.Override - public java.util.List getPartitionsList() { + public java.util.List + getPartitionsList() { return partitions_; } /** - * - * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @return The count of partitions. */ public int getPartitionsCount() { return partitions_.size(); } /** - * - * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @param index The index of the element to return. * @return The partitions at the given index. */ public long getPartitions(int index) { return partitions_.getLong(index); } - private int partitionsMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +103,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 (getPartitionsList().size() > 0) { output.writeUInt32NoTag(10); @@ -154,13 +125,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < partitions_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(partitions_.getLong(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(partitions_.getLong(i)); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } @@ -172,15 +144,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.cloud.pubsublite.proto.PartitionAssignment)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PartitionAssignment other = - (com.google.cloud.pubsublite.proto.PartitionAssignment) obj; + com.google.cloud.pubsublite.proto.PartitionAssignment other = (com.google.cloud.pubsublite.proto.PartitionAssignment) obj; - if (!getPartitionsList().equals(other.getPartitionsList())) return false; + if (!getPartitionsList() + .equals(other.getPartitionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,104 +174,96 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionAssignment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.PartitionAssignment 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; } /** - * - * *
    * PartitionAssignments should not race with acknowledgements. There
    * should be exactly one unacknowledged PartitionAssignment at a time. If not,
@@ -308,32 +272,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignment}
    */
-  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.cloud.pubsublite.v1.PartitionAssignment)
       com.google.cloud.pubsublite.proto.PartitionAssignmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.PartitionAssignment.class,
-              com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
+              com.google.cloud.pubsublite.proto.PartitionAssignment.class, com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.PartitionAssignment.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,9 +308,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
     }
 
     @java.lang.Override
@@ -364,18 +329,14 @@ public com.google.cloud.pubsublite.proto.PartitionAssignment build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.PartitionAssignment buildPartial() {
-      com.google.cloud.pubsublite.proto.PartitionAssignment result =
-          new com.google.cloud.pubsublite.proto.PartitionAssignment(this);
+      com.google.cloud.pubsublite.proto.PartitionAssignment result = new com.google.cloud.pubsublite.proto.PartitionAssignment(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.pubsublite.proto.PartitionAssignment result) {
+    private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.PartitionAssignment result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         partitions_.makeImmutable();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -391,39 +352,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionAssignment
     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.cloud.pubsublite.proto.PartitionAssignment) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignment) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignment)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -431,8 +391,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionAssignment other) {
-      if (other == com.google.cloud.pubsublite.proto.PartitionAssignment.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.PartitionAssignment.getDefaultInstance()) return this;
       if (!other.partitions_.isEmpty()) {
         if (partitions_.isEmpty()) {
           partitions_ = other.partitions_;
@@ -469,31 +428,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                long v = input.readInt64();
-                ensurePartitionsIsMutable();
-                partitions_.addLong(v);
-                break;
-              } // case 8
-            case 10:
-              {
-                int length = input.readRawVarint32();
-                int limit = input.pushLimit(length);
-                ensurePartitionsIsMutable();
-                while (input.getBytesUntilLimit() > 0) {
-                  partitions_.addLong(input.readInt64());
-                }
-                input.popLimit(limit);
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              long v = input.readInt64();
+              ensurePartitionsIsMutable();
+              partitions_.addLong(v);
+              break;
+            } // case 8
+            case 10: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensurePartitionsIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                partitions_.addLong(input.readInt64());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -503,11 +459,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Internal.LongList partitions_ = emptyLongList();
-
     private void ensurePartitionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         partitions_ = mutableCopy(partitions_);
@@ -515,44 +469,35 @@ private void ensurePartitionsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @return A list containing the partitions. */ - public java.util.List getPartitionsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(partitions_) - : partitions_; + public java.util.List + getPartitionsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(partitions_) : partitions_; } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @return The count of partitions. */ public int getPartitionsCount() { return partitions_.size(); } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @param index The index of the element to return. * @return The partitions at the given index. */ @@ -560,71 +505,62 @@ public long getPartitions(int index) { return partitions_.getLong(index); } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @param index The index to set the value at. * @param value The partitions to set. * @return This builder for chaining. */ - public Builder setPartitions(int index, long value) { - + public Builder setPartitions( + int index, long value) { + ensurePartitionsIsMutable(); partitions_.setLong(index, value); onChanged(); return this; } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @param value The partitions to add. * @return This builder for chaining. */ public Builder addPartitions(long value) { - + ensurePartitionsIsMutable(); partitions_.addLong(value); onChanged(); return this; } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @param values The partitions to add. * @return This builder for chaining. */ - public Builder addAllPartitions(java.lang.Iterable values) { + public Builder addAllPartitions( + java.lang.Iterable values) { ensurePartitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partitions_); onChanged(); return this; } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @return This builder for chaining. */ public Builder clearPartitions() { @@ -633,9 +569,9 @@ public Builder clearPartitions() { 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); } @@ -645,12 +581,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionAssignment) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionAssignment) private static final com.google.cloud.pubsublite.proto.PartitionAssignment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionAssignment(); } @@ -659,27 +595,27 @@ public static com.google.cloud.pubsublite.proto.PartitionAssignment getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionAssignment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionAssignment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -694,4 +630,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PartitionAssignment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java index 467f1bb76..0e3a5afe6 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Acknowledge receipt and handling of the previous assignment.
  * If not sent within a short period after receiving the assignment,
@@ -31,46 +14,44 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentAck}
  */
-public final class PartitionAssignmentAck extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PartitionAssignmentAck extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionAssignmentAck)
     PartitionAssignmentAckOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PartitionAssignmentAck.newBuilder() to construct.
   private PartitionAssignmentAck(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private PartitionAssignmentAck() {}
+  private PartitionAssignmentAck() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PartitionAssignmentAck();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class,
-            com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
+            com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -82,7 +63,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -100,13 +82,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.cloud.pubsublite.proto.PartitionAssignmentAck)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.PartitionAssignmentAck other =
-        (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) obj;
+    com.google.cloud.pubsublite.proto.PartitionAssignmentAck other = (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -125,104 +106,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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;
   }
   /**
-   *
-   *
    * 
    * Acknowledge receipt and handling of the previous assignment.
    * If not sent within a short period after receiving the assignment,
@@ -233,32 +206,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentAck}
    */
-  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.cloud.pubsublite.v1.PartitionAssignmentAck)
       com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class,
-              com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
+              com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.PartitionAssignmentAck.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -266,9 +240,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
     }
 
     @java.lang.Override
@@ -287,8 +261,7 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.PartitionAssignmentAck buildPartial() {
-      com.google.cloud.pubsublite.proto.PartitionAssignmentAck result =
-          new com.google.cloud.pubsublite.proto.PartitionAssignmentAck(this);
+      com.google.cloud.pubsublite.proto.PartitionAssignmentAck result = new com.google.cloud.pubsublite.proto.PartitionAssignmentAck(this);
       onBuilt();
       return result;
     }
@@ -297,39 +270,38 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentAck) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentAck)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -337,8 +309,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionAssignmentAck other) {
-      if (other == com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -365,13 +336,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -381,9 +351,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -393,12 +363,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionAssignmentAck)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionAssignmentAck)
   private static final com.google.cloud.pubsublite.proto.PartitionAssignmentAck DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionAssignmentAck();
   }
@@ -407,27 +377,27 @@ public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public PartitionAssignmentAck parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public PartitionAssignmentAck parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -442,4 +412,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java
new file mode 100644
index 000000000..63b843f1e
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/pubsublite/v1/subscriber.proto
+
+package com.google.cloud.pubsublite.proto;
+
+public interface PartitionAssignmentAckOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignmentAck)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
similarity index 60%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
index 40c55e7a7..3ebbd99e3 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
@@ -1,61 +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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface PartitionAssignmentOrBuilder
-    extends
+public interface PartitionAssignmentOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignment)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @return A list containing the partitions. */ java.util.List getPartitionsList(); /** - * - * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @return The count of partitions. */ int getPartitionsCount(); /** - * - * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @param index The index of the element to return. * @return The partitions at the given index. */ diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java index 47bd3e038..238b1d759 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java @@ -1,82 +1,61 @@ -/* - * 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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * A request on the PartitionAssignment stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentRequest} */ -public final class PartitionAssignmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PartitionAssignmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionAssignmentRequest) PartitionAssignmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PartitionAssignmentRequest.newBuilder() to construct. private PartitionAssignmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PartitionAssignmentRequest() {} + private PartitionAssignmentRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PartitionAssignmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), ACK(2), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -92,36 +71,30 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return ACK; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return ACK; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -129,26 +102,21 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } /** - * - * *
    * Initial request on the stream.
    * 
@@ -156,24 +124,20 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getIn * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } public static final int ACK_FIELD_NUMBER = 2; /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return Whether the ack field is set. */ @java.lang.Override @@ -181,26 +145,21 @@ public boolean hasAck() { return requestCase_ == 2; } /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return The ack. */ @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; + return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; } return com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance(); } /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
@@ -210,13 +169,12 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; + return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; } return com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,10 +186,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 { if (requestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); } if (requestCase_ == 2) { output.writeMessage(2, (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_); @@ -246,14 +204,12 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); } if (requestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,21 +219,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.cloud.pubsublite.proto.PartitionAssignmentRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest other = - (com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) obj; + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest other = (com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getAck().equals(other.getAck())) return false; + if (!getAck() + .equals(other.getAck())) return false; break; case 0: default: @@ -311,136 +268,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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 request on the PartitionAssignment stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentRequest} */ - 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.cloud.pubsublite.v1.PartitionAssignmentRequest) com.google.cloud.pubsublite.proto.PartitionAssignmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -457,14 +407,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance(); } @@ -479,29 +428,26 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest buildPartial() { - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result = - new com.google.cloud.pubsublite.proto.PartitionAssignmentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result = new com.google.cloud.pubsublite.proto.PartitionAssignmentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && initialBuilder_ != null) { + if (requestCase_ == 1 && + initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && ackBuilder_ != null) { + if (requestCase_ == 2 && + ackBuilder_ != null) { result.request_ = ackBuilder_.build(); } } @@ -510,39 +456,38 @@ private void buildPartialOneofs( 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.cloud.pubsublite.proto.PartitionAssignmentRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentRequest)other); } else { super.mergeFrom(other); return this; @@ -550,24 +495,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest other) { - if (other - == com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance()) return this; switch (other.getRequestCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case ACK: - { - mergeAck(other.getAck()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case ACK: { + mergeAck(other.getAck()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -595,25 +535,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getAckFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getAckFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,12 +564,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -641,19 +582,13 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> initialBuilder_; /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -661,14 +596,11 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return The initial. */ @java.lang.Override @@ -677,27 +609,22 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getIn if (requestCase_ == 1) { return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } - return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } else { if (requestCase_ == 1) { return initialBuilder_.getMessage(); } - return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - public Builder setInitial( - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { + public Builder setInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { if (initialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,8 +638,6 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -720,8 +645,7 @@ public Builder setInitial( * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ public Builder setInitial( - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder - builderForValue) { + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder builderForValue) { if (initialBuilder_ == null) { request_ = builderForValue.build(); onChanged(); @@ -732,27 +656,18 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - public Builder mergeInitial( - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { + public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 - && request_ - != com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder( - (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) - request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 1 && + request_ != com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -768,8 +683,6 @@ public Builder mergeInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -793,21 +706,16 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder - getInitialBuilder() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder getInitialBuilder() { return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial request on the stream.
      * 
@@ -815,21 +723,17 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } - return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -837,21 +741,14 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { - request_ = - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_, getParentForChildren(), isClean()); @@ -863,19 +760,13 @@ public Builder clearInitial() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionAssignmentAck, - com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, - com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> - ackBuilder_; + com.google.cloud.pubsublite.proto.PartitionAssignmentAck, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> ackBuilder_; /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return Whether the ack field is set. */ @java.lang.Override @@ -883,14 +774,11 @@ public boolean hasAck() { return requestCase_ == 2; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return The ack. */ @java.lang.Override @@ -908,8 +796,6 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { } } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -930,8 +816,6 @@ public Builder setAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck v return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -950,8 +834,6 @@ public Builder setAck( return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -960,14 +842,10 @@ public Builder setAck( */ public Builder mergeAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck value) { if (ackBuilder_ == null) { - if (requestCase_ == 2 - && request_ - != com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.PartitionAssignmentAck.newBuilder( - (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 2 && + request_ != com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.PartitionAssignmentAck.newBuilder((com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -983,8 +861,6 @@ public Builder mergeAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1008,8 +884,6 @@ public Builder clearAck() { return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1020,8 +894,6 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder getAckBu return getAckFieldBuilder().getBuilder(); } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1040,8 +912,6 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO } } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1049,19 +919,14 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionAssignmentAck, - com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, - com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> + com.google.cloud.pubsublite.proto.PartitionAssignmentAck, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> getAckFieldBuilder() { if (ackBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance(); } - ackBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionAssignmentAck, - com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, - com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder>( + ackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.PartitionAssignmentAck, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder>( (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_, getParentForChildren(), isClean()); @@ -1071,9 +936,9 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO onChanged(); return ackBuilder_; } - @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); } @@ -1083,13 +948,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionAssignmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionAssignmentRequest) - private static final com.google.cloud.pubsublite.proto.PartitionAssignmentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.PartitionAssignmentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionAssignmentRequest(); } @@ -1098,27 +962,27 @@ public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionAssignmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionAssignmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1133,4 +997,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java index 4f194c180..d81b32af9 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java @@ -1,91 +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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface PartitionAssignmentRequestOrBuilder - extends +public interface PartitionAssignmentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignmentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getInitial(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder - getInitialOrBuilder(); + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder(); /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return Whether the ack field is set. */ boolean hasAck(); /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return The ack. */ com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck(); /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java index 2f7bbc43b..ae3168fef 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java @@ -1,81 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * A pair of a Cursor and the partition it is for.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionCursor} */ -public final class PartitionCursor extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PartitionCursor extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionCursor) PartitionCursorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PartitionCursor.newBuilder() to construct. private PartitionCursor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PartitionCursor() {} + private PartitionCursor() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PartitionCursor(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionCursor.class, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); + com.google.cloud.pubsublite.proto.PartitionCursor.class, com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); } public static final int PARTITION_FIELD_NUMBER = 1; private long partition_ = 0L; /** - * - * *
    * The partition this is for.
    * 
* * int64 partition = 1; - * * @return The partition. */ @java.lang.Override @@ -86,14 +65,11 @@ public long getPartition() { public static final int CURSOR_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -101,25 +77,18 @@ public boolean hasCursor() { return cursor_ != null; } /** - * - * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The value of the cursor.
    * 
@@ -128,13 +97,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,7 +112,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 (partition_ != 0L) { output.writeInt64(1, partition_); } @@ -163,10 +130,12 @@ public int getSerializedSize() { size = 0; if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, partition_); } if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,18 +145,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.cloud.pubsublite.proto.PartitionCursor)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PartitionCursor other = - (com.google.cloud.pubsublite.proto.PartitionCursor) obj; + com.google.cloud.pubsublite.proto.PartitionCursor other = (com.google.cloud.pubsublite.proto.PartitionCursor) obj; - if (getPartition() != other.getPartition()) return false; + if (getPartition() + != other.getPartition()) return false; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -201,7 +171,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); @@ -212,135 +183,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionCursor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor 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 pair of a Cursor and the partition it is for.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionCursor} */ - 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.cloud.pubsublite.v1.PartitionCursor) com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionCursor.class, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); + com.google.cloud.pubsublite.proto.PartitionCursor.class, com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PartitionCursor.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; } @java.lang.Override @@ -376,11 +341,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionCursor buildPartial() { - com.google.cloud.pubsublite.proto.PartitionCursor result = - new com.google.cloud.pubsublite.proto.PartitionCursor(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PartitionCursor result = new com.google.cloud.pubsublite.proto.PartitionCursor(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -391,7 +353,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionCursor res result.partition_ = partition_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); } } @@ -399,39 +363,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionCursor res 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.cloud.pubsublite.proto.PartitionCursor) { - return mergeFrom((com.google.cloud.pubsublite.proto.PartitionCursor) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PartitionCursor)other); } else { super.mergeFrom(other); return this; @@ -439,8 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionCursor other) { - if (other == com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()) return this; if (other.getPartition() != 0L) { setPartition(other.getPartition()); } @@ -473,25 +435,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -501,19 +462,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long partition_; + private long partition_ ; /** - * - * *
      * The partition this is for.
      * 
* * int64 partition = 1; - * * @return The partition. */ @java.lang.Override @@ -521,33 +478,27 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition this is for.
      * 
* * int64 partition = 1; - * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The partition this is for.
      * 
* * int64 partition = 1; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -559,47 +510,34 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The value of the cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The value of the cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The value of the cursor.
      * 
@@ -620,15 +558,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The value of the cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -639,8 +576,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The value of the cursor.
      * 
@@ -649,9 +584,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -664,8 +599,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The value of the cursor.
      * 
@@ -683,8 +616,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The value of the cursor.
      * 
@@ -697,8 +628,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The value of the cursor.
      * 
@@ -709,14 +638,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The value of the cursor.
      * 
@@ -724,24 +650,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; } - @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 +674,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionCursor) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionCursor) private static final com.google.cloud.pubsublite.proto.PartitionCursor DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionCursor(); } @@ -765,27 +688,27 @@ public static com.google.cloud.pubsublite.proto.PartitionCursor getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionCursor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionCursor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -800,4 +723,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PartitionCursor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java similarity index 60% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java index 83c779f5e..7213fc7be 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java @@ -1,68 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface PartitionCursorOrBuilder - extends +public interface PartitionCursorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionCursor) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The partition this is for.
    * 
* * int64 partition = 1; - * * @return The partition. */ long getPartition(); /** - * - * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The value of the cursor.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java index 8ab6fb75a..c38f9429a 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * A message that is published by publishers and delivered to subscribers.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { key_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; @@ -44,46 +26,44 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_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 3: 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.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PubSubMessage.class, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); + com.google.cloud.pubsublite.proto.PubSubMessage.class, com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * The key used for routing messages to partitions or for compaction (e.g.,
    * keep the last N messages per key). If the key is empty, the message is
@@ -91,7 +71,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * bytes key = 1; - * * @return The key. */ @java.lang.Override @@ -102,14 +81,11 @@ public com.google.protobuf.ByteString getKey() { public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * The payload of the message.
    * 
* * bytes data = 2; - * * @return The data. */ @java.lang.Override @@ -118,42 +94,32 @@ public com.google.protobuf.ByteString getData() { } public static final int ATTRIBUTES_FIELD_NUMBER = 3; - private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - defaultEntry = + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - attributes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - internalGetAttributes() { + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } - public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -161,22 +127,20 @@ public int getAttributesCount() { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @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() { + public java.util.Map getAttributes() { return getAttributesMap(); } /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -184,13 +148,10 @@ public boolean containsAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public java.util.Map - getAttributesMap() { + public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -198,20 +159,17 @@ public boolean containsAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public /* nullable */ com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( + public /* nullable */ +com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -221,9 +179,7 @@ public boolean containsAttributes(java.lang.String key) { @java.lang.Override public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -235,14 +191,11 @@ public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( public static final int EVENT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -250,14 +203,11 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return The eventTime. */ @java.lang.Override @@ -265,8 +215,6 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * An optional, user-specified event time.
    * 
@@ -279,7 +227,6 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,15 +238,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 (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 3); if (eventTime_ != null) { output.writeMessage(4, getEventTime()); } @@ -313,25 +265,26 @@ public int getSerializedSize() { size = 0; if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, key_); } if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); - } - for (java.util.Map.Entry - entry : internalGetAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - attributes__ = - AttributesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, attributes__); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, 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(3, attributes__); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEventTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -341,20 +294,23 @@ 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.cloud.pubsublite.proto.PubSubMessage)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PubSubMessage other = - (com.google.cloud.pubsublite.proto.PubSubMessage) obj; + com.google.cloud.pubsublite.proto.PubSubMessage other = (com.google.cloud.pubsublite.proto.PubSubMessage) obj; - if (!getKey().equals(other.getKey())) return false; - if (!getData().equals(other.getData())) return false; - if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getData() + .equals(other.getData())) return false; + if (!internalGetAttributes().equals( + other.internalGetAttributes())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime().equals(other.getEventTime())) return false; + if (!getEventTime() + .equals(other.getEventTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -384,156 +340,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PubSubMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PubSubMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PubSubMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PubSubMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 delivered to subscribers.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.PubSubMessage) com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: 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 3: 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.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PubSubMessage.class, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); + com.google.cloud.pubsublite.proto.PubSubMessage.class, com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PubSubMessage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -550,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; } @java.lang.Override @@ -571,11 +523,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessage build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PubSubMessage buildPartial() { - com.google.cloud.pubsublite.proto.PubSubMessage result = - new com.google.cloud.pubsublite.proto.PubSubMessage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PubSubMessage result = new com.google.cloud.pubsublite.proto.PubSubMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -593,7 +542,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PubSubMessage resul result.attributes_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + result.eventTime_ = eventTimeBuilder_ == null + ? eventTime_ + : eventTimeBuilder_.build(); } } @@ -601,39 +552,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PubSubMessage resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.PubSubMessage) { - return mergeFrom((com.google.cloud.pubsublite.proto.PubSubMessage) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PubSubMessage)other); } else { super.mergeFrom(other); return this; @@ -641,15 +591,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PubSubMessage other) { - if (other == com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } - internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); bitField0_ |= 0x00000004; if (other.hasEventTime()) { mergeEventTime(other.getEventTime()); @@ -680,45 +630,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - key_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - data_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - attributes__ = - input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAttributes() - .getMutableMap() - .put(attributes__.getKey(), attributes__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + key_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + data_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAttributes().getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEventTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -728,13 +671,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The key used for routing messages to partitions or for compaction (e.g.,
      * keep the last N messages per key). If the key is empty, the message is
@@ -742,7 +682,6 @@ public Builder mergeFrom(
      * 
* * bytes key = 1; - * * @return The key. */ @java.lang.Override @@ -750,8 +689,6 @@ public com.google.protobuf.ByteString getKey() { return key_; } /** - * - * *
      * The key used for routing messages to partitions or for compaction (e.g.,
      * keep the last N messages per key). If the key is empty, the message is
@@ -759,22 +696,17 @@ public com.google.protobuf.ByteString getKey() {
      * 
* * bytes key = 1; - * * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The key used for routing messages to partitions or for compaction (e.g.,
      * keep the last N messages per key). If the key is empty, the message is
@@ -782,7 +714,6 @@ public Builder setKey(com.google.protobuf.ByteString value) {
      * 
* * bytes key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -794,14 +725,11 @@ public Builder clearKey() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The payload of the message.
      * 
* * bytes data = 2; - * * @return The data. */ @java.lang.Override @@ -809,35 +737,27 @@ public com.google.protobuf.ByteString getData() { return data_; } /** - * - * *
      * The payload of the message.
      * 
* * bytes data = 2; - * * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The payload of the message.
      * 
* * bytes data = 2; - * * @return This builder for chaining. */ public Builder clearData() { @@ -848,11 +768,8 @@ public Builder clearData() { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - attributes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> attributes_; + private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -860,13 +777,11 @@ public Builder clearData() { } return attributes_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> + private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { - attributes_ = - com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); @@ -875,13 +790,10 @@ public Builder clearData() { onChanged(); return attributes_; } - public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -889,22 +801,20 @@ public int getAttributesCount() { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @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() { + public java.util.Map getAttributes() { return getAttributesMap(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -912,13 +822,10 @@ public boolean containsAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public java.util.Map - getAttributesMap() { + public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -926,20 +833,17 @@ public boolean containsAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public /* nullable */ com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( + public /* nullable */ +com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -949,9 +853,7 @@ public boolean containsAttributes(java.lang.String key) { @java.lang.Override public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -959,29 +861,29 @@ public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( } return map.get(key); } - public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableAttributes().getMutableMap().clear(); + internalGetMutableAttributes().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
* * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ - 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() { @@ -989,8 +891,6 @@ public Builder removeAttributes(java.lang.String key) { return internalGetMutableAttributes().getMutableMap(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -998,20 +898,16 @@ public Builder removeAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ public Builder putAttributes( - java.lang.String key, com.google.cloud.pubsublite.proto.AttributeValues value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAttributes().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.pubsublite.proto.AttributeValues value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); bitField0_ |= 0x00000004; return this; } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -1020,40 +916,32 @@ public Builder putAttributes( */ public Builder putAllAttributes( java.util.Map values) { - internalGetMutableAttributes().getMutableMap().putAll(values); + internalGetMutableAttributes().getMutableMap() + .putAll(values); bitField0_ |= 0x00000004; return this; } private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - eventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; /** - * - * *
      * An optional, user-specified event time.
      * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * An optional, user-specified event time.
      * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -1064,8 +952,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1086,15 +972,14 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
* * .google.protobuf.Timestamp event_time = 4; */ - public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEventTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); } else { @@ -1105,8 +990,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1115,9 +998,9 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && eventTime_ != null - && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + eventTime_ != null && + eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEventTimeBuilder().mergeFrom(value); } else { eventTime_ = value; @@ -1130,8 +1013,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1149,8 +1030,6 @@ public Builder clearEventTime() { return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1163,8 +1042,6 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1175,12 +1052,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { - return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + return eventTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1188,24 +1064,21 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * .google.protobuf.Timestamp event_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> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { - eventTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEventTime(), getParentForChildren(), isClean()); + eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEventTime(), + getParentForChildren(), + isClean()); eventTime_ = null; } return eventTimeBuilder_; } - @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); } @@ -1215,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PubSubMessage) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PubSubMessage) private static final com.google.cloud.pubsublite.proto.PubSubMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PubSubMessage(); } @@ -1229,27 +1102,27 @@ public static com.google.cloud.pubsublite.proto.PubSubMessage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSubMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSubMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1264,4 +1137,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PubSubMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java index 266fcac17..598a12c21 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface PubSubMessageOrBuilder - extends +public interface PubSubMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PubSubMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The key used for routing messages to partitions or for compaction (e.g.,
    * keep the last N messages per key). If the key is empty, the message is
@@ -33,27 +15,21 @@ public interface PubSubMessageOrBuilder
    * 
* * bytes key = 1; - * * @return The key. */ com.google.protobuf.ByteString getKey(); /** - * - * *
    * The payload of the message.
    * 
* * bytes data = 2; - * * @return The data. */ com.google.protobuf.ByteString getData(); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -62,22 +38,21 @@ public interface PubSubMessageOrBuilder */ int getAttributesCount(); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
* * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ - 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(); + getAttributes(); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -85,10 +60,8 @@ public interface PubSubMessageOrBuilder * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ java.util.Map - getAttributesMap(); + getAttributesMap(); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -96,48 +69,39 @@ public interface PubSubMessageOrBuilder * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ /* nullable */ - com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( +com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.pubsublite.proto.AttributeValues defaultValue); +com.google.cloud.pubsublite.proto.AttributeValues defaultValue); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
* * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ - com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow(java.lang.String key); + com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( + java.lang.String key); /** - * - * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * An optional, user-specified event time.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java index d39b63535..279079608 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java @@ -1,82 +1,61 @@ -/* - * 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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request sent from the client to the server on a stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() {} + 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishRequest.class, - com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.PublishRequest.class, com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); } private int requestTypeCase_ = 0; private java.lang.Object requestType_; - public enum RequestTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL_REQUEST(1), MESSAGE_PUBLISH_REQUEST(2), REQUESTTYPE_NOT_SET(0); private final int value; - private RequestTypeCase(int value) { this.value = value; } @@ -92,36 +71,30 @@ public static RequestTypeCase valueOf(int value) { public static RequestTypeCase forNumber(int value) { switch (value) { - case 1: - return INITIAL_REQUEST; - case 2: - return MESSAGE_PUBLISH_REQUEST; - case 0: - return REQUESTTYPE_NOT_SET; - default: - return null; + case 1: return INITIAL_REQUEST; + case 2: return MESSAGE_PUBLISH_REQUEST; + case 0: return REQUESTTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestTypeCase getRequestTypeCase() { - return RequestTypeCase.forNumber(requestTypeCase_); + public RequestTypeCase + getRequestTypeCase() { + return RequestTypeCase.forNumber( + requestTypeCase_); } public static final int INITIAL_REQUEST_FIELD_NUMBER = 1; /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return Whether the initialRequest field is set. */ @java.lang.Override @@ -129,26 +102,21 @@ public boolean hasInitialRequest() { return requestTypeCase_ == 1; } /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return The initialRequest. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest() { if (requestTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); } /** - * - * *
    * Initial request on the stream.
    * 
@@ -156,24 +124,20 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder - getInitialRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getInitialRequestOrBuilder() { if (requestTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); } public static final int MESSAGE_PUBLISH_REQUEST_FIELD_NUMBER = 2; /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return Whether the messagePublishRequest field is set. */ @java.lang.Override @@ -181,26 +145,21 @@ public boolean hasMessagePublishRequest() { return requestTypeCase_ == 2; } /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return The messagePublishRequest. */ @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublishRequest() { if (requestTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); } /** - * - * *
    * Request to publish messages.
    * 
@@ -208,16 +167,14 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublish * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder - getMessagePublishRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder() { if (requestTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,14 +186,13 @@ 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 (requestTypeCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); } if (requestTypeCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); + output.writeMessage(2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); } getUnknownFields().writeTo(output); } @@ -248,14 +204,12 @@ public int getSerializedSize() { size = 0; if (requestTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); } if (requestTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,21 +219,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.cloud.pubsublite.proto.PublishRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PublishRequest other = - (com.google.cloud.pubsublite.proto.PublishRequest) obj; + com.google.cloud.pubsublite.proto.PublishRequest other = (com.google.cloud.pubsublite.proto.PublishRequest) obj; if (!getRequestTypeCase().equals(other.getRequestTypeCase())) return false; switch (requestTypeCase_) { case 1: - if (!getInitialRequest().equals(other.getInitialRequest())) return false; + if (!getInitialRequest() + .equals(other.getInitialRequest())) return false; break; case 2: - if (!getMessagePublishRequest().equals(other.getMessagePublishRequest())) return false; + if (!getMessagePublishRequest() + .equals(other.getMessagePublishRequest())) return false; break; case 0: default: @@ -312,136 +267,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PublishRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 sent from the client to the server on a stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.PublishRequest) com.google.cloud.pubsublite.proto.PublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishRequest.class, - com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.PublishRequest.class, com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PublishRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; } @java.lang.Override @@ -479,11 +428,8 @@ public com.google.cloud.pubsublite.proto.PublishRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PublishRequest buildPartial() { - com.google.cloud.pubsublite.proto.PublishRequest result = - new com.google.cloud.pubsublite.proto.PublishRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PublishRequest result = new com.google.cloud.pubsublite.proto.PublishRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -496,10 +442,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PublishRequest resu private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishRequest result) { result.requestTypeCase_ = requestTypeCase_; result.requestType_ = this.requestType_; - if (requestTypeCase_ == 1 && initialRequestBuilder_ != null) { + if (requestTypeCase_ == 1 && + initialRequestBuilder_ != null) { result.requestType_ = initialRequestBuilder_.build(); } - if (requestTypeCase_ == 2 && messagePublishRequestBuilder_ != null) { + if (requestTypeCase_ == 2 && + messagePublishRequestBuilder_ != null) { result.requestType_ = messagePublishRequestBuilder_.build(); } } @@ -508,39 +456,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishRequest 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.cloud.pubsublite.proto.PublishRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.PublishRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PublishRequest)other); } else { super.mergeFrom(other); return this; @@ -548,23 +495,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PublishRequest other) { - if (other == com.google.cloud.pubsublite.proto.PublishRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PublishRequest.getDefaultInstance()) return this; switch (other.getRequestTypeCase()) { - case INITIAL_REQUEST: - { - mergeInitialRequest(other.getInitialRequest()); - break; - } - case MESSAGE_PUBLISH_REQUEST: - { - mergeMessagePublishRequest(other.getMessagePublishRequest()); - break; - } - case REQUESTTYPE_NOT_SET: - { - break; - } + case INITIAL_REQUEST: { + mergeInitialRequest(other.getInitialRequest()); + break; + } + case MESSAGE_PUBLISH_REQUEST: { + mergeMessagePublishRequest(other.getMessagePublishRequest()); + break; + } + case REQUESTTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -592,26 +535,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialRequestFieldBuilder().getBuilder(), extensionRegistry); - requestTypeCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getMessagePublishRequestFieldBuilder().getBuilder(), extensionRegistry); - requestTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestTypeCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getMessagePublishRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestTypeCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -621,12 +564,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestTypeCase_ = 0; private java.lang.Object requestType_; - - public RequestTypeCase getRequestTypeCase() { - return RequestTypeCase.forNumber(requestTypeCase_); + public RequestTypeCase + getRequestTypeCase() { + return RequestTypeCase.forNumber( + requestTypeCase_); } public Builder clearRequestType() { @@ -639,19 +582,13 @@ public Builder clearRequestType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishRequest, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> - initialRequestBuilder_; + com.google.cloud.pubsublite.proto.InitialPublishRequest, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> initialRequestBuilder_; /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return Whether the initialRequest field is set. */ @java.lang.Override @@ -659,14 +596,11 @@ public boolean hasInitialRequest() { return requestTypeCase_ == 1; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return The initialRequest. */ @java.lang.Override @@ -684,16 +618,13 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest } } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ - public Builder setInitialRequest( - com.google.cloud.pubsublite.proto.InitialPublishRequest value) { + public Builder setInitialRequest(com.google.cloud.pubsublite.proto.InitialPublishRequest value) { if (initialRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -707,8 +638,6 @@ public Builder setInitialRequest( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -727,25 +656,18 @@ public Builder setInitialRequest( return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ - public Builder mergeInitialRequest( - com.google.cloud.pubsublite.proto.InitialPublishRequest value) { + public Builder mergeInitialRequest(com.google.cloud.pubsublite.proto.InitialPublishRequest value) { if (initialRequestBuilder_ == null) { - if (requestTypeCase_ == 1 - && requestType_ - != com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) { - requestType_ = - com.google.cloud.pubsublite.proto.InitialPublishRequest.newBuilder( - (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_) - .mergeFrom(value) - .buildPartial(); + if (requestTypeCase_ == 1 && + requestType_ != com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) { + requestType_ = com.google.cloud.pubsublite.proto.InitialPublishRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_) + .mergeFrom(value).buildPartial(); } else { requestType_ = value; } @@ -761,8 +683,6 @@ public Builder mergeInitialRequest( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -786,21 +706,16 @@ public Builder clearInitialRequest() { return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ - public com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder - getInitialRequestBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder getInitialRequestBuilder() { return getInitialRequestFieldBuilder().getBuilder(); } /** - * - * *
      * Initial request on the stream.
      * 
@@ -808,8 +723,7 @@ public Builder clearInitialRequest() { * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder - getInitialRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getInitialRequestOrBuilder() { if ((requestTypeCase_ == 1) && (initialRequestBuilder_ != null)) { return initialRequestBuilder_.getMessageOrBuilder(); } else { @@ -820,8 +734,6 @@ public Builder clearInitialRequest() { } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -829,20 +741,14 @@ public Builder clearInitialRequest() { * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishRequest, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialPublishRequest, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> getInitialRequestFieldBuilder() { if (initialRequestBuilder_ == null) { if (!(requestTypeCase_ == 1)) { - requestType_ = - com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); + requestType_ = com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); } - initialRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishRequest, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder>( + initialRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialPublishRequest, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_, getParentForChildren(), isClean()); @@ -854,19 +760,13 @@ public Builder clearInitialRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishRequest, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, - com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> - messagePublishRequestBuilder_; + com.google.cloud.pubsublite.proto.MessagePublishRequest, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> messagePublishRequestBuilder_; /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return Whether the messagePublishRequest field is set. */ @java.lang.Override @@ -874,14 +774,11 @@ public boolean hasMessagePublishRequest() { return requestTypeCase_ == 2; } /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return The messagePublishRequest. */ @java.lang.Override @@ -899,16 +796,13 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublish } } /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - public Builder setMessagePublishRequest( - com.google.cloud.pubsublite.proto.MessagePublishRequest value) { + public Builder setMessagePublishRequest(com.google.cloud.pubsublite.proto.MessagePublishRequest value) { if (messagePublishRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -922,8 +816,6 @@ public Builder setMessagePublishRequest( return this; } /** - * - * *
      * Request to publish messages.
      * 
@@ -942,25 +834,18 @@ public Builder setMessagePublishRequest( return this; } /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - public Builder mergeMessagePublishRequest( - com.google.cloud.pubsublite.proto.MessagePublishRequest value) { + public Builder mergeMessagePublishRequest(com.google.cloud.pubsublite.proto.MessagePublishRequest value) { if (messagePublishRequestBuilder_ == null) { - if (requestTypeCase_ == 2 - && requestType_ - != com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) { - requestType_ = - com.google.cloud.pubsublite.proto.MessagePublishRequest.newBuilder( - (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_) - .mergeFrom(value) - .buildPartial(); + if (requestTypeCase_ == 2 && + requestType_ != com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) { + requestType_ = com.google.cloud.pubsublite.proto.MessagePublishRequest.newBuilder((com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_) + .mergeFrom(value).buildPartial(); } else { requestType_ = value; } @@ -976,8 +861,6 @@ public Builder mergeMessagePublishRequest( return this; } /** - * - * *
      * Request to publish messages.
      * 
@@ -1001,21 +884,16 @@ public Builder clearMessagePublishRequest() { return this; } /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder - getMessagePublishRequestBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder getMessagePublishRequestBuilder() { return getMessagePublishRequestFieldBuilder().getBuilder(); } /** - * - * *
      * Request to publish messages.
      * 
@@ -1023,8 +901,7 @@ public Builder clearMessagePublishRequest() { * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder - getMessagePublishRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder() { if ((requestTypeCase_ == 2) && (messagePublishRequestBuilder_ != null)) { return messagePublishRequestBuilder_.getMessageOrBuilder(); } else { @@ -1035,8 +912,6 @@ public Builder clearMessagePublishRequest() { } } /** - * - * *
      * Request to publish messages.
      * 
@@ -1044,20 +919,14 @@ public Builder clearMessagePublishRequest() { * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishRequest, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, - com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> + com.google.cloud.pubsublite.proto.MessagePublishRequest, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> getMessagePublishRequestFieldBuilder() { if (messagePublishRequestBuilder_ == null) { if (!(requestTypeCase_ == 2)) { - requestType_ = - com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); + requestType_ = com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); } - messagePublishRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishRequest, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, - com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder>( + messagePublishRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishRequest, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder>( (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_, getParentForChildren(), isClean()); @@ -1067,9 +936,9 @@ public Builder clearMessagePublishRequest() { onChanged(); return messagePublishRequestBuilder_; } - @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); } @@ -1079,12 +948,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PublishRequest) private static final com.google.cloud.pubsublite.proto.PublishRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PublishRequest(); } @@ -1093,27 +962,27 @@ public static com.google.cloud.pubsublite.proto.PublishRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +997,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java index 6fc8058df..8c334522f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; -public interface PublishRequestOrBuilder - extends +public interface PublishRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PublishRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return Whether the initialRequest field is set. */ boolean hasInitialRequest(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return The initialRequest. */ com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest(); /** - * - * *
    * Initial request on the stream.
    * 
@@ -59,40 +35,31 @@ public interface PublishRequestOrBuilder com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getInitialRequestOrBuilder(); /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return Whether the messagePublishRequest field is set. */ boolean hasMessagePublishRequest(); /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return The messagePublishRequest. */ com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublishRequest(); /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder - getMessagePublishRequestOrBuilder(); + com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder(); public com.google.cloud.pubsublite.proto.PublishRequest.RequestTypeCase getRequestTypeCase(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java index 1e2f99c8d..948d861aa 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java @@ -1,82 +1,61 @@ -/* - * 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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to a PublishRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() {} + private PublishResponse() { + } @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishResponse.class, - com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.PublishResponse.class, com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); } private int responseTypeCase_ = 0; private java.lang.Object responseType_; - public enum ResponseTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL_RESPONSE(1), MESSAGE_RESPONSE(2), RESPONSETYPE_NOT_SET(0); private final int value; - private ResponseTypeCase(int value) { this.value = value; } @@ -92,36 +71,30 @@ public static ResponseTypeCase valueOf(int value) { public static ResponseTypeCase forNumber(int value) { switch (value) { - case 1: - return INITIAL_RESPONSE; - case 2: - return MESSAGE_RESPONSE; - case 0: - return RESPONSETYPE_NOT_SET; - default: - return null; + case 1: return INITIAL_RESPONSE; + case 2: return MESSAGE_RESPONSE; + case 0: return RESPONSETYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResponseTypeCase getResponseTypeCase() { - return ResponseTypeCase.forNumber(responseTypeCase_); + public ResponseTypeCase + getResponseTypeCase() { + return ResponseTypeCase.forNumber( + responseTypeCase_); } public static final int INITIAL_RESPONSE_FIELD_NUMBER = 1; /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return Whether the initialResponse field is set. */ @java.lang.Override @@ -129,26 +102,21 @@ public boolean hasInitialResponse() { return responseTypeCase_ == 1; } /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return The initialResponse. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialResponse() { if (responseTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); } /** - * - * *
    * Initial response on the stream.
    * 
@@ -156,24 +124,20 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialRespon * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder - getInitialResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInitialResponseOrBuilder() { if (responseTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); } public static final int MESSAGE_RESPONSE_FIELD_NUMBER = 2; /** - * - * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return Whether the messageResponse field is set. */ @java.lang.Override @@ -181,26 +145,21 @@ public boolean hasMessageResponse() { return responseTypeCase_ == 2; } /** - * - * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return The messageResponse. */ @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageResponse() { if (responseTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); } /** - * - * *
    * Response to publishing messages.
    * 
@@ -208,16 +167,14 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageRespon * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder - getMessageResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMessageResponseOrBuilder() { if (responseTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,14 +186,13 @@ 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 (responseTypeCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); } if (responseTypeCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); + output.writeMessage(2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); } getUnknownFields().writeTo(output); } @@ -248,14 +204,12 @@ public int getSerializedSize() { size = 0; if (responseTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); } if (responseTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,21 +219,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.cloud.pubsublite.proto.PublishResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PublishResponse other = - (com.google.cloud.pubsublite.proto.PublishResponse) obj; + com.google.cloud.pubsublite.proto.PublishResponse other = (com.google.cloud.pubsublite.proto.PublishResponse) obj; if (!getResponseTypeCase().equals(other.getResponseTypeCase())) return false; switch (responseTypeCase_) { case 1: - if (!getInitialResponse().equals(other.getInitialResponse())) return false; + if (!getInitialResponse() + .equals(other.getInitialResponse())) return false; break; case 2: - if (!getMessageResponse().equals(other.getMessageResponse())) return false; + if (!getMessageResponse() + .equals(other.getMessageResponse())) return false; break; case 0: default: @@ -313,135 +268,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PublishResponse 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PublishResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 to a PublishRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.PublishResponse) com.google.cloud.pubsublite.proto.PublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishResponse.class, - com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.PublishResponse.class, com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PublishResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; } @java.lang.Override @@ -479,11 +428,8 @@ public com.google.cloud.pubsublite.proto.PublishResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PublishResponse buildPartial() { - com.google.cloud.pubsublite.proto.PublishResponse result = - new com.google.cloud.pubsublite.proto.PublishResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PublishResponse result = new com.google.cloud.pubsublite.proto.PublishResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -496,10 +442,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PublishResponse res private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishResponse result) { result.responseTypeCase_ = responseTypeCase_; result.responseType_ = this.responseType_; - if (responseTypeCase_ == 1 && initialResponseBuilder_ != null) { + if (responseTypeCase_ == 1 && + initialResponseBuilder_ != null) { result.responseType_ = initialResponseBuilder_.build(); } - if (responseTypeCase_ == 2 && messageResponseBuilder_ != null) { + if (responseTypeCase_ == 2 && + messageResponseBuilder_ != null) { result.responseType_ = messageResponseBuilder_.build(); } } @@ -508,39 +456,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishRespons 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.cloud.pubsublite.proto.PublishResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.PublishResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PublishResponse)other); } else { super.mergeFrom(other); return this; @@ -548,23 +495,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PublishResponse other) { - if (other == com.google.cloud.pubsublite.proto.PublishResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PublishResponse.getDefaultInstance()) return this; switch (other.getResponseTypeCase()) { - case INITIAL_RESPONSE: - { - mergeInitialResponse(other.getInitialResponse()); - break; - } - case MESSAGE_RESPONSE: - { - mergeMessageResponse(other.getMessageResponse()); - break; - } - case RESPONSETYPE_NOT_SET: - { - break; - } + case INITIAL_RESPONSE: { + mergeInitialResponse(other.getInitialResponse()); + break; + } + case MESSAGE_RESPONSE: { + mergeMessageResponse(other.getMessageResponse()); + break; + } + case RESPONSETYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -592,25 +535,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialResponseFieldBuilder().getBuilder(), extensionRegistry); - responseTypeCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getMessageResponseFieldBuilder().getBuilder(), extensionRegistry); - responseTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialResponseFieldBuilder().getBuilder(), + extensionRegistry); + responseTypeCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getMessageResponseFieldBuilder().getBuilder(), + extensionRegistry); + responseTypeCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -620,12 +564,12 @@ public Builder mergeFrom( } // finally return this; } - private int responseTypeCase_ = 0; private java.lang.Object responseType_; - - public ResponseTypeCase getResponseTypeCase() { - return ResponseTypeCase.forNumber(responseTypeCase_); + public ResponseTypeCase + getResponseTypeCase() { + return ResponseTypeCase.forNumber( + responseTypeCase_); } public Builder clearResponseType() { @@ -638,19 +582,13 @@ public Builder clearResponseType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishResponse, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, - com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> - initialResponseBuilder_; + com.google.cloud.pubsublite.proto.InitialPublishResponse, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> initialResponseBuilder_; /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return Whether the initialResponse field is set. */ @java.lang.Override @@ -658,14 +596,11 @@ public boolean hasInitialResponse() { return responseTypeCase_ == 1; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return The initialResponse. */ @java.lang.Override @@ -683,16 +618,13 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialRespon } } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ - public Builder setInitialResponse( - com.google.cloud.pubsublite.proto.InitialPublishResponse value) { + public Builder setInitialResponse(com.google.cloud.pubsublite.proto.InitialPublishResponse value) { if (initialResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -706,8 +638,6 @@ public Builder setInitialResponse( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -726,25 +656,18 @@ public Builder setInitialResponse( return this; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ - public Builder mergeInitialResponse( - com.google.cloud.pubsublite.proto.InitialPublishResponse value) { + public Builder mergeInitialResponse(com.google.cloud.pubsublite.proto.InitialPublishResponse value) { if (initialResponseBuilder_ == null) { - if (responseTypeCase_ == 1 - && responseType_ - != com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) { - responseType_ = - com.google.cloud.pubsublite.proto.InitialPublishResponse.newBuilder( - (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_) - .mergeFrom(value) - .buildPartial(); + if (responseTypeCase_ == 1 && + responseType_ != com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) { + responseType_ = com.google.cloud.pubsublite.proto.InitialPublishResponse.newBuilder((com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_) + .mergeFrom(value).buildPartial(); } else { responseType_ = value; } @@ -760,8 +683,6 @@ public Builder mergeInitialResponse( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -785,21 +706,16 @@ public Builder clearInitialResponse() { return this; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ - public com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder - getInitialResponseBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder getInitialResponseBuilder() { return getInitialResponseFieldBuilder().getBuilder(); } /** - * - * *
      * Initial response on the stream.
      * 
@@ -807,8 +723,7 @@ public Builder clearInitialResponse() { * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder - getInitialResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInitialResponseOrBuilder() { if ((responseTypeCase_ == 1) && (initialResponseBuilder_ != null)) { return initialResponseBuilder_.getMessageOrBuilder(); } else { @@ -819,8 +734,6 @@ public Builder clearInitialResponse() { } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -828,20 +741,14 @@ public Builder clearInitialResponse() { * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishResponse, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, - com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> + com.google.cloud.pubsublite.proto.InitialPublishResponse, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> getInitialResponseFieldBuilder() { if (initialResponseBuilder_ == null) { if (!(responseTypeCase_ == 1)) { - responseType_ = - com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); + responseType_ = com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); } - initialResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishResponse, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, - com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder>( + initialResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialPublishResponse, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder>( (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_, getParentForChildren(), isClean()); @@ -853,19 +760,13 @@ public Builder clearInitialResponse() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, - com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> - messageResponseBuilder_; + com.google.cloud.pubsublite.proto.MessagePublishResponse, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> messageResponseBuilder_; /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return Whether the messageResponse field is set. */ @java.lang.Override @@ -873,14 +774,11 @@ public boolean hasMessageResponse() { return responseTypeCase_ == 2; } /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return The messageResponse. */ @java.lang.Override @@ -898,16 +796,13 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageRespon } } /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ - public Builder setMessageResponse( - com.google.cloud.pubsublite.proto.MessagePublishResponse value) { + public Builder setMessageResponse(com.google.cloud.pubsublite.proto.MessagePublishResponse value) { if (messageResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -921,8 +816,6 @@ public Builder setMessageResponse( return this; } /** - * - * *
      * Response to publishing messages.
      * 
@@ -941,25 +834,18 @@ public Builder setMessageResponse( return this; } /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ - public Builder mergeMessageResponse( - com.google.cloud.pubsublite.proto.MessagePublishResponse value) { + public Builder mergeMessageResponse(com.google.cloud.pubsublite.proto.MessagePublishResponse value) { if (messageResponseBuilder_ == null) { - if (responseTypeCase_ == 2 - && responseType_ - != com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) { - responseType_ = - com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder( - (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_) - .mergeFrom(value) - .buildPartial(); + if (responseTypeCase_ == 2 && + responseType_ != com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) { + responseType_ = com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder((com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_) + .mergeFrom(value).buildPartial(); } else { responseType_ = value; } @@ -975,8 +861,6 @@ public Builder mergeMessageResponse( return this; } /** - * - * *
      * Response to publishing messages.
      * 
@@ -1000,21 +884,16 @@ public Builder clearMessageResponse() { return this; } /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder - getMessageResponseBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder getMessageResponseBuilder() { return getMessageResponseFieldBuilder().getBuilder(); } /** - * - * *
      * Response to publishing messages.
      * 
@@ -1022,8 +901,7 @@ public Builder clearMessageResponse() { * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder - getMessageResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMessageResponseOrBuilder() { if ((responseTypeCase_ == 2) && (messageResponseBuilder_ != null)) { return messageResponseBuilder_.getMessageOrBuilder(); } else { @@ -1034,8 +912,6 @@ public Builder clearMessageResponse() { } } /** - * - * *
      * Response to publishing messages.
      * 
@@ -1043,20 +919,14 @@ public Builder clearMessageResponse() { * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, - com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> + com.google.cloud.pubsublite.proto.MessagePublishResponse, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> getMessageResponseFieldBuilder() { if (messageResponseBuilder_ == null) { if (!(responseTypeCase_ == 2)) { - responseType_ = - com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); + responseType_ = com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); } - messageResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, - com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder>( + messageResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishResponse, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder>( (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_, getParentForChildren(), isClean()); @@ -1066,9 +936,9 @@ public Builder clearMessageResponse() { onChanged(); return messageResponseBuilder_; } - @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); } @@ -1078,12 +948,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PublishResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PublishResponse) private static final com.google.cloud.pubsublite.proto.PublishResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PublishResponse(); } @@ -1092,27 +962,27 @@ public static com.google.cloud.pubsublite.proto.PublishResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,4 +997,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java index b8747aad0..575dfde0f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; -public interface PublishResponseOrBuilder - extends +public interface PublishResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PublishResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return Whether the initialResponse field is set. */ boolean hasInitialResponse(); /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return The initialResponse. */ com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialResponse(); /** - * - * *
    * Initial response on the stream.
    * 
@@ -59,32 +35,24 @@ public interface PublishResponseOrBuilder com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInitialResponseOrBuilder(); /** - * - * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return Whether the messageResponse field is set. */ boolean hasMessageResponse(); /** - * - * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return The messageResponse. */ com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageResponse(); /** - * - * *
    * Response to publishing messages.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java new file mode 100644 index 000000000..b736e35ff --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java @@ -0,0 +1,161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/publisher.proto + +package com.google.cloud.pubsublite.proto; + +public final class PublisherProto { + private PublisherProto() {} + 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_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PublishResponse_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*google/cloud/pubsublite/v1/publisher.p" + + "roto\022\032google.cloud.pubsublite.v1\032\034google" + + "/api/annotations.proto\032\027google/api/clien" + + "t.proto\032\'google/cloud/pubsublite/v1/comm" + + "on.proto\"L\n\025InitialPublishRequest\022\r\n\005top" + + "ic\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022\021\n\tclient_id" + + "\030\003 \001(\014\"\030\n\026InitialPublishResponse\"s\n\025Mess" + + "agePublishRequest\022;\n\010messages\030\001 \003(\0132).go" + + "ogle.cloud.pubsublite.v1.PubSubMessage\022\035" + + "\n\025first_sequence_number\030\002 \001(\003\"\232\002\n\026Messag" + + "ePublishResponse\0228\n\014start_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\022U\n\rcu" + + "rsor_ranges\030\002 \003(\0132>.google.cloud.pubsubl" + + "ite.v1.MessagePublishResponse.CursorRang" + + "e\032o\n\013CursorRange\0228\n\014start_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\022\023\n\013st" + + "art_index\030\002 \001(\005\022\021\n\tend_index\030\003 \001(\005\"\304\001\n\016P" + + "ublishRequest\022L\n\017initial_request\030\001 \001(\01321" + + ".google.cloud.pubsublite.v1.InitialPubli" + + "shRequestH\000\022T\n\027message_publish_request\030\002" + + " \001(\01321.google.cloud.pubsublite.v1.Messag" + + "ePublishRequestH\000B\016\n\014request_type\"\302\001\n\017Pu" + + "blishResponse\022N\n\020initial_response\030\001 \001(\0132" + + "2.google.cloud.pubsublite.v1.InitialPubl" + + "ishResponseH\000\022N\n\020message_response\030\002 \001(\0132" + + "2.google.cloud.pubsublite.v1.MessagePubl" + + "ishResponseH\000B\017\n\rresponse_type2\313\001\n\020Publi" + + "sherService\022h\n\007Publish\022*.google.cloud.pu" + + "bsublite.v1.PublishRequest\032+.google.clou" + + "d.pubsublite.v1.PublishResponse\"\000(\0010\001\032M\312" + + "A\031pubsublite.googleapis.com\322A.https://ww" + + "w.googleapis.com/auth/cloud-platformB\322\001\n" + + "!com.google.cloud.pubsublite.protoB\016Publ" + + "isherProtoP\001Z>cloud.google.com/go/pubsub" + + "lite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252" + + "\002\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Cl" + + "oud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSu" + + "bLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor, + new java.lang.String[] { "Topic", "Partition", "ClientId", }); + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor, + new java.lang.String[] { "Messages", "FirstSequenceNumber", }); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor, + new java.lang.String[] { "StartCursor", "CursorRanges", }); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor = + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor, + new java.lang.String[] { "StartCursor", "StartIndex", "EndIndex", }); + internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor, + new java.lang.String[] { "InitialRequest", "MessagePublishRequest", "RequestType", }); + internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor, + new java.lang.String[] { "InitialResponse", "MessageResponse", "ResponseType", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java index f8c1e30d6..25cf373db 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java @@ -1,79 +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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Metadata about a reservation resource.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Reservation} */ -public final class Reservation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Reservation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Reservation) ReservationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Reservation.newBuilder() to construct. private Reservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Reservation() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Reservation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Reservation.class, - com.google.cloud.pubsublite.proto.Reservation.Builder.class); + com.google.cloud.pubsublite.proto.Reservation.class, com.google.cloud.pubsublite.proto.Reservation.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the reservation.
    * Structured like:
@@ -81,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -90,15 +67,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; } } /** - * - * *
    * The name of the reservation.
    * Structured like:
@@ -106,15 +82,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -125,8 +102,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int THROUGHPUT_CAPACITY_FIELD_NUMBER = 2; private long throughputCapacity_ = 0L; /** - * - * *
    * The reserved throughput capacity. Every unit of throughput capacity is
    * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -137,7 +112,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int64 throughput_capacity = 2; - * * @return The throughputCapacity. */ @java.lang.Override @@ -146,7 +120,6 @@ public long getThroughputCapacity() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,7 +131,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_); } @@ -178,7 +152,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (throughputCapacity_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, throughputCapacity_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, throughputCapacity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -188,16 +163,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.cloud.pubsublite.proto.Reservation)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Reservation other = - (com.google.cloud.pubsublite.proto.Reservation) obj; + com.google.cloud.pubsublite.proto.Reservation other = (com.google.cloud.pubsublite.proto.Reservation) obj; - if (!getName().equals(other.getName())) return false; - if (getThroughputCapacity() != other.getThroughputCapacity()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getThroughputCapacity() + != other.getThroughputCapacity()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -212,142 +188,137 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + THROUGHPUT_CAPACITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThroughputCapacity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getThroughputCapacity()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.Reservation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Reservation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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; } /** - * - * *
    * Metadata about a reservation resource.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Reservation} */ - 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.cloud.pubsublite.v1.Reservation) com.google.cloud.pubsublite.proto.ReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Reservation.class, - com.google.cloud.pubsublite.proto.Reservation.Builder.class); + com.google.cloud.pubsublite.proto.Reservation.class, com.google.cloud.pubsublite.proto.Reservation.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Reservation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +329,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; } @java.lang.Override @@ -379,11 +350,8 @@ public com.google.cloud.pubsublite.proto.Reservation build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Reservation buildPartial() { - com.google.cloud.pubsublite.proto.Reservation result = - new com.google.cloud.pubsublite.proto.Reservation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Reservation result = new com.google.cloud.pubsublite.proto.Reservation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -402,39 +370,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Reservation result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Reservation) { - return mergeFrom((com.google.cloud.pubsublite.proto.Reservation) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Reservation)other); } else { super.mergeFrom(other); return this; @@ -477,25 +444,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - throughputCapacity_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + throughputCapacity_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -505,13 +469,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -519,13 +480,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -534,8 +495,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -543,14 +502,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -558,8 +518,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -567,22 +525,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -590,7 +544,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -600,8 +553,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -609,14 +560,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -624,10 +573,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long throughputCapacity_; + private long throughputCapacity_ ; /** - * - * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -638,7 +585,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 throughput_capacity = 2; - * * @return The throughputCapacity. */ @java.lang.Override @@ -646,8 +592,6 @@ public long getThroughputCapacity() { return throughputCapacity_; } /** - * - * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -658,20 +602,17 @@ public long getThroughputCapacity() {
      * 
* * int64 throughput_capacity = 2; - * * @param value The throughputCapacity to set. * @return This builder for chaining. */ public Builder setThroughputCapacity(long value) { - + throughputCapacity_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -682,7 +623,6 @@ public Builder setThroughputCapacity(long value) {
      * 
* * int64 throughput_capacity = 2; - * * @return This builder for chaining. */ public Builder clearThroughputCapacity() { @@ -691,9 +631,9 @@ public Builder clearThroughputCapacity() { 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); } @@ -703,12 +643,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Reservation) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Reservation) private static final com.google.cloud.pubsublite.proto.Reservation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Reservation(); } @@ -717,27 +657,27 @@ public static com.google.cloud.pubsublite.proto.Reservation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,4 +692,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Reservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java index b145a361e..7fadb76b4 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface ReservationOrBuilder - extends +public interface ReservationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Reservation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the reservation.
    * Structured like:
@@ -33,13 +15,10 @@ public interface ReservationOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the reservation.
    * Structured like:
@@ -47,14 +26,12 @@ public interface ReservationOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The reserved throughput capacity. Every unit of throughput capacity is
    * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -65,7 +42,6 @@ public interface ReservationOrBuilder
    * 
* * int64 throughput_capacity = 2; - * * @return The throughputCapacity. */ long getThroughputCapacity(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java index 35eadedd7..0f0855564 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request to update the stream's delivery cursor based on the given target.
  * Resets the server available tokens to 0. SeekRequests past head result in
@@ -31,57 +14,53 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() {}
+  private SeekRequest() {
+  }
 
   @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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.SeekRequest.class,
-            com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.SeekRequest.class, com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * A special target in the partition that takes no other parameters.
    * 
* * Protobuf enum {@code google.cloud.pubsublite.v1.SeekRequest.NamedTarget} */ - public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { + public enum NamedTarget + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is unused.
      * 
@@ -90,8 +69,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ NAMED_TARGET_UNSPECIFIED(0), /** - * - * *
      * A target corresponding to the most recently published message in the
      * partition.
@@ -101,8 +78,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
      */
     HEAD(1),
     /**
-     *
-     *
      * 
      * A target corresponding to the committed cursor for the given subscription
      * and topic partition.
@@ -115,8 +90,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value. This value is unused.
      * 
@@ -125,8 +98,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NAMED_TARGET_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A target corresponding to the most recently published message in the
      * partition.
@@ -136,8 +107,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HEAD_VALUE = 1;
     /**
-     *
-     *
      * 
      * A target corresponding to the committed cursor for the given subscription
      * and topic partition.
@@ -147,6 +116,7 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMMITTED_CURSOR_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -171,49 +141,49 @@ public static NamedTarget valueOf(int value) {
      */
     public static NamedTarget forNumber(int value) {
       switch (value) {
-        case 0:
-          return NAMED_TARGET_UNSPECIFIED;
-        case 1:
-          return HEAD;
-        case 2:
-          return COMMITTED_CURSOR;
-        default:
-          return null;
+        case 0: return NAMED_TARGET_UNSPECIFIED;
+        case 1: return HEAD;
+        case 2: return COMMITTED_CURSOR;
+        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<
+        NamedTarget> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public NamedTarget findValueByNumber(int number) {
+              return NamedTarget.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public NamedTarget findValueByNumber(int number) {
-            return NamedTarget.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.cloud.pubsublite.proto.SeekRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final NamedTarget[] VALUES = values();
 
-    public static NamedTarget valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static NamedTarget 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;
@@ -232,16 +202,13 @@ private NamedTarget(int value) {
 
   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 {
     NAMED_TARGET(1),
     CURSOR(2),
     TARGET_NOT_SET(0);
     private final int value;
-
     private TargetCase(int value) {
       this.value = value;
     }
@@ -257,50 +224,41 @@ public static TargetCase valueOf(int value) {
 
     public static TargetCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return NAMED_TARGET;
-        case 2:
-          return CURSOR;
-        case 0:
-          return TARGET_NOT_SET;
-        default:
-          return null;
+        case 1: return NAMED_TARGET;
+        case 2: return CURSOR;
+        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 NAMED_TARGET_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return Whether the namedTarget field is set. */ public boolean hasNamedTarget() { return targetCase_ == 1; } /** - * - * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The enum numeric value on the wire for namedTarget. */ public int getNamedTargetValue() { @@ -310,39 +268,30 @@ public int getNamedTargetValue() { return 0; } /** - * - * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The namedTarget. */ public com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget() { if (targetCase_ == 1) { - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null - ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED : result; } return com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } public static final int CURSOR_FIELD_NUMBER = 2; /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -350,27 +299,22 @@ public boolean hasCursor() { return targetCase_ == 2; } /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (targetCase_ == 2) { - return (com.google.cloud.pubsublite.proto.Cursor) target_; + return (com.google.cloud.pubsublite.proto.Cursor) target_; } return com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance(); } /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
@@ -381,13 +325,12 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
     if (targetCase_ == 2) {
-      return (com.google.cloud.pubsublite.proto.Cursor) target_;
+       return (com.google.cloud.pubsublite.proto.Cursor) target_;
     }
     return com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -399,7 +342,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 (targetCase_ == 1) {
       output.writeEnum(1, ((java.lang.Integer) target_));
     }
@@ -416,13 +360,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (targetCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) target_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, ((java.lang.Integer) target_));
     }
     if (targetCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.pubsublite.proto.Cursor) target_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.pubsublite.proto.Cursor) target_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -432,21 +375,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.cloud.pubsublite.proto.SeekRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.SeekRequest other =
-        (com.google.cloud.pubsublite.proto.SeekRequest) obj;
+    com.google.cloud.pubsublite.proto.SeekRequest other = (com.google.cloud.pubsublite.proto.SeekRequest) obj;
 
     if (!getTargetCase().equals(other.getTargetCase())) return false;
     switch (targetCase_) {
       case 1:
-        if (getNamedTargetValue() != other.getNamedTargetValue()) return false;
+        if (getNamedTargetValue()
+            != other.getNamedTargetValue()) return false;
         break;
       case 2:
-        if (!getCursor().equals(other.getCursor())) return false;
+        if (!getCursor()
+            .equals(other.getCursor())) return false;
         break;
       case 0:
       default:
@@ -479,104 +423,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.SeekRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 to update the stream's delivery cursor based on the given target.
    * Resets the server available tokens to 0. SeekRequests past head result in
@@ -587,32 +524,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.SeekRequest)
       com.google.cloud.pubsublite.proto.SeekRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.SeekRequest.class,
-              com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.SeekRequest.class, com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.SeekRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -626,9 +564,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
     }
 
     @java.lang.Override
@@ -647,11 +585,8 @@ public com.google.cloud.pubsublite.proto.SeekRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.SeekRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.SeekRequest result =
-          new com.google.cloud.pubsublite.proto.SeekRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.SeekRequest result = new com.google.cloud.pubsublite.proto.SeekRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -664,7 +599,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekRequest result)
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekRequest result) {
       result.targetCase_ = targetCase_;
       result.target_ = this.target_;
-      if (targetCase_ == 2 && cursorBuilder_ != null) {
+      if (targetCase_ == 2 &&
+          cursorBuilder_ != null) {
         result.target_ = cursorBuilder_.build();
       }
     }
@@ -673,39 +609,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekRequest re
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.SeekRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.SeekRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.SeekRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -715,20 +650,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekRequest other) {
       if (other == com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) return this;
       switch (other.getTargetCase()) {
-        case NAMED_TARGET:
-          {
-            setNamedTargetValue(other.getNamedTargetValue());
-            break;
-          }
-        case CURSOR:
-          {
-            mergeCursor(other.getCursor());
-            break;
-          }
-        case TARGET_NOT_SET:
-          {
-            break;
-          }
+        case NAMED_TARGET: {
+          setNamedTargetValue(other.getNamedTargetValue());
+          break;
+        }
+        case CURSOR: {
+          mergeCursor(other.getCursor());
+          break;
+        }
+        case TARGET_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -756,26 +688,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                int rawValue = input.readEnum();
-                targetCase_ = 1;
-                target_ = rawValue;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
-                targetCase_ = 2;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              int rawValue = input.readEnum();
+              targetCase_ = 1;
+              target_ = rawValue;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getCursorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              targetCase_ = 2;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -785,12 +716,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int targetCase_ = 0;
     private java.lang.Object target_;
-
-    public TargetCase getTargetCase() {
-      return TargetCase.forNumber(targetCase_);
+    public TargetCase
+        getTargetCase() {
+      return TargetCase.forNumber(
+          targetCase_);
     }
 
     public Builder clearTarget() {
@@ -803,14 +734,11 @@ public Builder clearTarget() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return Whether the namedTarget field is set. */ @java.lang.Override @@ -818,14 +746,11 @@ public boolean hasNamedTarget() { return targetCase_ == 1; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The enum numeric value on the wire for namedTarget. */ @java.lang.Override @@ -836,14 +761,11 @@ public int getNamedTargetValue() { return 0; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @param value The enum numeric value on the wire for namedTarget to set. * @return This builder for chaining. */ @@ -854,37 +776,28 @@ public Builder setNamedTargetValue(int value) { return this; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The namedTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget() { if (targetCase_ == 1) { - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null - ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED : result; } return com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @param value The namedTarget to set. * @return This builder for chaining. */ @@ -898,14 +811,11 @@ public Builder setNamedTarget(com.google.cloud.pubsublite.proto.SeekRequest.Name return this; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return This builder for chaining. */ public Builder clearNamedTarget() { @@ -918,20 +828,14 @@ public Builder clearNamedTarget() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -939,15 +843,12 @@ public boolean hasCursor() { return targetCase_ == 2; } /** - * - * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ @java.lang.Override @@ -965,8 +866,6 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { } } /** - * - * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -988,8 +887,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -997,7 +894,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 2;
      */
-    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(
+        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         target_ = builderForValue.build();
         onChanged();
@@ -1008,8 +906,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1019,13 +915,10 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (targetCase_ == 2
-            && target_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
-          target_ =
-              com.google.cloud.pubsublite.proto.Cursor.newBuilder(
-                      (com.google.cloud.pubsublite.proto.Cursor) target_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (targetCase_ == 2 &&
+            target_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+          target_ = com.google.cloud.pubsublite.proto.Cursor.newBuilder((com.google.cloud.pubsublite.proto.Cursor) target_)
+              .mergeFrom(value).buildPartial();
         } else {
           target_ = value;
         }
@@ -1041,8 +934,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1067,8 +958,6 @@ public Builder clearCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1080,8 +969,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1101,8 +988,6 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1111,19 +996,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
         if (!(targetCase_ == 2)) {
           target_ = com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance();
         }
-        cursorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Cursor,
-                com.google.cloud.pubsublite.proto.Cursor.Builder,
-                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
                 (com.google.cloud.pubsublite.proto.Cursor) target_,
                 getParentForChildren(),
                 isClean());
@@ -1133,9 +1013,9 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       onChanged();
       return cursorBuilder_;
     }
-
     @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);
     }
 
@@ -1145,12 +1025,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekRequest)
   private static final com.google.cloud.pubsublite.proto.SeekRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekRequest();
   }
@@ -1159,27 +1039,27 @@ public static com.google.cloud.pubsublite.proto.SeekRequest getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SeekRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SeekRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1194,4 +1074,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.SeekRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
similarity index 72%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
index 2e2f9b3a1..70a571d83 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
@@ -1,94 +1,61 @@
-/*
- * 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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface SeekRequestOrBuilder
-    extends
+public interface SeekRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return Whether the namedTarget field is set. */ boolean hasNamedTarget(); /** - * - * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The enum numeric value on the wire for namedTarget. */ int getNamedTargetValue(); /** - * - * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The namedTarget. */ com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget(); /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
similarity index 65%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
index 845ac4833..f14a15345 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
@@ -1,81 +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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Response to a SeekRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekResponse.class, - com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekResponse.class, com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); } public static final int CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasCursor() { return cursor_ != null; } /** - * - * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The new delivery cursor for the current stream.
    * 
@@ -110,13 +82,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +97,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 (cursor_ != null) { output.writeMessage(1, getCursor()); } @@ -142,7 +112,8 @@ public int getSerializedSize() { size = 0; if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -152,17 +123,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.cloud.pubsublite.proto.SeekResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SeekResponse other = - (com.google.cloud.pubsublite.proto.SeekResponse) obj; + com.google.cloud.pubsublite.proto.SeekResponse other = (com.google.cloud.pubsublite.proto.SeekResponse) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -184,136 +155,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SeekResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 to a SeekRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.SeekResponse) com.google.cloud.pubsublite.proto.SeekResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekResponse.class, - com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekResponse.class, com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SeekResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; } @java.lang.Override @@ -348,11 +313,8 @@ public com.google.cloud.pubsublite.proto.SeekResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekResponse buildPartial() { - com.google.cloud.pubsublite.proto.SeekResponse result = - new com.google.cloud.pubsublite.proto.SeekResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SeekResponse result = new com.google.cloud.pubsublite.proto.SeekResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -360,7 +322,9 @@ public com.google.cloud.pubsublite.proto.SeekResponse buildPartial() { private void buildPartial0(com.google.cloud.pubsublite.proto.SeekResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); } } @@ -368,39 +332,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekResponse result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SeekResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SeekResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SeekResponse)other); } else { super.mergeFrom(other); return this; @@ -438,19 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,52 +423,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The new delivery cursor for the current stream.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -526,15 +475,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -545,8 +493,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -555,9 +501,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -570,8 +516,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -589,8 +533,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -603,8 +545,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -615,14 +555,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -630,24 +567,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; } - @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); } @@ -657,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekResponse) private static final com.google.cloud.pubsublite.proto.SeekResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekResponse(); } @@ -671,27 +605,27 @@ public static com.google.cloud.pubsublite.proto.SeekResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeekResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeekResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -706,4 +640,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java similarity index 59% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java index 7acc60248..fd58f7512 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface SeekResponseOrBuilder - extends +public interface SeekResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The new delivery cursor for the current stream.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java index 47d367c8d..9c10278c4 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java @@ -1,85 +1,63 @@ -/* - * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for SeekSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionRequest} */ -public final class SeekSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SeekSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SeekSubscriptionRequest) SeekSubscriptionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SeekSubscriptionRequest.newBuilder() to construct. private SeekSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SeekSubscriptionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SeekSubscriptionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); } /** - * - * *
    * A named position with respect to the message backlog.
    * 
* * Protobuf enum {@code google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget} */ - public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { + public enum NamedTarget + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified named target. Do not use.
      * 
@@ -88,8 +66,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ NAMED_TARGET_UNSPECIFIED(0), /** - * - * *
      * Seek to the oldest retained message.
      * 
@@ -98,8 +74,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ TAIL(1), /** - * - * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -112,8 +86,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified named target. Do not use.
      * 
@@ -122,8 +94,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NAMED_TARGET_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Seek to the oldest retained message.
      * 
@@ -132,8 +102,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TAIL_VALUE = 1; /** - * - * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -143,6 +111,7 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HEAD_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -167,51 +136,49 @@ public static NamedTarget valueOf(int value) {
      */
     public static NamedTarget forNumber(int value) {
       switch (value) {
-        case 0:
-          return NAMED_TARGET_UNSPECIFIED;
-        case 1:
-          return TAIL;
-        case 2:
-          return HEAD;
-        default:
-          return null;
+        case 0: return NAMED_TARGET_UNSPECIFIED;
+        case 1: return TAIL;
+        case 2: return HEAD;
+        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<
+        NamedTarget> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public NamedTarget findValueByNumber(int number) {
+              return NamedTarget.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public NamedTarget findValueByNumber(int number) {
-            return NamedTarget.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() {
-      return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final NamedTarget[] VALUES = values();
 
-    public static NamedTarget valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static NamedTarget valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -230,16 +197,13 @@ private NamedTarget(int value) {
 
   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 {
     NAMED_TARGET(2),
     TIME_TARGET(3),
     TARGET_NOT_SET(0);
     private final int value;
-
     private TargetCase(int value) {
       this.value = value;
     }
@@ -255,41 +219,32 @@ public static TargetCase valueOf(int value) {
 
     public static TargetCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return NAMED_TARGET;
-        case 3:
-          return TIME_TARGET;
-        case 0:
-          return TARGET_NOT_SET;
-        default:
-          return null;
+        case 2: return NAMED_TARGET;
+        case 3: return TIME_TARGET;
+        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 NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the subscription to seek.
    * 
* - * - * 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 @@ -298,31 +253,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; } } /** - * - * *
    * Required. The name of the subscription to seek.
    * 
* - * - * 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 { @@ -332,28 +285,22 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NAMED_TARGET_FIELD_NUMBER = 2; /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return Whether the namedTarget field is set. */ public boolean hasNamedTarget() { return targetCase_ == 2; } /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return The enum numeric value on the wire for namedTarget. */ public int getNamedTargetValue() { @@ -363,33 +310,24 @@ public int getNamedTargetValue() { return 0; } /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return The namedTarget. */ public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget getNamedTarget() { if (targetCase_ == 2) { - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null - ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED - : result; - } - return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget - .NAMED_TARGET_UNSPECIFIED; + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED : result; + } + return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } public static final int TIME_TARGET_FIELD_NUMBER = 3; /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -397,7 +335,6 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget get
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return Whether the timeTarget field is set. */ @java.lang.Override @@ -405,8 +342,6 @@ public boolean hasTimeTarget() { return targetCase_ == 3; } /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -414,19 +349,16 @@ public boolean hasTimeTarget() {
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return The timeTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget() { if (targetCase_ == 3) { - return (com.google.cloud.pubsublite.proto.TimeTarget) target_; + return (com.google.cloud.pubsublite.proto.TimeTarget) target_; } return com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance(); } /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -438,13 +370,12 @@ public com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget() {
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuilder() {
     if (targetCase_ == 3) {
-      return (com.google.cloud.pubsublite.proto.TimeTarget) target_;
+       return (com.google.cloud.pubsublite.proto.TimeTarget) target_;
     }
     return com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -456,7 +387,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_);
     }
@@ -479,13 +411,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (targetCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeEnumSize(2, ((java.lang.Integer) target_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(2, ((java.lang.Integer) target_));
     }
     if (targetCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.pubsublite.proto.TimeTarget) target_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.pubsublite.proto.TimeTarget) target_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -495,22 +426,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.cloud.pubsublite.proto.SeekSubscriptionRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.SeekSubscriptionRequest other =
-        (com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) obj;
+    com.google.cloud.pubsublite.proto.SeekSubscriptionRequest other = (com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (!getTargetCase().equals(other.getTargetCase())) return false;
     switch (targetCase_) {
       case 2:
-        if (getNamedTargetValue() != other.getNamedTargetValue()) return false;
+        if (getNamedTargetValue()
+            != other.getNamedTargetValue()) return false;
         break;
       case 3:
-        if (!getTimeTarget().equals(other.getTimeTarget())) return false;
+        if (!getTimeTarget()
+            .equals(other.getTimeTarget())) return false;
         break;
       case 0:
       default:
@@ -546,136 +479,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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 SeekSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionRequest} */ - 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.cloud.pubsublite.v1.SeekSubscriptionRequest) com.google.cloud.pubsublite.proto.SeekSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -690,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; } @java.lang.Override @@ -711,11 +637,8 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.SeekSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result = new com.google.cloud.pubsublite.proto.SeekSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -728,11 +651,11 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekSubscriptionReq } } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result) { result.targetCase_ = targetCase_; result.target_ = this.target_; - if (targetCase_ == 3 && timeTargetBuilder_ != null) { + if (targetCase_ == 3 && + timeTargetBuilder_ != null) { result.target_ = timeTargetBuilder_.build(); } } @@ -741,39 +664,38 @@ private void buildPartialOneofs( 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.cloud.pubsublite.proto.SeekSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -781,28 +703,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getTargetCase()) { - case NAMED_TARGET: - { - setNamedTargetValue(other.getNamedTargetValue()); - break; - } - case TIME_TARGET: - { - mergeTimeTarget(other.getTimeTarget()); - break; - } - case TARGET_NOT_SET: - { - break; - } + case NAMED_TARGET: { + setNamedTargetValue(other.getNamedTargetValue()); + break; + } + case TIME_TARGET: { + mergeTimeTarget(other.getTimeTarget()); + break; + } + case TARGET_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -830,32 +748,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - int rawValue = input.readEnum(); - targetCase_ = 2; - target_ = rawValue; - break; - } // case 16 - case 26: - { - input.readMessage(getTimeTargetFieldBuilder().getBuilder(), extensionRegistry); - targetCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int rawValue = input.readEnum(); + targetCase_ = 2; + target_ = rawValue; + break; + } // case 16 + case 26: { + input.readMessage( + getTimeTargetFieldBuilder().getBuilder(), + extensionRegistry); + targetCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -865,12 +781,12 @@ public Builder mergeFrom( } // finally return this; } - private int targetCase_ = 0; private java.lang.Object target_; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } public Builder clearTarget() { @@ -884,22 +800,18 @@ public Builder clearTarget() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * 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; @@ -908,23 +820,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * 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 { @@ -932,39 +841,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * 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() { @@ -974,23 +872,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -999,15 +891,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @return Whether the namedTarget field is set. */ @java.lang.Override @@ -1015,15 +903,11 @@ public boolean hasNamedTarget() { return targetCase_ == 2; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @return The enum numeric value on the wire for namedTarget. */ @java.lang.Override @@ -1034,15 +918,11 @@ public int getNamedTargetValue() { return 0; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @param value The enum numeric value on the wire for namedTarget to set. * @return This builder for chaining. */ @@ -1053,45 +933,32 @@ public Builder setNamedTargetValue(int value) { return this; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @return The namedTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget getNamedTarget() { if (targetCase_ == 2) { - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null - ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED : result; } - return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget - .NAMED_TARGET_UNSPECIFIED; + return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @param value The namedTarget to set. * @return This builder for chaining. */ - public Builder setNamedTarget( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget value) { + public Builder setNamedTarget(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget value) { if (value == null) { throw new NullPointerException(); } @@ -1101,15 +968,11 @@ public Builder setNamedTarget( return this; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @return This builder for chaining. */ public Builder clearNamedTarget() { @@ -1122,13 +985,8 @@ public Builder clearNamedTarget() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, - com.google.cloud.pubsublite.proto.TimeTarget.Builder, - com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> - timeTargetBuilder_; + com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> timeTargetBuilder_; /** - * - * *
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1136,7 +994,6 @@ public Builder clearNamedTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return Whether the timeTarget field is set. */ @java.lang.Override @@ -1144,8 +1001,6 @@ public boolean hasTimeTarget() { return targetCase_ == 3; } /** - * - * *
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1153,7 +1008,6 @@ public boolean hasTimeTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return The timeTarget. */ @java.lang.Override @@ -1171,8 +1025,6 @@ public com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget() { } } /** - * - * *
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1195,8 +1047,6 @@ public Builder setTimeTarget(com.google.cloud.pubsublite.proto.TimeTarget value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1217,8 +1067,6 @@ public Builder setTimeTarget(
       return this;
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1229,13 +1077,10 @@ public Builder setTimeTarget(
      */
     public Builder mergeTimeTarget(com.google.cloud.pubsublite.proto.TimeTarget value) {
       if (timeTargetBuilder_ == null) {
-        if (targetCase_ == 3
-            && target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) {
-          target_ =
-              com.google.cloud.pubsublite.proto.TimeTarget.newBuilder(
-                      (com.google.cloud.pubsublite.proto.TimeTarget) target_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (targetCase_ == 3 &&
+            target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) {
+          target_ = com.google.cloud.pubsublite.proto.TimeTarget.newBuilder((com.google.cloud.pubsublite.proto.TimeTarget) target_)
+              .mergeFrom(value).buildPartial();
         } else {
           target_ = value;
         }
@@ -1251,8 +1096,6 @@ public Builder mergeTimeTarget(com.google.cloud.pubsublite.proto.TimeTarget valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1278,8 +1121,6 @@ public Builder clearTimeTarget() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1292,8 +1133,6 @@ public com.google.cloud.pubsublite.proto.TimeTarget.Builder getTimeTargetBuilder
       return getTimeTargetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1314,8 +1153,6 @@ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuil
       }
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1325,19 +1162,14 @@ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuil
      * .google.cloud.pubsublite.v1.TimeTarget time_target = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.TimeTarget,
-            com.google.cloud.pubsublite.proto.TimeTarget.Builder,
-            com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>
+        com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> 
         getTimeTargetFieldBuilder() {
       if (timeTargetBuilder_ == null) {
         if (!(targetCase_ == 3)) {
           target_ = com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance();
         }
-        timeTargetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.TimeTarget,
-                com.google.cloud.pubsublite.proto.TimeTarget.Builder,
-                com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>(
+        timeTargetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>(
                 (com.google.cloud.pubsublite.proto.TimeTarget) target_,
                 getParentForChildren(),
                 isClean());
@@ -1347,9 +1179,9 @@ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuil
       onChanged();
       return timeTargetBuilder_;
     }
-
     @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);
     }
 
@@ -1359,12 +1191,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekSubscriptionRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekSubscriptionRequest)
   private static final com.google.cloud.pubsublite.proto.SeekSubscriptionRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekSubscriptionRequest();
   }
@@ -1373,27 +1205,27 @@ public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SeekSubscriptionRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SeekSubscriptionRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1408,4 +1240,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
similarity index 72%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
index 290895611..405bf5bfb 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
@@ -1,97 +1,61 @@
-/*
- * 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/cloud/pubsublite/v1/admin.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface SeekSubscriptionRequestOrBuilder
-    extends
+public interface SeekSubscriptionRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekSubscriptionRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the subscription to seek.
    * 
* - * - * 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 subscription to seek.
    * 
* - * - * 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(); /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return Whether the namedTarget field is set. */ boolean hasNamedTarget(); /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return The enum numeric value on the wire for namedTarget. */ int getNamedTargetValue(); /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return The namedTarget. */ com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget getNamedTarget(); /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -99,13 +63,10 @@ public interface SeekSubscriptionRequestOrBuilder
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return Whether the timeTarget field is set. */ boolean hasTimeTarget(); /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -113,13 +74,10 @@ public interface SeekSubscriptionRequestOrBuilder
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return The timeTarget. */ com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget(); /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
similarity index 61%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
index aa3cd85a3..41dd6e7db 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
@@ -1,72 +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/cloud/pubsublite/v1/admin.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Response for SeekSubscription long running operation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionResponse} */ -public final class SeekSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SeekSubscriptionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SeekSubscriptionResponse) SeekSubscriptionResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SeekSubscriptionResponse.newBuilder() to construct. private SeekSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SeekSubscriptionResponse() {} + private SeekSubscriptionResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SeekSubscriptionResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +59,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 { getUnknownFields().writeTo(output); } @@ -96,13 +78,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.cloud.pubsublite.proto.SeekSubscriptionResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse other = - (com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) obj; + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse other = (com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -121,136 +102,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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 SeekSubscription long running operation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionResponse} */ - 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.cloud.pubsublite.v1.SeekSubscriptionResponse) com.google.cloud.pubsublite.proto.SeekSubscriptionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -258,9 +232,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; } @java.lang.Override @@ -279,8 +253,7 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse buildPartial() { - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse result = - new com.google.cloud.pubsublite.proto.SeekSubscriptionResponse(this); + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse result = new com.google.cloud.pubsublite.proto.SeekSubscriptionResponse(this); onBuilt(); return result; } @@ -289,39 +262,38 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionResponse)other); } else { super.mergeFrom(other); return this; @@ -329,8 +301,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekSubscriptionResponse other) { - if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -357,13 +328,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -373,9 +343,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -385,12 +355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekSubscriptionResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekSubscriptionResponse) private static final com.google.cloud.pubsublite.proto.SeekSubscriptionResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekSubscriptionResponse(); } @@ -399,27 +369,27 @@ public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeekSubscriptionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeekSubscriptionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -434,4 +404,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java new file mode 100644 index 000000000..fa9772211 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface SeekSubscriptionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekSubscriptionResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java index e37e44c14..12e9529e8 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Streaming request to update the committed cursor. Subsequent
  * SequencedCommitCursorRequests override outstanding ones.
@@ -28,55 +11,51 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorRequest}
  */
-public final class SequencedCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SequencedCommitCursorRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedCommitCursorRequest)
     SequencedCommitCursorRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SequencedCommitCursorRequest.newBuilder() to construct.
   private SequencedCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private SequencedCommitCursorRequest() {}
+  private SequencedCommitCursorRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SequencedCommitCursorRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CursorProto
-        .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CursorProto
-        .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class,
-            com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
   }
 
   public static final int CURSOR_FIELD_NUMBER = 1;
   private com.google.cloud.pubsublite.proto.Cursor cursor_;
   /**
-   *
-   *
    * 
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -84,25 +63,18 @@ public boolean hasCursor() { return cursor_ != null; } /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The new value for the committed cursor.
    * 
@@ -111,13 +83,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,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 { if (cursor_ != null) { output.writeMessage(1, getCursor()); } @@ -143,7 +113,8 @@ public int getSerializedSize() { size = 0; if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -153,17 +124,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.cloud.pubsublite.proto.SequencedCommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest other = - (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest other = (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -186,104 +157,96 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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; } /** - * - * *
    * Streaming request to update the committed cursor. Subsequent
    * SequencedCommitCursorRequests override outstanding ones.
@@ -291,32 +254,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorRequest}
    */
-  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.cloud.pubsublite.v1.SequencedCommitCursorRequest)
       com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class,
-              com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -330,14 +294,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getDefaultInstanceForType() {
       return com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance();
     }
 
@@ -352,20 +315,18 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result =
-          new com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result = new com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result) {
+    private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build();
+        result.cursor_ = cursorBuilder_ == null
+            ? cursor_
+            : cursorBuilder_.build();
       }
     }
 
@@ -373,39 +334,38 @@ private void buildPartial0(
     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.cloud.pubsublite.proto.SequencedCommitCursorRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -413,9 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest other) {
-      if (other
-          == com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance()) return this;
       if (other.hasCursor()) {
         mergeCursor(other.getCursor());
       }
@@ -445,19 +403,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCursorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -467,52 +425,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.pubsublite.proto.Cursor cursor_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
-        cursorBuilder_;
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_;
     /**
-     *
-     *
      * 
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -533,15 +477,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -552,8 +495,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -562,9 +503,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -577,8 +518,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -596,8 +535,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -610,8 +547,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -622,14 +557,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -637,24 +569,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; } - @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); } @@ -664,43 +593,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SequencedCommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SequencedCommitCursorRequest) - private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest(); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequencedCommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequencedCommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -712,8 +639,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java index c91ba2d0e..ad9be1cdc 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface SequencedCommitCursorRequestOrBuilder - extends +public interface SequencedCommitCursorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedCommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The new value for the committed cursor.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java index fb73a25fb..cd8e74666 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java @@ -1,75 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to a SequencedCommitCursorRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorResponse} */ -public final class SequencedCommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SequencedCommitCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) SequencedCommitCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SequencedCommitCursorResponse.newBuilder() to construct. private SequencedCommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SequencedCommitCursorResponse() {} + private SequencedCommitCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SequencedCommitCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); } public static final int ACKNOWLEDGED_COMMITS_FIELD_NUMBER = 1; private long acknowledgedCommits_ = 0L; /** - * - * *
    * The number of outstanding SequencedCommitCursorRequests acknowledged by
    * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -77,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int64 acknowledged_commits = 1; - * * @return The acknowledgedCommits. */ @java.lang.Override @@ -86,7 +65,6 @@ public long getAcknowledgedCommits() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,7 +76,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 (acknowledgedCommits_ != 0L) { output.writeInt64(1, acknowledgedCommits_); } @@ -112,7 +91,8 @@ public int getSerializedSize() { size = 0; if (acknowledgedCommits_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, acknowledgedCommits_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, acknowledgedCommits_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -122,15 +102,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.cloud.pubsublite.proto.SequencedCommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other = - (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other = (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) obj; - if (getAcknowledgedCommits() != other.getAcknowledgedCommits()) return false; + if (getAcknowledgedCommits() + != other.getAcknowledgedCommits()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -143,143 +123,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACKNOWLEDGED_COMMITS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcknowledgedCommits()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAcknowledgedCommits()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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 to a SequencedCommitCursorRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorResponse} */ - 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.cloud.pubsublite.v1.SequencedCommitCursorResponse) com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -289,14 +263,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } @@ -311,17 +284,13 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result = - new com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result = new com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.acknowledgedCommits_ = acknowledgedCommits_; @@ -332,50 +301,46 @@ private void buildPartial0( 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.cloud.pubsublite.proto.SequencedCommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other) { - if (other - == com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other) { + if (other == com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance()) return this; if (other.getAcknowledgedCommits() != 0L) { setAcknowledgedCommits(other.getAcknowledgedCommits()); } @@ -405,19 +370,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - acknowledgedCommits_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + acknowledgedCommits_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -427,13 +390,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long acknowledgedCommits_; + private long acknowledgedCommits_ ; /** - * - * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -441,7 +401,6 @@ public Builder mergeFrom(
      * 
* * int64 acknowledged_commits = 1; - * * @return The acknowledgedCommits. */ @java.lang.Override @@ -449,8 +408,6 @@ public long getAcknowledgedCommits() { return acknowledgedCommits_; } /** - * - * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -458,20 +415,17 @@ public long getAcknowledgedCommits() {
      * 
* * int64 acknowledged_commits = 1; - * * @param value The acknowledgedCommits to set. * @return This builder for chaining. */ public Builder setAcknowledgedCommits(long value) { - + acknowledgedCommits_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -479,7 +433,6 @@ public Builder setAcknowledgedCommits(long value) {
      * 
* * int64 acknowledged_commits = 1; - * * @return This builder for chaining. */ public Builder clearAcknowledgedCommits() { @@ -488,9 +441,9 @@ public Builder clearAcknowledgedCommits() { 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); } @@ -500,43 +453,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) - private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse(); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequencedCommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequencedCommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -548,8 +499,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java new file mode 100644 index 000000000..600da8ea9 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +package com.google.cloud.pubsublite.proto; + +public interface SequencedCommitCursorResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The number of outstanding SequencedCommitCursorRequests acknowledged by
+   * this response. Note that SequencedCommitCursorRequests are acknowledged in
+   * the order that they are received.
+   * 
+ * + * int64 acknowledged_commits = 1; + * @return The acknowledgedCommits. + */ + long getAcknowledgedCommits(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java similarity index 69% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java index 0523b4a6f..d9f1a014e 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java @@ -1,81 +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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * A message that has been stored and sequenced by the Pub/Sub Lite system.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedMessage} */ -public final class SequencedMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SequencedMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedMessage) SequencedMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SequencedMessage.newBuilder() to construct. private SequencedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SequencedMessage() {} + private SequencedMessage() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SequencedMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedMessage.class, - com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); + com.google.cloud.pubsublite.proto.SequencedMessage.class, com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); } public static final int CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasCursor() { return cursor_ != null; } /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
@@ -110,23 +82,18 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } public static final int PUBLISH_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp publishTime_; /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -134,15 +101,12 @@ public boolean hasPublishTime() { return publishTime_ != null; } /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return The publishTime. */ @java.lang.Override @@ -150,8 +114,6 @@ public com.google.protobuf.Timestamp getPublishTime() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
@@ -167,14 +129,11 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
   public static final int MESSAGE_FIELD_NUMBER = 3;
   private com.google.cloud.pubsublite.proto.PubSubMessage message_;
   /**
-   *
-   *
    * 
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return Whether the message field is set. */ @java.lang.Override @@ -182,25 +141,18 @@ public boolean hasMessage() { return message_ != null; } /** - * - * *
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return The message. */ @java.lang.Override public com.google.cloud.pubsublite.proto.PubSubMessage getMessage() { - return message_ == null - ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; } /** - * - * *
    * The user message.
    * 
@@ -209,22 +161,17 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessage() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuilder() { - return message_ == null - ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; } public static final int SIZE_BYTES_FIELD_NUMBER = 4; private long sizeBytes_ = 0L; /** - * - * *
    * The size in bytes of this message for flow control and quota purposes.
    * 
* * int64 size_bytes = 4; - * * @return The sizeBytes. */ @java.lang.Override @@ -233,7 +180,6 @@ public long getSizeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,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 (cursor_ != null) { output.writeMessage(1, getCursor()); } @@ -268,16 +215,20 @@ public int getSerializedSize() { size = 0; if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCursor()); } if (publishTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPublishTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPublishTime()); } if (message_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMessage()); } if (sizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, sizeBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, sizeBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -287,27 +238,30 @@ 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.cloud.pubsublite.proto.SequencedMessage)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SequencedMessage other = - (com.google.cloud.pubsublite.proto.SequencedMessage) obj; + com.google.cloud.pubsublite.proto.SequencedMessage other = (com.google.cloud.pubsublite.proto.SequencedMessage) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) 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 (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; } - if (getSizeBytes() != other.getSizeBytes()) return false; + if (getSizeBytes() + != other.getSizeBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -332,142 +286,137 @@ public int hashCode() { hash = (53 * hash) + getMessage().hashCode(); } hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage 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 has been stored and sequenced by the Pub/Sub Lite system.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedMessage} */ - 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.cloud.pubsublite.v1.SequencedMessage) com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedMessage.class, - com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); + com.google.cloud.pubsublite.proto.SequencedMessage.class, com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SequencedMessage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -492,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; } @java.lang.Override @@ -513,11 +462,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedMessage buildPartial() { - com.google.cloud.pubsublite.proto.SequencedMessage result = - new com.google.cloud.pubsublite.proto.SequencedMessage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SequencedMessage result = new com.google.cloud.pubsublite.proto.SequencedMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -525,14 +471,19 @@ public com.google.cloud.pubsublite.proto.SequencedMessage buildPartial() { private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.publishTime_ = - publishTimeBuilder_ == null ? publishTime_ : publishTimeBuilder_.build(); + result.publishTime_ = publishTimeBuilder_ == null + ? publishTime_ + : publishTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + result.message_ = messageBuilder_ == null + ? message_ + : messageBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.sizeBytes_ = sizeBytes_; @@ -543,39 +494,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedMessage re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SequencedMessage) { - return mergeFrom((com.google.cloud.pubsublite.proto.SequencedMessage) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SequencedMessage)other); } else { super.mergeFrom(other); return this; @@ -583,8 +533,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SequencedMessage other) { - if (other == com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()) return this; if (other.hasCursor()) { mergeCursor(other.getCursor()); } @@ -623,37 +572,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - sizeBytes_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPublishTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMessageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -663,52 +613,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -729,15 +665,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -748,8 +683,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -758,9 +691,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -773,8 +706,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -792,8 +723,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -806,8 +735,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -818,14 +745,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -833,17 +757,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; @@ -851,49 +772,36 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { 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 when the message was received by the server when it was first
      * published.
      * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time when the message was received by the server when it was first
      * published.
      * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @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 when the message was received by the server when it was first
      * published.
@@ -915,8 +823,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -924,7 +830,8 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp publish_time = 2;
      */
-    public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setPublishTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (publishTimeBuilder_ == null) {
         publishTime_ = builderForValue.build();
       } else {
@@ -935,8 +842,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -946,9 +851,9 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
      */
     public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && publishTime_ != null
-            && publishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          publishTime_ != null &&
+          publishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getPublishTimeBuilder().mergeFrom(value);
         } else {
           publishTime_ = value;
@@ -961,8 +866,6 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -981,8 +884,6 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -996,8 +897,6 @@ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
       return getPublishTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -1009,14 +908,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 when the message was received by the server when it was first
      * published.
@@ -1025,17 +921,14 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp publish_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> 
         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_;
@@ -1043,47 +936,34 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
 
     private com.google.cloud.pubsublite.proto.PubSubMessage message_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.PubSubMessage,
-            com.google.cloud.pubsublite.proto.PubSubMessage.Builder,
-            com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>
-        messageBuilder_;
+        com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> messageBuilder_;
     /**
-     *
-     *
      * 
      * The user message.
      * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The user message.
      * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return The message. */ public com.google.cloud.pubsublite.proto.PubSubMessage getMessage() { if (messageBuilder_ == null) { - return message_ == null - ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** - * - * *
      * The user message.
      * 
@@ -1104,8 +984,6 @@ public Builder setMessage(com.google.cloud.pubsublite.proto.PubSubMessage value) return this; } /** - * - * *
      * The user message.
      * 
@@ -1124,8 +1002,6 @@ public Builder setMessage( return this; } /** - * - * *
      * The user message.
      * 
@@ -1134,9 +1010,9 @@ public Builder setMessage( */ public Builder mergeMessage(com.google.cloud.pubsublite.proto.PubSubMessage value) { if (messageBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && message_ != null - && message_ != com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + message_ != null && + message_ != com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) { getMessageBuilder().mergeFrom(value); } else { message_ = value; @@ -1149,8 +1025,6 @@ public Builder mergeMessage(com.google.cloud.pubsublite.proto.PubSubMessage valu return this; } /** - * - * *
      * The user message.
      * 
@@ -1168,8 +1042,6 @@ public Builder clearMessage() { return this; } /** - * - * *
      * The user message.
      * 
@@ -1182,8 +1054,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessageBuilder return getMessageFieldBuilder().getBuilder(); } /** - * - * *
      * The user message.
      * 
@@ -1194,14 +1064,11 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuil if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { - return message_ == null - ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() - : message_; + return message_ == null ? + com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; } } /** - * - * *
      * The user message.
      * 
@@ -1209,32 +1076,26 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuil * .google.cloud.pubsublite.v1.PubSubMessage message = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( - getMessage(), getParentForChildren(), isClean()); + messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( + getMessage(), + getParentForChildren(), + isClean()); message_ = null; } return messageBuilder_; } - private long sizeBytes_; + private long sizeBytes_ ; /** - * - * *
      * The size in bytes of this message for flow control and quota purposes.
      * 
* * int64 size_bytes = 4; - * * @return The sizeBytes. */ @java.lang.Override @@ -1242,33 +1103,27 @@ public long getSizeBytes() { return sizeBytes_; } /** - * - * *
      * The size in bytes of this message for flow control and quota purposes.
      * 
* * int64 size_bytes = 4; - * * @param value The sizeBytes to set. * @return This builder for chaining. */ public Builder setSizeBytes(long value) { - + sizeBytes_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The size in bytes of this message for flow control and quota purposes.
      * 
* * int64 size_bytes = 4; - * * @return This builder for chaining. */ public Builder clearSizeBytes() { @@ -1277,9 +1132,9 @@ public Builder clearSizeBytes() { 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); } @@ -1289,12 +1144,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SequencedMessage) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SequencedMessage) private static final com.google.cloud.pubsublite.proto.SequencedMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SequencedMessage(); } @@ -1303,27 +1158,27 @@ public static com.google.cloud.pubsublite.proto.SequencedMessage getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequencedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequencedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1338,4 +1193,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SequencedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java similarity index 77% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java index f9db9fdd3..8128316c7 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface SequencedMessageOrBuilder - extends +public interface SequencedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
@@ -59,34 +35,26 @@ public interface SequencedMessageOrBuilder com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder(); /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return Whether the publishTime field is set. */ boolean hasPublishTime(); /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
@@ -97,32 +65,24 @@ public interface SequencedMessageOrBuilder
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return Whether the message field is set. */ boolean hasMessage(); /** - * - * *
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return The message. */ com.google.cloud.pubsublite.proto.PubSubMessage getMessage(); /** - * - * *
    * The user message.
    * 
@@ -132,14 +92,11 @@ public interface SequencedMessageOrBuilder com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuilder(); /** - * - * *
    * The size in bytes of this message for flow control and quota purposes.
    * 
* * int64 size_bytes = 4; - * * @return The sizeBytes. */ long getSizeBytes(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java index ba4a8798a..68c1139ed 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java @@ -1,82 +1,61 @@ -/* - * 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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * A request sent from the client to the server on a stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorRequest} */ -public final class StreamingCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamingCommitCursorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) StreamingCommitCursorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamingCommitCursorRequest.newBuilder() to construct. private StreamingCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamingCommitCursorRequest() {} + private StreamingCommitCursorRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamingCommitCursorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), COMMIT(2), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -92,36 +71,30 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return COMMIT; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return COMMIT; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -129,26 +102,21 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); } /** - * - * *
    * Initial request on the stream.
    * 
@@ -156,24 +124,20 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 2; /** - * - * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return Whether the commit field is set. */ @java.lang.Override @@ -181,26 +145,21 @@ public boolean hasCommit() { return requestCase_ == 2; } /** - * - * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return The commit. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); } /** - * - * *
    * Request to commit a new cursor value.
    * 
@@ -208,16 +167,14 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit( * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder - getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder getCommitOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,14 +186,13 @@ 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 (requestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); } if (requestCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); + output.writeMessage(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); } getUnknownFields().writeTo(output); } @@ -248,14 +204,12 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); } if (requestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,21 +219,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.cloud.pubsublite.proto.StreamingCommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest other = - (com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest other = (com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getCommit().equals(other.getCommit())) return false; + if (!getCommit() + .equals(other.getCommit())) return false; break; case 0: default: @@ -313,136 +268,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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 request sent from the client to the server on a stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorRequest} */ - 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.cloud.pubsublite.v1.StreamingCommitCursorRequest) com.google.cloud.pubsublite.proto.StreamingCommitCursorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -459,14 +407,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance(); } @@ -481,29 +428,26 @@ public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest buildPartial() { - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result = - new com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result = new com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && initialBuilder_ != null) { + if (requestCase_ == 1 && + initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && commitBuilder_ != null) { + if (requestCase_ == 2 && + commitBuilder_ != null) { result.request_ = commitBuilder_.build(); } } @@ -512,39 +456,38 @@ private void buildPartialOneofs( 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.cloud.pubsublite.proto.StreamingCommitCursorRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest)other); } else { super.mergeFrom(other); return this; @@ -552,24 +495,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest other) { - if (other - == com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance()) return this; switch (other.getRequestCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case COMMIT: - { - mergeCommit(other.getCommit()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case COMMIT: { + mergeCommit(other.getCommit()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -597,25 +535,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCommitFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getCommitFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -625,12 +564,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -643,19 +582,13 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> initialBuilder_; /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -663,14 +596,11 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return The initial. */ @java.lang.Override @@ -688,8 +618,6 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -710,8 +638,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -730,26 +656,18 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ - public Builder mergeInitial( - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest value) { + public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 - && request_ - != com.google.cloud.pubsublite.proto.InitialCommitCursorRequest - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.newBuilder( - (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 1 && + request_ != com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -765,8 +683,6 @@ public Builder mergeInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -790,21 +706,16 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ - public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder - getInitialBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder getInitialBuilder() { return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial request on the stream.
      * 
@@ -812,8 +723,7 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -824,8 +734,6 @@ public Builder clearInitial() { } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -833,20 +741,14 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { - request_ = - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_, getParentForChildren(), isClean()); @@ -858,19 +760,13 @@ public Builder clearInitial() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> - commitBuilder_; + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> commitBuilder_; /** - * - * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return Whether the commit field is set. */ @java.lang.Override @@ -878,14 +774,11 @@ public boolean hasCommit() { return requestCase_ == 2; } /** - * - * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return The commit. */ @java.lang.Override @@ -903,8 +796,6 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit( } } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -925,8 +816,6 @@ public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursor return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -945,26 +834,18 @@ public Builder setCommit( return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ - public Builder mergeCommit( - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest value) { + public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest value) { if (commitBuilder_ == null) { - if (requestCase_ == 2 - && request_ - != com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.newBuilder( - (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 2 && + request_ != com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.newBuilder((com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -980,8 +861,6 @@ public Builder mergeCommit( return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -1005,21 +884,16 @@ public Builder clearCommit() { return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder - getCommitBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -1027,8 +901,7 @@ public Builder clearCommit() { * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder - getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder getCommitOrBuilder() { if ((requestCase_ == 2) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { @@ -1039,8 +912,6 @@ public Builder clearCommit() { } } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -1048,20 +919,14 @@ public Builder clearCommit() { * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(requestCase_ == 2)) { - request_ = - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); } - commitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder>( + commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder>( (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_, getParentForChildren(), isClean()); @@ -1071,9 +936,9 @@ public Builder clearCommit() { onChanged(); return commitBuilder_; } - @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); } @@ -1083,43 +948,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) - private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest(); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingCommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingCommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,8 +994,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java index dc928ed1b..d1369a32c 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface StreamingCommitCursorRequestOrBuilder - extends +public interface StreamingCommitCursorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial(); /** - * - * *
    * Initial request on the stream.
    * 
@@ -59,32 +35,24 @@ public interface StreamingCommitCursorRequestOrBuilder com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder getInitialOrBuilder(); /** - * - * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return Whether the commit field is set. */ boolean hasCommit(); /** - * - * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return The commit. */ com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit(); /** - * - * *
    * Request to commit a new cursor value.
    * 
@@ -93,6 +61,5 @@ public interface StreamingCommitCursorRequestOrBuilder */ com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder getCommitOrBuilder(); - public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.RequestCase - getRequestCase(); + public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.RequestCase getRequestCase(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java index ba8c0fb27..0b8ae18a1 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java @@ -1,82 +1,61 @@ -/* - * 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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to a StreamingCommitCursorRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorResponse} */ -public final class StreamingCommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamingCommitCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) StreamingCommitCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamingCommitCursorResponse.newBuilder() to construct. private StreamingCommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamingCommitCursorResponse() {} + private StreamingCommitCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamingCommitCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), COMMIT(2), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -92,36 +71,30 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return COMMIT; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return COMMIT; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -129,26 +102,21 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } /** - * - * *
    * Initial response on the stream.
    * 
@@ -156,24 +124,20 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial( * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 2; /** - * - * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return Whether the commit field is set. */ @java.lang.Override @@ -181,26 +145,21 @@ public boolean hasCommit() { return requestCase_ == 2; } /** - * - * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return The commit. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } /** - * - * *
    * Response to committing a new cursor value.
    * 
@@ -208,16 +167,14 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder - getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder getCommitOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,14 +186,13 @@ 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 (requestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); } if (requestCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); + output.writeMessage(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); } getUnknownFields().writeTo(output); } @@ -248,14 +204,12 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); } if (requestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,21 +219,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.cloud.pubsublite.proto.StreamingCommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other = - (com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other = (com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getCommit().equals(other.getCommit())) return false; + if (!getCommit() + .equals(other.getCommit())) return false; break; case 0: default: @@ -313,136 +268,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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 to a StreamingCommitCursorRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorResponse} */ - 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.cloud.pubsublite.v1.StreamingCommitCursorResponse) com.google.cloud.pubsublite.proto.StreamingCommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -459,14 +407,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance(); } @@ -481,29 +428,26 @@ public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result = - new com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result = new com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && initialBuilder_ != null) { + if (requestCase_ == 1 && + initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && commitBuilder_ != null) { + if (requestCase_ == 2 && + commitBuilder_ != null) { result.request_ = commitBuilder_.build(); } } @@ -512,65 +456,58 @@ private void buildPartialOneofs( 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.cloud.pubsublite.proto.StreamingCommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other) { - if (other - == com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other) { + if (other == com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance()) return this; switch (other.getRequestCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case COMMIT: - { - mergeCommit(other.getCommit()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case COMMIT: { + mergeCommit(other.getCommit()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -598,25 +535,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCommitFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getCommitFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -626,12 +564,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -644,19 +582,13 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> initialBuilder_; /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -664,14 +596,11 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return The initial. */ @java.lang.Override @@ -689,8 +618,6 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial( } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -711,8 +638,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -731,26 +656,18 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ - public Builder mergeInitial( - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse value) { + public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorResponse value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 - && request_ - != com.google.cloud.pubsublite.proto.InitialCommitCursorResponse - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.newBuilder( - (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 1 && + request_ != com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.newBuilder((com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -766,8 +683,6 @@ public Builder mergeInitial( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -791,21 +706,16 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder - getInitialBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder getInitialBuilder() { return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial response on the stream.
      * 
@@ -813,8 +723,7 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -825,8 +734,6 @@ public Builder clearInitial() { } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -834,20 +741,14 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { - request_ = - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder>( (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_, getParentForChildren(), isClean()); @@ -859,19 +760,13 @@ public Builder clearInitial() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> - commitBuilder_; + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> commitBuilder_; /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return Whether the commit field is set. */ @java.lang.Override @@ -879,14 +774,11 @@ public boolean hasCommit() { return requestCase_ == 2; } /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return The commit. */ @java.lang.Override @@ -904,16 +796,13 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit } } /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ - public Builder setCommit( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { + public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { if (commitBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -927,8 +816,6 @@ public Builder setCommit( return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -947,26 +834,18 @@ public Builder setCommit( return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ - public Builder mergeCommit( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { + public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { if (commitBuilder_ == null) { - if (requestCase_ == 2 - && request_ - != com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.newBuilder( - (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 2 && + request_ != com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.newBuilder((com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -982,8 +861,6 @@ public Builder mergeCommit( return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -1007,21 +884,16 @@ public Builder clearCommit() { return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder - getCommitBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -1029,8 +901,7 @@ public Builder clearCommit() { * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder - getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder getCommitOrBuilder() { if ((requestCase_ == 2) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { @@ -1041,8 +912,6 @@ public Builder clearCommit() { } } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -1050,20 +919,14 @@ public Builder clearCommit() { * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(requestCase_ == 2)) { - request_ = - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } - commitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder>( + commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder>( (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_, getParentForChildren(), isClean()); @@ -1073,9 +936,9 @@ public Builder clearCommit() { onChanged(); return commitBuilder_; } - @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); } @@ -1085,43 +948,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) - private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse(); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingCommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingCommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1133,8 +994,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java index fee1fddd7..c5853a513 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface StreamingCommitCursorResponseOrBuilder - extends +public interface StreamingCommitCursorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial(); /** - * - * *
    * Initial response on the stream.
    * 
@@ -59,32 +35,24 @@ public interface StreamingCommitCursorResponseOrBuilder com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder getInitialOrBuilder(); /** - * - * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return Whether the commit field is set. */ boolean hasCommit(); /** - * - * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return The commit. */ com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit(); /** - * - * *
    * Response to committing a new cursor value.
    * 
@@ -93,6 +61,5 @@ public interface StreamingCommitCursorResponseOrBuilder */ com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder getCommitOrBuilder(); - public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.RequestCase - getRequestCase(); + public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.RequestCase getRequestCase(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java index 4df35201a..771b035e4 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java @@ -1,83 +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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * A request sent from the client to the server on a stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeRequest} */ -public final class SubscribeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SubscribeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SubscribeRequest) SubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SubscribeRequest.newBuilder() to construct. private SubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SubscribeRequest() {} + private SubscribeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubscribeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeRequest.class, - com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeRequest.class, com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), SEEK(2), FLOW_CONTROL(3), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -93,38 +72,31 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return SEEK; - case 3: - return FLOW_CONTROL; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return SEEK; + case 3: return FLOW_CONTROL; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -132,26 +104,21 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; } return com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance(); } /** - * - * *
    * Initial request on the stream.
    * 
@@ -161,21 +128,18 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; } return com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance(); } public static final int SEEK_FIELD_NUMBER = 2; /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return Whether the seek field is set. */ @java.lang.Override @@ -183,26 +147,21 @@ public boolean hasSeek() { return requestCase_ == 2; } /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return The seek. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekRequest) request_; + return (com.google.cloud.pubsublite.proto.SeekRequest) request_; } return com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance(); } /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
@@ -212,21 +171,18 @@ public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekRequest) request_; + return (com.google.cloud.pubsublite.proto.SeekRequest) request_; } return com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance(); } public static final int FLOW_CONTROL_FIELD_NUMBER = 3; /** - * - * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return Whether the flowControl field is set. */ @java.lang.Override @@ -234,26 +190,21 @@ public boolean hasFlowControl() { return requestCase_ == 3; } /** - * - * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return The flowControl. */ @java.lang.Override public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { if (requestCase_ == 3) { - return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; + return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; } return com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance(); } /** - * - * *
    * Request to grant tokens to the server,
    * 
@@ -263,13 +214,12 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { @java.lang.Override public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowControlOrBuilder() { if (requestCase_ == 3) { - return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; + return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; } return com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +231,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 (requestCase_ == 1) { output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); } @@ -301,19 +252,16 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); } if (requestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.SeekRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SeekRequest) request_); } if (requestCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.pubsublite.proto.FlowControlRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.pubsublite.proto.FlowControlRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -323,24 +271,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.cloud.pubsublite.proto.SubscribeRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SubscribeRequest other = - (com.google.cloud.pubsublite.proto.SubscribeRequest) obj; + com.google.cloud.pubsublite.proto.SubscribeRequest other = (com.google.cloud.pubsublite.proto.SubscribeRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getSeek().equals(other.getSeek())) return false; + if (!getSeek() + .equals(other.getSeek())) return false; break; case 3: - if (!getFlowControl().equals(other.getFlowControl())) return false; + if (!getFlowControl() + .equals(other.getFlowControl())) return false; break; case 0: default: @@ -378,135 +328,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SubscribeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest 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 request sent from the client to the server on a stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeRequest} */ - 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.cloud.pubsublite.v1.SubscribeRequest) com.google.cloud.pubsublite.proto.SubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeRequest.class, - com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeRequest.class, com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SubscribeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -526,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; } @java.lang.Override @@ -547,11 +491,8 @@ public com.google.cloud.pubsublite.proto.SubscribeRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SubscribeRequest buildPartial() { - com.google.cloud.pubsublite.proto.SubscribeRequest result = - new com.google.cloud.pubsublite.proto.SubscribeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SubscribeRequest result = new com.google.cloud.pubsublite.proto.SubscribeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -564,13 +505,16 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SubscribeRequest re private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeRequest result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && initialBuilder_ != null) { + if (requestCase_ == 1 && + initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && seekBuilder_ != null) { + if (requestCase_ == 2 && + seekBuilder_ != null) { result.request_ = seekBuilder_.build(); } - if (requestCase_ == 3 && flowControlBuilder_ != null) { + if (requestCase_ == 3 && + flowControlBuilder_ != null) { result.request_ = flowControlBuilder_.build(); } } @@ -579,39 +523,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeReque 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.cloud.pubsublite.proto.SubscribeRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeRequest)other); } else { super.mergeFrom(other); return this; @@ -619,28 +562,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SubscribeRequest other) { - if (other == com.google.cloud.pubsublite.proto.SubscribeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SubscribeRequest.getDefaultInstance()) return this; switch (other.getRequestCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case SEEK: - { - mergeSeek(other.getSeek()); - break; - } - case FLOW_CONTROL: - { - mergeFlowControl(other.getFlowControl()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case SEEK: { + mergeSeek(other.getSeek()); + break; + } + case FLOW_CONTROL: { + mergeFlowControl(other.getFlowControl()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -668,31 +606,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getSeekFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getFlowControlFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getSeekFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getFlowControlFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -702,12 +642,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -720,19 +660,13 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeRequest, - com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialSubscribeRequest, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> initialBuilder_; /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -740,14 +674,11 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return The initial. */ @java.lang.Override @@ -765,8 +696,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -787,8 +716,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRequ return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -807,8 +734,6 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -817,14 +742,10 @@ public Builder setInitial( */ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRequest value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 - && request_ - != com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.InitialSubscribeRequest.newBuilder( - (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 1 && + request_ != com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.InitialSubscribeRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -840,8 +761,6 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -865,8 +784,6 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -877,8 +794,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial request on the stream.
      * 
@@ -886,8 +801,7 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -898,8 +812,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -907,19 +819,14 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeRequest, - com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialSubscribeRequest, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeRequest, - com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialSubscribeRequest, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_, getParentForChildren(), isClean()); @@ -931,19 +838,13 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> - seekBuilder_; + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> seekBuilder_; /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return Whether the seek field is set. */ @java.lang.Override @@ -951,14 +852,11 @@ public boolean hasSeek() { return requestCase_ == 2; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return The seek. */ @java.lang.Override @@ -976,8 +874,6 @@ public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { } } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -998,15 +894,14 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; */ - public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest.Builder builderForValue) { + public Builder setSeek( + com.google.cloud.pubsublite.proto.SeekRequest.Builder builderForValue) { if (seekBuilder_ == null) { request_ = builderForValue.build(); onChanged(); @@ -1017,8 +912,6 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest.Builder bui return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1027,13 +920,10 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest.Builder bui */ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { if (seekBuilder_ == null) { - if (requestCase_ == 2 - && request_ != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.SeekRequest.newBuilder( - (com.google.cloud.pubsublite.proto.SeekRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 2 && + request_ != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.SeekRequest.newBuilder((com.google.cloud.pubsublite.proto.SeekRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1049,8 +939,6 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1074,8 +962,6 @@ public Builder clearSeek() { return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1086,8 +972,6 @@ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1106,8 +990,6 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() } } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1115,19 +997,14 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() * .google.cloud.pubsublite.v1.SeekRequest seek = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> getSeekFieldBuilder() { if (seekBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance(); } - seekBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( + seekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( (com.google.cloud.pubsublite.proto.SeekRequest) request_, getParentForChildren(), isClean()); @@ -1139,19 +1016,13 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.FlowControlRequest, - com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, - com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> - flowControlBuilder_; + com.google.cloud.pubsublite.proto.FlowControlRequest, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> flowControlBuilder_; /** - * - * *
      * Request to grant tokens to the server,
      * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return Whether the flowControl field is set. */ @java.lang.Override @@ -1159,14 +1030,11 @@ public boolean hasFlowControl() { return requestCase_ == 3; } /** - * - * *
      * Request to grant tokens to the server,
      * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return The flowControl. */ @java.lang.Override @@ -1184,8 +1052,6 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { } } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1206,8 +1072,6 @@ public Builder setFlowControl(com.google.cloud.pubsublite.proto.FlowControlReque return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1226,8 +1090,6 @@ public Builder setFlowControl( return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1236,14 +1098,10 @@ public Builder setFlowControl( */ public Builder mergeFlowControl(com.google.cloud.pubsublite.proto.FlowControlRequest value) { if (flowControlBuilder_ == null) { - if (requestCase_ == 3 - && request_ - != com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.FlowControlRequest.newBuilder( - (com.google.cloud.pubsublite.proto.FlowControlRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 3 && + request_ != com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.FlowControlRequest.newBuilder((com.google.cloud.pubsublite.proto.FlowControlRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1259,8 +1117,6 @@ public Builder mergeFlowControl(com.google.cloud.pubsublite.proto.FlowControlReq return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1284,8 +1140,6 @@ public Builder clearFlowControl() { return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1296,8 +1150,6 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest.Builder getFlowContr return getFlowControlFieldBuilder().getBuilder(); } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1316,8 +1168,6 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont } } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1325,19 +1175,14 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.FlowControlRequest, - com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, - com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> + com.google.cloud.pubsublite.proto.FlowControlRequest, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> getFlowControlFieldBuilder() { if (flowControlBuilder_ == null) { if (!(requestCase_ == 3)) { request_ = com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance(); } - flowControlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.FlowControlRequest, - com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, - com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder>( + flowControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.FlowControlRequest, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder>( (com.google.cloud.pubsublite.proto.FlowControlRequest) request_, getParentForChildren(), isClean()); @@ -1347,9 +1192,9 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont onChanged(); return flowControlBuilder_; } - @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); } @@ -1359,12 +1204,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SubscribeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SubscribeRequest) private static final com.google.cloud.pubsublite.proto.SubscribeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SubscribeRequest(); } @@ -1373,27 +1218,27 @@ public static com.google.cloud.pubsublite.proto.SubscribeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1408,4 +1253,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SubscribeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java similarity index 77% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java index bb7dbe64f..381f15abd 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface SubscribeRequestOrBuilder - extends +public interface SubscribeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SubscribeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial(); /** - * - * *
    * Initial request on the stream.
    * 
@@ -59,32 +35,24 @@ public interface SubscribeRequestOrBuilder com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getInitialOrBuilder(); /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return Whether the seek field is set. */ boolean hasSeek(); /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return The seek. */ com.google.cloud.pubsublite.proto.SeekRequest getSeek(); /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
@@ -94,32 +62,24 @@ public interface SubscribeRequestOrBuilder com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder(); /** - * - * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return Whether the flowControl field is set. */ boolean hasFlowControl(); /** - * - * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return The flowControl. */ com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl(); /** - * - * *
    * Request to grant tokens to the server,
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java index 41e5ba05d..487b4a8da 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java @@ -1,83 +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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to SubscribeRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeResponse} */ -public final class SubscribeResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SubscribeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SubscribeResponse) SubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SubscribeResponse.newBuilder() to construct. private SubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SubscribeResponse() {} + private SubscribeResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubscribeResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeResponse.class, - com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeResponse.class, com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); } private int responseCase_ = 0; private java.lang.Object response_; - public enum ResponseCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), SEEK(2), MESSAGES(3), RESPONSE_NOT_SET(0); private final int value; - private ResponseCase(int value) { this.value = value; } @@ -93,38 +72,31 @@ public static ResponseCase valueOf(int value) { public static ResponseCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return SEEK; - case 3: - return MESSAGES; - case 0: - return RESPONSE_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return SEEK; + case 3: return MESSAGES; + case 0: return RESPONSE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResponseCase getResponseCase() { - return ResponseCase.forNumber(responseCase_); + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -132,26 +104,21 @@ public boolean hasInitial() { return responseCase_ == 1; } /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { if (responseCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; } return com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); } /** - * - * *
    * Initial response on the stream.
    * 
@@ -161,21 +128,18 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getInitialOrBuilder() { if (responseCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; } return com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); } public static final int SEEK_FIELD_NUMBER = 2; /** - * - * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return Whether the seek field is set. */ @java.lang.Override @@ -183,26 +147,21 @@ public boolean hasSeek() { return responseCase_ == 2; } /** - * - * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return The seek. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { if (responseCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekResponse) response_; + return (com.google.cloud.pubsublite.proto.SeekResponse) response_; } return com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance(); } /** - * - * *
    * Response to a Seek operation.
    * 
@@ -212,21 +171,18 @@ public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder() { if (responseCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekResponse) response_; + return (com.google.cloud.pubsublite.proto.SeekResponse) response_; } return com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance(); } public static final int MESSAGES_FIELD_NUMBER = 3; /** - * - * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return Whether the messages field is set. */ @java.lang.Override @@ -234,26 +190,21 @@ public boolean hasMessages() { return responseCase_ == 3; } /** - * - * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return The messages. */ @java.lang.Override public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { if (responseCase_ == 3) { - return (com.google.cloud.pubsublite.proto.MessageResponse) response_; + return (com.google.cloud.pubsublite.proto.MessageResponse) response_; } return com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance(); } /** - * - * *
    * Response containing messages from the topic partition.
    * 
@@ -263,13 +214,12 @@ public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { @java.lang.Override public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrBuilder() { if (responseCase_ == 3) { - return (com.google.cloud.pubsublite.proto.MessageResponse) response_; + return (com.google.cloud.pubsublite.proto.MessageResponse) response_; } return com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,10 +231,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 { if (responseCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); } if (responseCase_ == 2) { output.writeMessage(2, (com.google.cloud.pubsublite.proto.SeekResponse) response_); @@ -302,19 +252,16 @@ public int getSerializedSize() { size = 0; if (responseCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); } if (responseCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.SeekResponse) response_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SeekResponse) response_); } if (responseCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.pubsublite.proto.MessageResponse) response_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.pubsublite.proto.MessageResponse) response_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -324,24 +271,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.cloud.pubsublite.proto.SubscribeResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SubscribeResponse other = - (com.google.cloud.pubsublite.proto.SubscribeResponse) obj; + com.google.cloud.pubsublite.proto.SubscribeResponse other = (com.google.cloud.pubsublite.proto.SubscribeResponse) obj; if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getSeek().equals(other.getSeek())) return false; + if (!getSeek() + .equals(other.getSeek())) return false; break; case 3: - if (!getMessages().equals(other.getMessages())) return false; + if (!getMessages() + .equals(other.getMessages())) return false; break; case 0: default: @@ -379,135 +328,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SubscribeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse 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 to SubscribeRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeResponse} */ - 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.cloud.pubsublite.v1.SubscribeResponse) com.google.cloud.pubsublite.proto.SubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeResponse.class, - com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeResponse.class, com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SubscribeResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -527,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; } @java.lang.Override @@ -548,11 +491,8 @@ public com.google.cloud.pubsublite.proto.SubscribeResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SubscribeResponse buildPartial() { - com.google.cloud.pubsublite.proto.SubscribeResponse result = - new com.google.cloud.pubsublite.proto.SubscribeResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SubscribeResponse result = new com.google.cloud.pubsublite.proto.SubscribeResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -565,13 +505,16 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SubscribeResponse r private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeResponse result) { result.responseCase_ = responseCase_; result.response_ = this.response_; - if (responseCase_ == 1 && initialBuilder_ != null) { + if (responseCase_ == 1 && + initialBuilder_ != null) { result.response_ = initialBuilder_.build(); } - if (responseCase_ == 2 && seekBuilder_ != null) { + if (responseCase_ == 2 && + seekBuilder_ != null) { result.response_ = seekBuilder_.build(); } - if (responseCase_ == 3 && messagesBuilder_ != null) { + if (responseCase_ == 3 && + messagesBuilder_ != null) { result.response_ = messagesBuilder_.build(); } } @@ -580,39 +523,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeRespo 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.cloud.pubsublite.proto.SubscribeResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeResponse)other); } else { super.mergeFrom(other); return this; @@ -620,28 +562,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SubscribeResponse other) { - if (other == com.google.cloud.pubsublite.proto.SubscribeResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SubscribeResponse.getDefaultInstance()) return this; switch (other.getResponseCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case SEEK: - { - mergeSeek(other.getSeek()); - break; - } - case MESSAGES: - { - mergeMessages(other.getMessages()); - break; - } - case RESPONSE_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case SEEK: { + mergeSeek(other.getSeek()); + break; + } + case MESSAGES: { + mergeMessages(other.getMessages()); + break; + } + case RESPONSE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -669,31 +606,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getSeekFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getMessagesFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getSeekFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getMessagesFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -703,12 +642,12 @@ public Builder mergeFrom( } // finally return this; } - private int responseCase_ = 0; private java.lang.Object response_; - - public ResponseCase getResponseCase() { - return ResponseCase.forNumber(responseCase_); + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); } public Builder clearResponse() { @@ -721,19 +660,13 @@ public Builder clearResponse() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeResponse, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialSubscribeResponse, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> initialBuilder_; /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -741,14 +674,11 @@ public boolean hasInitial() { return responseCase_ == 1; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return The initial. */ @java.lang.Override @@ -766,8 +696,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -788,8 +716,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeResp return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -808,8 +734,6 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -818,15 +742,10 @@ public Builder setInitial( */ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeResponse value) { if (initialBuilder_ == null) { - if (responseCase_ == 1 - && response_ - != com.google.cloud.pubsublite.proto.InitialSubscribeResponse - .getDefaultInstance()) { - response_ = - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.newBuilder( - (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 1 && + response_ != com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance()) { + response_ = com.google.cloud.pubsublite.proto.InitialSubscribeResponse.newBuilder((com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -842,8 +761,6 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -867,8 +784,6 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -879,8 +794,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial response on the stream.
      * 
@@ -888,8 +801,7 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getInitialOrBuilder() { if ((responseCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -900,8 +812,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -909,20 +819,14 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeResponse, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> + com.google.cloud.pubsublite.proto.InitialSubscribeResponse, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(responseCase_ == 1)) { - response_ = - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); + response_ = com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeResponse, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialSubscribeResponse, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder>( (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_, getParentForChildren(), isClean()); @@ -934,19 +838,13 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekResponse, - com.google.cloud.pubsublite.proto.SeekResponse.Builder, - com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> - seekBuilder_; + com.google.cloud.pubsublite.proto.SeekResponse, com.google.cloud.pubsublite.proto.SeekResponse.Builder, com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> seekBuilder_; /** - * - * *
      * Response to a Seek operation.
      * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return Whether the seek field is set. */ @java.lang.Override @@ -954,14 +852,11 @@ public boolean hasSeek() { return responseCase_ == 2; } /** - * - * *
      * Response to a Seek operation.
      * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return The seek. */ @java.lang.Override @@ -979,8 +874,6 @@ public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { } } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1001,15 +894,14 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { return this; } /** - * - * *
      * Response to a Seek operation.
      * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; */ - public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse.Builder builderForValue) { + public Builder setSeek( + com.google.cloud.pubsublite.proto.SeekResponse.Builder builderForValue) { if (seekBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1020,8 +912,6 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse.Builder bu return this; } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1030,13 +920,10 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse.Builder bu */ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { if (seekBuilder_ == null) { - if (responseCase_ == 2 - && response_ != com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance()) { - response_ = - com.google.cloud.pubsublite.proto.SeekResponse.newBuilder( - (com.google.cloud.pubsublite.proto.SeekResponse) response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 2 && + response_ != com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance()) { + response_ = com.google.cloud.pubsublite.proto.SeekResponse.newBuilder((com.google.cloud.pubsublite.proto.SeekResponse) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -1052,8 +939,6 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { return this; } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1077,8 +962,6 @@ public Builder clearSeek() { return this; } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1089,8 +972,6 @@ public com.google.cloud.pubsublite.proto.SeekResponse.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1109,8 +990,6 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( } } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1118,19 +997,14 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( * .google.cloud.pubsublite.v1.SeekResponse seek = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekResponse, - com.google.cloud.pubsublite.proto.SeekResponse.Builder, - com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> + com.google.cloud.pubsublite.proto.SeekResponse, com.google.cloud.pubsublite.proto.SeekResponse.Builder, com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> getSeekFieldBuilder() { if (seekBuilder_ == null) { if (!(responseCase_ == 2)) { response_ = com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance(); } - seekBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekResponse, - com.google.cloud.pubsublite.proto.SeekResponse.Builder, - com.google.cloud.pubsublite.proto.SeekResponseOrBuilder>( + seekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SeekResponse, com.google.cloud.pubsublite.proto.SeekResponse.Builder, com.google.cloud.pubsublite.proto.SeekResponseOrBuilder>( (com.google.cloud.pubsublite.proto.SeekResponse) response_, getParentForChildren(), isClean()); @@ -1142,19 +1016,13 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessageResponse, - com.google.cloud.pubsublite.proto.MessageResponse.Builder, - com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> - messagesBuilder_; + com.google.cloud.pubsublite.proto.MessageResponse, com.google.cloud.pubsublite.proto.MessageResponse.Builder, com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> messagesBuilder_; /** - * - * *
      * Response containing messages from the topic partition.
      * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return Whether the messages field is set. */ @java.lang.Override @@ -1162,14 +1030,11 @@ public boolean hasMessages() { return responseCase_ == 3; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return The messages. */ @java.lang.Override @@ -1187,8 +1052,6 @@ public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { } } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1209,8 +1072,6 @@ public Builder setMessages(com.google.cloud.pubsublite.proto.MessageResponse val return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1229,8 +1090,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1239,14 +1098,10 @@ public Builder setMessages( */ public Builder mergeMessages(com.google.cloud.pubsublite.proto.MessageResponse value) { if (messagesBuilder_ == null) { - if (responseCase_ == 3 - && response_ - != com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance()) { - response_ = - com.google.cloud.pubsublite.proto.MessageResponse.newBuilder( - (com.google.cloud.pubsublite.proto.MessageResponse) response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 3 && + response_ != com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance()) { + response_ = com.google.cloud.pubsublite.proto.MessageResponse.newBuilder((com.google.cloud.pubsublite.proto.MessageResponse) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -1262,8 +1117,6 @@ public Builder mergeMessages(com.google.cloud.pubsublite.proto.MessageResponse v return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1287,8 +1140,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1299,8 +1150,6 @@ public com.google.cloud.pubsublite.proto.MessageResponse.Builder getMessagesBuil return getMessagesFieldBuilder().getBuilder(); } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1319,8 +1168,6 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB } } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1328,19 +1175,14 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB * .google.cloud.pubsublite.v1.MessageResponse messages = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessageResponse, - com.google.cloud.pubsublite.proto.MessageResponse.Builder, - com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> + com.google.cloud.pubsublite.proto.MessageResponse, com.google.cloud.pubsublite.proto.MessageResponse.Builder, com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance(); } - messagesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessageResponse, - com.google.cloud.pubsublite.proto.MessageResponse.Builder, - com.google.cloud.pubsublite.proto.MessageResponseOrBuilder>( + messagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessageResponse, com.google.cloud.pubsublite.proto.MessageResponse.Builder, com.google.cloud.pubsublite.proto.MessageResponseOrBuilder>( (com.google.cloud.pubsublite.proto.MessageResponse) response_, getParentForChildren(), isClean()); @@ -1350,9 +1192,9 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB onChanged(); 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); } @@ -1362,12 +1204,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SubscribeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SubscribeResponse) private static final com.google.cloud.pubsublite.proto.SubscribeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SubscribeResponse(); } @@ -1376,27 +1218,27 @@ public static com.google.cloud.pubsublite.proto.SubscribeResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1411,4 +1253,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SubscribeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java similarity index 77% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java index a0b75eb32..f50b36bdd 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface SubscribeResponseOrBuilder - extends +public interface SubscribeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SubscribeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial(); /** - * - * *
    * Initial response on the stream.
    * 
@@ -59,32 +35,24 @@ public interface SubscribeResponseOrBuilder com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getInitialOrBuilder(); /** - * - * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return Whether the seek field is set. */ boolean hasSeek(); /** - * - * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return The seek. */ com.google.cloud.pubsublite.proto.SeekResponse getSeek(); /** - * - * *
    * Response to a Seek operation.
    * 
@@ -94,32 +62,24 @@ public interface SubscribeResponseOrBuilder com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder(); /** - * - * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return Whether the messages field is set. */ boolean hasMessages(); /** - * - * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return The messages. */ com.google.cloud.pubsublite.proto.MessageResponse getMessages(); /** - * - * *
    * Response containing messages from the topic partition.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java new file mode 100644 index 000000000..1a12e6d72 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java @@ -0,0 +1,240 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/subscriber.proto + +package com.google.cloud.pubsublite.proto; + +public final class SubscriberProto { + private SubscriberProto() {} + 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_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_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+google/cloud/pubsublite/v1/subscriber." + + "proto\022\032google.cloud.pubsublite.v1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\'google/cloud/pubsublite/v1/common.pro" + + "to\"\212\001\n\027InitialSubscribeRequest\022\024\n\014subscr" + + "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022F\n\020initi" + + "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" + + "ite.v1.SeekRequestB\003\340A\001\"N\n\030InitialSubscr" + + "ibeResponse\0222\n\006cursor\030\001 \001(\0132\".google.clo" + + "ud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest\022" + + "K\n\014named_target\030\001 \001(\01623.google.cloud.pub" + + "sublite.v1.SeekRequest.NamedTargetH\000\0224\n\006" + + "cursor\030\002 \001(\0132\".google.cloud.pubsublite.v" + + "1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARGE" + + "T_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_C" + + "URSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cur" + + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + + "ursor\"E\n\022FlowControlRequest\022\030\n\020allowed_m" + + "essages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001\n" + + "\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.goo" + + "gle.cloud.pubsublite.v1.InitialSubscribe" + + "RequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud.p" + + "ubsublite.v1.SeekRequestH\000\022F\n\014flow_contr" + + "ol\030\003 \001(\0132..google.cloud.pubsublite.v1.Fl" + + "owControlRequestH\000B\t\n\007request\"Q\n\017Message" + + "Response\022>\n\010messages\030\001 \003(\0132,.google.clou" + + "d.pubsublite.v1.SequencedMessage\"\343\001\n\021Sub" + + "scribeResponse\022G\n\007initial\030\001 \001(\01324.google" + + ".cloud.pubsublite.v1.InitialSubscribeRes" + + "ponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pub" + + "sublite.v1.SeekResponseH\000\022?\n\010messages\030\003 " + + "\001(\0132+.google.cloud.pubsublite.v1.Message" + + "ResponseH\000B\n\n\010response\"L\n!InitialPartiti" + + "onAssignmentRequest\022\024\n\014subscription\030\001 \001(" + + "\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssignm" + + "ent\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAssi" + + "gnmentAck\"\274\001\n\032PartitionAssignmentRequest" + + "\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsubl" + + "ite.v1.InitialPartitionAssignmentRequest" + + "H\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsublit" + + "e.v1.PartitionAssignmentAckH\000B\t\n\007request" + + "2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.go" + + "ogle.cloud.pubsublite.v1.SubscribeReques" + + "t\032-.google.cloud.pubsublite.v1.Subscribe" + + "Response\"\000(\0010\001\032M\312A\031pubsublite.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platform2\357\001\n\032PartitionAssignmentSer" + + "vice\022\201\001\n\020AssignPartitions\0226.google.cloud" + + ".pubsublite.v1.PartitionAssignmentReques" + + "t\032/.google.cloud.pubsublite.v1.Partition" + + "Assignment\"\000(\0010\001\032M\312A\031pubsublite.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\323\001\n!com.google.cloud.pub" + + "sublite.protoB\017SubscriberProtoP\001Z>cloud." + + "google.com/go/pubsublite/apiv1/pubsublit" + + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + + "Google::Cloud::PubSubLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor, + new java.lang.String[] { "Subscription", "Partition", "InitialLocation", }); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor, + new java.lang.String[] { "Cursor", }); + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor, + new java.lang.String[] { "NamedTarget", "Cursor", "Target", }); + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor, + new java.lang.String[] { "Cursor", }); + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor, + new java.lang.String[] { "AllowedMessages", "AllowedBytes", }); + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor, + new java.lang.String[] { "Initial", "Seek", "FlowControl", "Request", }); + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor, + new java.lang.String[] { "Messages", }); + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor, + new java.lang.String[] { "Initial", "Seek", "Messages", "Response", }); + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor, + new java.lang.String[] { "Subscription", "ClientId", }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor, + new java.lang.String[] { "Partitions", }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor, + new java.lang.String[] { "Initial", "Ack", "Request", }); + 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.ClientProto.oauthScopes); + 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java index 75c65586b..2530d3dd3 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Metadata about a subscription resource.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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_ = ""; @@ -44,130 +26,109 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.class, - com.google.cloud.pubsublite.proto.Subscription.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.class, com.google.cloud.pubsublite.proto.Subscription.Builder.class); } - public interface DeliveryConfigOrBuilder - extends + public interface DeliveryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The DeliveryRequirement for this subscription.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The enum numeric value on the wire for deliveryRequirement. */ int getDeliveryRequirementValue(); /** - * - * *
      * The DeliveryRequirement for this subscription.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The deliveryRequirement. */ - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - getDeliveryRequirement(); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement(); } /** - * - * *
    * The settings for a subscription's message delivery.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Subscription.DeliveryConfig} */ - public static final class DeliveryConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DeliveryConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) DeliveryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeliveryConfig.newBuilder() to construct. private DeliveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeliveryConfig() { deliveryRequirement_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeliveryConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); } /** - * - * *
      * When this subscription should send messages to subscribers relative to
      * messages persistence in storage. For details, see [Creating Lite
      * subscriptions](https://cloud.google.com/pubsub/lite/docs/subscriptions#creating_lite_subscriptions).
      * 
* - * Protobuf enum {@code - * google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement} + * Protobuf enum {@code google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement} */ - public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEnum { + public enum DeliveryRequirement + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Default value. This value is unused.
        * 
@@ -176,8 +137,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn */ DELIVERY_REQUIREMENT_UNSPECIFIED(0), /** - * - * *
        * The server does not wait for a published message to be successfully
        * written to storage before delivering it to subscribers.
@@ -187,8 +146,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn
        */
       DELIVER_IMMEDIATELY(1),
       /**
-       *
-       *
        * 
        * The server will not deliver a published message to subscribers until
        * the message has been successfully written to storage. This will result
@@ -202,8 +159,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn
       ;
 
       /**
-       *
-       *
        * 
        * Default value. This value is unused.
        * 
@@ -212,8 +167,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn */ public static final int DELIVERY_REQUIREMENT_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The server does not wait for a published message to be successfully
        * written to storage before delivering it to subscribers.
@@ -223,8 +176,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn
        */
       public static final int DELIVER_IMMEDIATELY_VALUE = 1;
       /**
-       *
-       *
        * 
        * The server will not deliver a published message to subscribers until
        * the message has been successfully written to storage. This will result
@@ -235,6 +186,7 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn
        */
       public static final int DELIVER_AFTER_STORED_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -259,14 +211,10 @@ public static DeliveryRequirement valueOf(int value) {
        */
       public static DeliveryRequirement forNumber(int value) {
         switch (value) {
-          case 0:
-            return DELIVERY_REQUIREMENT_UNSPECIFIED;
-          case 1:
-            return DELIVER_IMMEDIATELY;
-          case 2:
-            return DELIVER_AFTER_STORED;
-          default:
-            return null;
+          case 0: return DELIVERY_REQUIREMENT_UNSPECIFIED;
+          case 1: return DELIVER_IMMEDIATELY;
+          case 2: return DELIVER_AFTER_STORED;
+          default: return null;
         }
       }
 
@@ -274,31 +222,29 @@ public static DeliveryRequirement forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          DeliveryRequirement> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public DeliveryRequirement findValueByNumber(int number) {
+                return DeliveryRequirement.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public DeliveryRequirement findValueByNumber(int number) {
-                  return DeliveryRequirement.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() {
-        return com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final DeliveryRequirement[] VALUES = values();
@@ -306,7 +252,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static DeliveryRequirement 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;
@@ -326,49 +273,30 @@ private DeliveryRequirement(int value) {
     public static final int DELIVERY_REQUIREMENT_FIELD_NUMBER = 3;
     private int deliveryRequirement_ = 0;
     /**
-     *
-     *
      * 
      * The DeliveryRequirement for this subscription.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The enum numeric value on the wire for deliveryRequirement. */ - @java.lang.Override - public int getDeliveryRequirementValue() { + @java.lang.Override public int getDeliveryRequirementValue() { return deliveryRequirement_; } /** - * - * *
      * The DeliveryRequirement for this subscription.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The deliveryRequirement. */ - @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - getDeliveryRequirement() { - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .forNumber(deliveryRequirement_); - return result == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement() { + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.forNumber(deliveryRequirement_); + return result == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,11 +308,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (deliveryRequirement_ - != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .DELIVERY_REQUIREMENT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (deliveryRequirement_ != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.DELIVERY_REQUIREMENT_UNSPECIFIED.getNumber()) { output.writeEnum(3, deliveryRequirement_); } getUnknownFields().writeTo(output); @@ -396,11 +322,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (deliveryRequirement_ - != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .DELIVERY_REQUIREMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, deliveryRequirement_); + if (deliveryRequirement_ != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.DELIVERY_REQUIREMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, deliveryRequirement_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -410,13 +334,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.cloud.pubsublite.proto.Subscription.DeliveryConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other = - (com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) obj; + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other = (com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) obj; if (deliveryRequirement_ != other.deliveryRequirement_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -438,94 +361,87 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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 @@ -535,41 +451,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The settings for a subscription's message delivery.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Subscription.DeliveryConfig} */ - 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.cloud.pubsublite.v1.Subscription.DeliveryConfig) com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -579,14 +493,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance(); } @@ -601,17 +514,13 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig buildPartial() { - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result = - new com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result = new com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.deliveryRequirement_ = deliveryRequirement_; @@ -622,52 +531,46 @@ private void buildPartial0( 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.cloud.pubsublite.proto.Subscription.DeliveryConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other) { - if (other - == com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other) { + if (other == com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance()) return this; if (other.deliveryRequirement_ != 0) { setDeliveryRequirementValue(other.getDeliveryRequirementValue()); } @@ -697,19 +600,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - deliveryRequirement_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + deliveryRequirement_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,38 +620,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int deliveryRequirement_ = 0; /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The enum numeric value on the wire for deliveryRequirement. */ - @java.lang.Override - public int getDeliveryRequirementValue() { + @java.lang.Override public int getDeliveryRequirementValue() { return deliveryRequirement_; } /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @param value The enum numeric value on the wire for deliveryRequirement to set. * @return This builder for chaining. */ @@ -761,45 +650,28 @@ public Builder setDeliveryRequirementValue(int value) { return this; } /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The deliveryRequirement. */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - getDeliveryRequirement() { - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .forNumber(deliveryRequirement_); - return result == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .UNRECOGNIZED - : result; + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement() { + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.forNumber(deliveryRequirement_); + return result == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.UNRECOGNIZED : result; } /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @param value The deliveryRequirement to set. * @return This builder for chaining. */ - public Builder setDeliveryRequirement( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement value) { + public Builder setDeliveryRequirement(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement value) { if (value == null) { throw new NullPointerException(); } @@ -809,16 +681,11 @@ public Builder setDeliveryRequirement( return this; } /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return This builder for chaining. */ public Builder clearDeliveryRequirement() { @@ -827,7 +694,6 @@ public Builder clearDeliveryRequirement() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -840,44 +706,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) - private static final com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig(); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeliveryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeliveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -889,19 +752,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the subscription.
    * Structured like:
@@ -909,7 +769,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -918,15 +777,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; } } /** - * - * *
    * The name of the subscription.
    * Structured like:
@@ -934,15 +792,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -951,12 +810,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TOPIC_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -964,7 +820,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ @java.lang.Override @@ -973,15 +828,14 @@ 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 this subscription is attached to.
    * Structured like:
@@ -989,15 +843,16 @@ public java.lang.String getTopic() {
    * 
* * 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 { @@ -1008,14 +863,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int DELIVERY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig deliveryConfig_; /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return Whether the deliveryConfig field is set. */ @java.lang.Override @@ -1023,25 +875,18 @@ public boolean hasDeliveryConfig() { return deliveryConfig_ != null; } /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return The deliveryConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDeliveryConfig() { - return deliveryConfig_ == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() - : deliveryConfig_; + return deliveryConfig_ == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; } /** - * - * *
    * The settings for this subscription's message delivery.
    * 
@@ -1049,25 +894,19 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDelivery * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder - getDeliveryConfigOrBuilder() { - return deliveryConfig_ == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() - : deliveryConfig_; + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder() { + return deliveryConfig_ == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; } public static final int EXPORT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.ExportConfig exportConfig_; /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return Whether the exportConfig field is set. */ @java.lang.Override @@ -1075,26 +914,19 @@ public boolean hasExportConfig() { return exportConfig_ != null; } /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return The exportConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig getExportConfig() { - return exportConfig_ == null - ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() - : exportConfig_; + return exportConfig_ == null ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_; } /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
@@ -1104,13 +936,10 @@ public com.google.cloud.pubsublite.proto.ExportConfig getExportConfig() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.ExportConfigOrBuilder getExportConfigOrBuilder() {
-    return exportConfig_ == null
-        ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()
-        : exportConfig_;
+    return exportConfig_ == null ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1122,7 +951,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_);
     }
@@ -1151,10 +981,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
     }
     if (deliveryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeliveryConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getDeliveryConfig());
     }
     if (exportConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExportConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getExportConfig());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1164,23 +996,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.cloud.pubsublite.proto.Subscription)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.Subscription other =
-        (com.google.cloud.pubsublite.proto.Subscription) obj;
+    com.google.cloud.pubsublite.proto.Subscription other = (com.google.cloud.pubsublite.proto.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 (hasDeliveryConfig() != other.hasDeliveryConfig()) return false;
     if (hasDeliveryConfig()) {
-      if (!getDeliveryConfig().equals(other.getDeliveryConfig())) return false;
+      if (!getDeliveryConfig()
+          .equals(other.getDeliveryConfig())) return false;
     }
     if (hasExportConfig() != other.hasExportConfig()) return false;
     if (hasExportConfig()) {
-      if (!getExportConfig().equals(other.getExportConfig())) return false;
+      if (!getExportConfig()
+          .equals(other.getExportConfig())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1210,136 +1045,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.Subscription parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Subscription parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Subscription parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Subscription parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.Subscription parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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;
   }
   /**
-   *
-   *
    * 
    * Metadata about a subscription resource.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.Subscription) com.google.cloud.pubsublite.proto.SubscriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.class, - com.google.cloud.pubsublite.proto.Subscription.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.class, com.google.cloud.pubsublite.proto.Subscription.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Subscription.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1360,9 +1189,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; } @java.lang.Override @@ -1381,11 +1210,8 @@ public com.google.cloud.pubsublite.proto.Subscription build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription buildPartial() { - com.google.cloud.pubsublite.proto.Subscription result = - new com.google.cloud.pubsublite.proto.Subscription(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Subscription result = new com.google.cloud.pubsublite.proto.Subscription(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1399,12 +1225,14 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription result result.topic_ = topic_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.deliveryConfig_ = - deliveryConfigBuilder_ == null ? deliveryConfig_ : deliveryConfigBuilder_.build(); + result.deliveryConfig_ = deliveryConfigBuilder_ == null + ? deliveryConfig_ + : deliveryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.exportConfig_ = - exportConfigBuilder_ == null ? exportConfig_ : exportConfigBuilder_.build(); + result.exportConfig_ = exportConfigBuilder_ == null + ? exportConfig_ + : exportConfigBuilder_.build(); } } @@ -1412,39 +1240,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Subscription) { - return mergeFrom((com.google.cloud.pubsublite.proto.Subscription) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Subscription)other); } else { super.mergeFrom(other); return this; @@ -1495,37 +1322,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getDeliveryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getExportConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDeliveryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getExportConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1535,13 +1361,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1549,13 +1372,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -1564,8 +1387,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1573,14 +1394,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -1588,8 +1410,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1597,22 +1417,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1620,7 +1436,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1630,8 +1445,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1639,14 +1452,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1656,8 +1467,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object topic_ = ""; /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1665,13 +1474,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1680,8 +1489,6 @@ public java.lang.String getTopic() { } } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1689,14 +1496,15 @@ public java.lang.String getTopic() {
      * 
* * 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 { @@ -1704,8 +1512,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1713,22 +1519,18 @@ public com.google.protobuf.ByteString getTopicBytes() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1736,7 +1538,6 @@ public Builder setTopic(java.lang.String value) {
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1746,8 +1547,6 @@ public Builder clearTopic() { return this; } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1755,14 +1554,12 @@ public Builder clearTopic() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000002; @@ -1772,55 +1569,41 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig deliveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> - deliveryConfigBuilder_; + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> deliveryConfigBuilder_; /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return Whether the deliveryConfig field is set. */ public boolean hasDeliveryConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return The deliveryConfig. */ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDeliveryConfig() { if (deliveryConfigBuilder_ == null) { - return deliveryConfig_ == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() - : deliveryConfig_; + return deliveryConfig_ == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; } else { return deliveryConfigBuilder_.getMessage(); } } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public Builder setDeliveryConfig( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { + public Builder setDeliveryConfig(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { if (deliveryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1834,8 +1617,6 @@ public Builder setDeliveryConfig( return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
@@ -1854,22 +1635,17 @@ public Builder setDeliveryConfig( return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public Builder mergeDeliveryConfig( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { + public Builder mergeDeliveryConfig(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { if (deliveryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && deliveryConfig_ != null - && deliveryConfig_ - != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + deliveryConfig_ != null && + deliveryConfig_ != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance()) { getDeliveryConfigBuilder().mergeFrom(value); } else { deliveryConfig_ = value; @@ -1882,8 +1658,6 @@ public Builder mergeDeliveryConfig( return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
@@ -1901,42 +1675,33 @@ public Builder clearDeliveryConfig() { return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder - getDeliveryConfigBuilder() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder getDeliveryConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDeliveryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder - getDeliveryConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder() { if (deliveryConfigBuilder_ != null) { return deliveryConfigBuilder_.getMessageOrBuilder(); } else { - return deliveryConfig_ == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() - : deliveryConfig_; + return deliveryConfig_ == null ? + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; } } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
@@ -1944,17 +1709,14 @@ public Builder clearDeliveryConfig() { * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> getDeliveryConfigFieldBuilder() { if (deliveryConfigBuilder_ == null) { - deliveryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder>( - getDeliveryConfig(), getParentForChildren(), isClean()); + deliveryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder>( + getDeliveryConfig(), + getParentForChildren(), + isClean()); deliveryConfig_ = null; } return deliveryConfigBuilder_; @@ -1962,49 +1724,36 @@ public Builder clearDeliveryConfig() { private com.google.cloud.pubsublite.proto.ExportConfig exportConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.ExportConfig, - com.google.cloud.pubsublite.proto.ExportConfig.Builder, - com.google.cloud.pubsublite.proto.ExportConfigOrBuilder> - exportConfigBuilder_; + com.google.cloud.pubsublite.proto.ExportConfig, com.google.cloud.pubsublite.proto.ExportConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfigOrBuilder> exportConfigBuilder_; /** - * - * *
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return Whether the exportConfig field is set. */ public boolean hasExportConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return The exportConfig. */ public com.google.cloud.pubsublite.proto.ExportConfig getExportConfig() { if (exportConfigBuilder_ == null) { - return exportConfig_ == null - ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() - : exportConfig_; + return exportConfig_ == null ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_; } else { return exportConfigBuilder_.getMessage(); } } /** - * - * *
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2026,8 +1775,6 @@ public Builder setExportConfig(com.google.cloud.pubsublite.proto.ExportConfig va
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2047,8 +1794,6 @@ public Builder setExportConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2058,10 +1803,9 @@ public Builder setExportConfig(
      */
     public Builder mergeExportConfig(com.google.cloud.pubsublite.proto.ExportConfig value) {
       if (exportConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && exportConfig_ != null
-            && exportConfig_
-                != com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          exportConfig_ != null &&
+          exportConfig_ != com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()) {
           getExportConfigBuilder().mergeFrom(value);
         } else {
           exportConfig_ = value;
@@ -2074,8 +1818,6 @@ public Builder mergeExportConfig(com.google.cloud.pubsublite.proto.ExportConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2094,8 +1836,6 @@ public Builder clearExportConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2109,8 +1849,6 @@ public com.google.cloud.pubsublite.proto.ExportConfig.Builder getExportConfigBui
       return getExportConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2122,14 +1860,11 @@ public com.google.cloud.pubsublite.proto.ExportConfigOrBuilder getExportConfigOr
       if (exportConfigBuilder_ != null) {
         return exportConfigBuilder_.getMessageOrBuilder();
       } else {
-        return exportConfig_ == null
-            ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()
-            : exportConfig_;
+        return exportConfig_ == null ?
+            com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2138,24 +1873,21 @@ public com.google.cloud.pubsublite.proto.ExportConfigOrBuilder getExportConfigOr
      * .google.cloud.pubsublite.v1.ExportConfig export_config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.ExportConfig,
-            com.google.cloud.pubsublite.proto.ExportConfig.Builder,
-            com.google.cloud.pubsublite.proto.ExportConfigOrBuilder>
+        com.google.cloud.pubsublite.proto.ExportConfig, com.google.cloud.pubsublite.proto.ExportConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfigOrBuilder> 
         getExportConfigFieldBuilder() {
       if (exportConfigBuilder_ == null) {
-        exportConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.ExportConfig,
-                com.google.cloud.pubsublite.proto.ExportConfig.Builder,
-                com.google.cloud.pubsublite.proto.ExportConfigOrBuilder>(
-                getExportConfig(), getParentForChildren(), isClean());
+        exportConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.ExportConfig, com.google.cloud.pubsublite.proto.ExportConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfigOrBuilder>(
+                getExportConfig(),
+                getParentForChildren(),
+                isClean());
         exportConfig_ = null;
       }
       return exportConfigBuilder_;
     }
-
     @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);
     }
 
@@ -2165,12 +1897,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Subscription)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Subscription)
   private static final com.google.cloud.pubsublite.proto.Subscription DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Subscription();
   }
@@ -2179,27 +1911,27 @@ public static com.google.cloud.pubsublite.proto.Subscription getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Subscription parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Subscription parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2214,4 +1946,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.Subscription getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java
similarity index 100%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
similarity index 78%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
index aa2408cff..5410b0eba 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface SubscriptionOrBuilder
-    extends
+public interface SubscriptionOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Subscription)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the subscription.
    * Structured like:
@@ -33,13 +15,10 @@ public interface SubscriptionOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the subscription.
    * Structured like:
@@ -47,14 +26,12 @@ public interface SubscriptionOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -62,13 +39,10 @@ public interface SubscriptionOrBuilder
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -76,76 +50,59 @@ public interface SubscriptionOrBuilder
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return Whether the deliveryConfig field is set. */ boolean hasDeliveryConfig(); /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return The deliveryConfig. */ com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDeliveryConfig(); /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder - getDeliveryConfigOrBuilder(); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder(); /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return Whether the exportConfig field is set. */ boolean hasExportConfig(); /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return The exportConfig. */ com.google.cloud.pubsublite.proto.ExportConfig getExportConfig(); /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
similarity index 73%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
index 7b4944837..0413c3843 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * A target publish or event time. Can be used for seeking to or retrieving the
  * corresponding cursor.
@@ -28,56 +11,52 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.TimeTarget}
  */
-public final class TimeTarget extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TimeTarget extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.TimeTarget)
     TimeTargetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TimeTarget.newBuilder() to construct.
   private TimeTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private TimeTarget() {}
+  private TimeTarget() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TimeTarget();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CommonProto
-        .internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CommonProto
-        .internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.TimeTarget.class,
-            com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
+            com.google.cloud.pubsublite.proto.TimeTarget.class, com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
   }
 
   private int timeCase_ = 0;
   private java.lang.Object time_;
-
   public enum TimeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     PUBLISH_TIME(1),
     EVENT_TIME(2),
     TIME_NOT_SET(0);
     private final int value;
-
     private TimeCase(int value) {
       this.value = value;
     }
@@ -93,30 +72,25 @@ public static TimeCase valueOf(int value) {
 
     public static TimeCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return PUBLISH_TIME;
-        case 2:
-          return EVENT_TIME;
-        case 0:
-          return TIME_NOT_SET;
-        default:
-          return null;
+        case 1: return PUBLISH_TIME;
+        case 2: return EVENT_TIME;
+        case 0: return TIME_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TimeCase getTimeCase() {
-    return TimeCase.forNumber(timeCase_);
+  public TimeCase
+  getTimeCase() {
+    return TimeCase.forNumber(
+        timeCase_);
   }
 
   public static final int PUBLISH_TIME_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -124,7 +98,6 @@ public TimeCase getTimeCase() {
    * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -132,8 +105,6 @@ public boolean hasPublishTime() { return timeCase_ == 1; } /** - * - * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -141,19 +112,16 @@ public boolean hasPublishTime() {
    * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return The publishTime. */ @java.lang.Override public com.google.protobuf.Timestamp getPublishTime() { if (timeCase_ == 1) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -165,15 +133,13 @@ public com.google.protobuf.Timestamp getPublishTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
     if (timeCase_ == 1) {
-      return (com.google.protobuf.Timestamp) time_;
+       return (com.google.protobuf.Timestamp) time_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int EVENT_TIME_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -183,7 +149,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -191,8 +156,6 @@ public boolean hasEventTime() { return timeCase_ == 2; } /** - * - * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -202,19 +165,16 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return The eventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEventTime() { if (timeCase_ == 2) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -228,13 +188,12 @@ public com.google.protobuf.Timestamp getEventTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
     if (timeCase_ == 2) {
-      return (com.google.protobuf.Timestamp) time_;
+       return (com.google.protobuf.Timestamp) time_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -246,7 +205,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 (timeCase_ == 1) {
       output.writeMessage(1, (com.google.protobuf.Timestamp) time_);
     }
@@ -263,14 +223,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (timeCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.protobuf.Timestamp) time_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.protobuf.Timestamp) time_);
     }
     if (timeCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.protobuf.Timestamp) time_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.protobuf.Timestamp) time_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -280,21 +238,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.cloud.pubsublite.proto.TimeTarget)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.TimeTarget other =
-        (com.google.cloud.pubsublite.proto.TimeTarget) obj;
+    com.google.cloud.pubsublite.proto.TimeTarget other = (com.google.cloud.pubsublite.proto.TimeTarget) obj;
 
     if (!getTimeCase().equals(other.getTimeCase())) return false;
     switch (timeCase_) {
       case 1:
-        if (!getPublishTime().equals(other.getPublishTime())) return false;
+        if (!getPublishTime()
+            .equals(other.getPublishTime())) return false;
         break;
       case 2:
-        if (!getEventTime().equals(other.getEventTime())) return false;
+        if (!getEventTime()
+            .equals(other.getEventTime())) return false;
         break;
       case 0:
       default:
@@ -327,104 +286,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.TimeTarget parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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 target publish or event time. Can be used for seeking to or retrieving the
    * corresponding cursor.
@@ -432,32 +384,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.TimeTarget}
    */
-  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.cloud.pubsublite.v1.TimeTarget)
       com.google.cloud.pubsublite.proto.TimeTargetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.TimeTarget.class,
-              com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
+              com.google.cloud.pubsublite.proto.TimeTarget.class, com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.TimeTarget.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -474,9 +427,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
     }
 
     @java.lang.Override
@@ -495,11 +448,8 @@ public com.google.cloud.pubsublite.proto.TimeTarget build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.TimeTarget buildPartial() {
-      com.google.cloud.pubsublite.proto.TimeTarget result =
-          new com.google.cloud.pubsublite.proto.TimeTarget(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.TimeTarget result = new com.google.cloud.pubsublite.proto.TimeTarget(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -512,10 +462,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.TimeTarget result)
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.TimeTarget result) {
       result.timeCase_ = timeCase_;
       result.time_ = this.time_;
-      if (timeCase_ == 1 && publishTimeBuilder_ != null) {
+      if (timeCase_ == 1 &&
+          publishTimeBuilder_ != null) {
         result.time_ = publishTimeBuilder_.build();
       }
-      if (timeCase_ == 2 && eventTimeBuilder_ != null) {
+      if (timeCase_ == 2 &&
+          eventTimeBuilder_ != null) {
         result.time_ = eventTimeBuilder_.build();
       }
     }
@@ -524,39 +476,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.TimeTarget res
     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.cloud.pubsublite.proto.TimeTarget) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.TimeTarget) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.TimeTarget)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -566,20 +517,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.TimeTarget other) {
       if (other == com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) return this;
       switch (other.getTimeCase()) {
-        case PUBLISH_TIME:
-          {
-            mergePublishTime(other.getPublishTime());
-            break;
-          }
-        case EVENT_TIME:
-          {
-            mergeEventTime(other.getEventTime());
-            break;
-          }
-        case TIME_NOT_SET:
-          {
-            break;
-          }
+        case PUBLISH_TIME: {
+          mergePublishTime(other.getPublishTime());
+          break;
+        }
+        case EVENT_TIME: {
+          mergeEventTime(other.getEventTime());
+          break;
+        }
+        case TIME_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -607,25 +555,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry);
-                timeCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry);
-                timeCase_ = 2;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getPublishTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              timeCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getEventTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              timeCase_ = 2;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -635,12 +584,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int timeCase_ = 0;
     private java.lang.Object time_;
-
-    public TimeCase getTimeCase() {
-      return TimeCase.forNumber(timeCase_);
+    public TimeCase
+        getTimeCase() {
+      return TimeCase.forNumber(
+          timeCase_);
     }
 
     public Builder clearTime() {
@@ -653,13 +602,8 @@ public Builder clearTime() {
     private int bitField0_;
 
     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_;
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -667,7 +611,6 @@ public Builder clearTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -675,8 +618,6 @@ public boolean hasPublishTime() { return timeCase_ == 1; } /** - * - * *
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -684,7 +625,6 @@ public boolean hasPublishTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return The publishTime. */ @java.lang.Override @@ -702,8 +642,6 @@ public com.google.protobuf.Timestamp getPublishTime() { } } /** - * - * *
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -726,8 +664,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -736,7 +672,8 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp publish_time = 1;
      */
-    public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setPublishTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (publishTimeBuilder_ == null) {
         time_ = builderForValue.build();
         onChanged();
@@ -747,8 +684,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -759,11 +694,10 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
      */
     public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
-        if (timeCase_ == 1 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          time_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (timeCase_ == 1 &&
+            time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
+              .mergeFrom(value).buildPartial();
         } else {
           time_ = value;
         }
@@ -779,8 +713,6 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -806,8 +738,6 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -820,8 +750,6 @@ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
       return getPublishTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -842,8 +770,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -853,20 +779,17 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp publish_time = 1;
      */
     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) {
         if (!(timeCase_ == 1)) {
           time_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        publishTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean());
+        publishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) time_,
+                getParentForChildren(),
+                isClean());
         time_ = null;
       }
       timeCase_ = 1;
@@ -875,13 +798,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        eventTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_;
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -891,7 +809,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -899,8 +816,6 @@ public boolean hasEventTime() { return timeCase_ == 2; } /** - * - * *
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -910,7 +825,6 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return The eventTime. */ @java.lang.Override @@ -928,8 +842,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -954,8 +866,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -966,7 +876,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 2;
      */
-    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         time_ = builderForValue.build();
         onChanged();
@@ -977,8 +888,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -991,11 +900,10 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
      */
     public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
-        if (timeCase_ == 2 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          time_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (timeCase_ == 2 &&
+            time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
+              .mergeFrom(value).buildPartial();
         } else {
           time_ = value;
         }
@@ -1011,8 +919,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -1040,8 +946,6 @@ public Builder clearEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -1056,8 +960,6 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -1080,8 +982,6 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -1093,29 +993,26 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_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> 
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
         if (!(timeCase_ == 2)) {
           time_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        eventTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean());
+        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) time_,
+                getParentForChildren(),
+                isClean());
         time_ = null;
       }
       timeCase_ = 2;
       onChanged();
       return eventTimeBuilder_;
     }
-
     @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);
     }
 
@@ -1125,12 +1022,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.TimeTarget)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.TimeTarget)
   private static final com.google.cloud.pubsublite.proto.TimeTarget DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.TimeTarget();
   }
@@ -1139,27 +1036,27 @@ public static com.google.cloud.pubsublite.proto.TimeTarget getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TimeTarget parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TimeTarget parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1174,4 +1071,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.TimeTarget getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
similarity index 80%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
index 4bd31549e..cc3aa15fa 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface TimeTargetOrBuilder
-    extends
+public interface TimeTargetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.TimeTarget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -33,13 +15,10 @@ public interface TimeTargetOrBuilder
    * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return Whether the publishTime field is set. */ boolean hasPublishTime(); /** - * - * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -47,13 +26,10 @@ public interface TimeTargetOrBuilder
    * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); /** - * - * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -65,8 +41,6 @@ public interface TimeTargetOrBuilder
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -76,13 +50,10 @@ public interface TimeTargetOrBuilder
    * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -92,13 +63,10 @@ public interface TimeTargetOrBuilder
    * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
similarity index 71%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
index 396f426e3..bb5e4c086 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
@@ -1,80 +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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Metadata about a topic resource.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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_ = ""; } @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.class, - com.google.cloud.pubsublite.proto.Topic.Builder.class); + com.google.cloud.pubsublite.proto.Topic.class, com.google.cloud.pubsublite.proto.Topic.Builder.class); } - public interface PartitionConfigOrBuilder - extends + public interface PartitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.PartitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The number of partitions in the topic. Must be at least 1.
      * Once a topic has been created the number of partitions can be increased
@@ -84,14 +62,11 @@ public interface PartitionConfigOrBuilder
      * 
* * int64 count = 1; - * * @return The count. */ long getCount(); /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -103,16 +78,12 @@ public interface PartitionConfigOrBuilder
      * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return Whether the scale field is set. */ - @java.lang.Deprecated - boolean hasScale(); + @java.lang.Deprecated boolean hasScale(); /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -124,191 +95,164 @@ public interface PartitionConfigOrBuilder
      * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return The scale. */ - @java.lang.Deprecated - int getScale(); + @java.lang.Deprecated int getScale(); /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return Whether the capacity field is set. */ boolean hasCapacity(); /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return The capacity. */ com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapacity(); /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder - getCapacityOrBuilder(); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder(); public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.DimensionCase getDimensionCase(); } /** - * - * *
    * The settings for a topic's partitions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig} */ - public static final class PartitionConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PartitionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.PartitionConfig) PartitionConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PartitionConfig.newBuilder() to construct. private PartitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PartitionConfig() {} + private PartitionConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PartitionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); } - public interface CapacityOrBuilder - extends + public interface CapacityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Publish throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 16.
        * 
* * int32 publish_mib_per_sec = 1; - * * @return The publishMibPerSec. */ int getPublishMibPerSec(); /** - * - * *
        * Subscribe throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 32.
        * 
* * int32 subscribe_mib_per_sec = 2; - * * @return The subscribeMibPerSec. */ int getSubscribeMibPerSec(); } /** - * - * *
      * The throughput capacity configuration for each partition.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity} */ - public static final class Capacity extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Capacity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) CapacityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Capacity.newBuilder() to construct. private Capacity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Capacity() {} + private Capacity() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Capacity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); } public static final int PUBLISH_MIB_PER_SEC_FIELD_NUMBER = 1; private int publishMibPerSec_ = 0; /** - * - * *
        * Publish throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 16.
        * 
* * int32 publish_mib_per_sec = 1; - * * @return The publishMibPerSec. */ @java.lang.Override @@ -319,15 +263,12 @@ public int getPublishMibPerSec() { public static final int SUBSCRIBE_MIB_PER_SEC_FIELD_NUMBER = 2; private int subscribeMibPerSec_ = 0; /** - * - * *
        * Subscribe throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 32.
        * 
* * int32 subscribe_mib_per_sec = 2; - * * @return The subscribeMibPerSec. */ @java.lang.Override @@ -336,7 +277,6 @@ public int getSubscribeMibPerSec() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -348,7 +288,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 (publishMibPerSec_ != 0) { output.writeInt32(1, publishMibPerSec_); } @@ -365,10 +306,12 @@ public int getSerializedSize() { size = 0; if (publishMibPerSec_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, publishMibPerSec_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, publishMibPerSec_); } if (subscribeMibPerSec_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, subscribeMibPerSec_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, subscribeMibPerSec_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -378,16 +321,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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other = - (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) obj; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other = (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) obj; - if (getPublishMibPerSec() != other.getPublishMibPerSec()) return false; - if (getSubscribeMibPerSec() != other.getSubscribeMibPerSec()) return false; + if (getPublishMibPerSec() + != other.getPublishMibPerSec()) return false; + if (getSubscribeMibPerSec() + != other.getSubscribeMibPerSec()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -409,96 +353,87 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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 @@ -508,42 +443,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * The throughput capacity configuration for each partition.
        * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity} */ - 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.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); } - // Construct using - // com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder() - private Builder() {} + // Construct using com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -554,16 +486,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - getDefaultInstanceForType() { - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getDefaultInstanceForType() { + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } @java.lang.Override @@ -577,17 +507,13 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity build() @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity buildPartial() { - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result = - new com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.publishMibPerSec_ = publishMibPerSec_; @@ -601,53 +527,46 @@ private void buildPartial0( 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) { - return mergeFrom( - (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other) { - if (other - == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other) { + if (other == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance()) return this; if (other.getPublishMibPerSec() != 0) { setPublishMibPerSec(other.getPublishMibPerSec()); } @@ -680,25 +599,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - publishMibPerSec_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - subscribeMibPerSec_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + publishMibPerSec_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + subscribeMibPerSec_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -708,20 +624,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int publishMibPerSec_; + private int publishMibPerSec_ ; /** - * - * *
          * Publish throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 16.
          * 
* * int32 publish_mib_per_sec = 1; - * * @return The publishMibPerSec. */ @java.lang.Override @@ -729,35 +641,29 @@ public int getPublishMibPerSec() { return publishMibPerSec_; } /** - * - * *
          * Publish throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 16.
          * 
* * int32 publish_mib_per_sec = 1; - * * @param value The publishMibPerSec to set. * @return This builder for chaining. */ public Builder setPublishMibPerSec(int value) { - + publishMibPerSec_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Publish throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 16.
          * 
* * int32 publish_mib_per_sec = 1; - * * @return This builder for chaining. */ public Builder clearPublishMibPerSec() { @@ -767,17 +673,14 @@ public Builder clearPublishMibPerSec() { return this; } - private int subscribeMibPerSec_; + private int subscribeMibPerSec_ ; /** - * - * *
          * Subscribe throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 32.
          * 
* * int32 subscribe_mib_per_sec = 2; - * * @return The subscribeMibPerSec. */ @java.lang.Override @@ -785,35 +688,29 @@ public int getSubscribeMibPerSec() { return subscribeMibPerSec_; } /** - * - * *
          * Subscribe throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 32.
          * 
* * int32 subscribe_mib_per_sec = 2; - * * @param value The subscribeMibPerSec to set. * @return This builder for chaining. */ public Builder setSubscribeMibPerSec(int value) { - + subscribeMibPerSec_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * Subscribe throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 32.
          * 
* * int32 subscribe_mib_per_sec = 2; - * * @return This builder for chaining. */ public Builder clearSubscribeMibPerSec() { @@ -822,7 +719,6 @@ public Builder clearSubscribeMibPerSec() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -835,44 +731,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) - private static final com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity(); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Capacity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Capacity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -884,25 +777,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int dimensionCase_ = 0; private java.lang.Object dimension_; - public enum DimensionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - @java.lang.Deprecated - SCALE(2), + @java.lang.Deprecated SCALE(2), CAPACITY(3), DIMENSION_NOT_SET(0); private final int value; - private DimensionCase(int value) { this.value = value; } @@ -918,31 +807,26 @@ public static DimensionCase valueOf(int value) { public static DimensionCase forNumber(int value) { switch (value) { - case 2: - return SCALE; - case 3: - return CAPACITY; - case 0: - return DIMENSION_NOT_SET; - default: - return null; + case 2: return SCALE; + case 3: return CAPACITY; + case 0: return DIMENSION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DimensionCase getDimensionCase() { - return DimensionCase.forNumber(dimensionCase_); + public DimensionCase + getDimensionCase() { + return DimensionCase.forNumber( + dimensionCase_); } public static final int COUNT_FIELD_NUMBER = 1; private long count_ = 0L; /** - * - * *
      * The number of partitions in the topic. Must be at least 1.
      * Once a topic has been created the number of partitions can be increased
@@ -952,7 +836,6 @@ public DimensionCase getDimensionCase() {
      * 
* * int64 count = 1; - * * @return The count. */ @java.lang.Override @@ -962,8 +845,6 @@ public long getCount() { public static final int SCALE_FIELD_NUMBER = 2; /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -975,19 +856,15 @@ public long getCount() {
      * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return Whether the scale field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasScale() { + @java.lang.Deprecated public boolean hasScale() { return dimensionCase_ == 2; } /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -999,14 +876,12 @@ public boolean hasScale() {
      * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return The scale. */ @java.lang.Override - @java.lang.Deprecated - public int getScale() { + @java.lang.Deprecated public int getScale() { if (dimensionCase_ == 2) { return (java.lang.Integer) dimension_; } @@ -1015,14 +890,11 @@ public int getScale() { public static final int CAPACITY_FIELD_NUMBER = 3; /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return Whether the capacity field is set. */ @java.lang.Override @@ -1030,26 +902,21 @@ public boolean hasCapacity() { return dimensionCase_ == 3; } /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return The capacity. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapacity() { if (dimensionCase_ == 3) { - return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; + return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } /** - * - * *
      * The capacity configuration.
      * 
@@ -1057,16 +924,14 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapac * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder - getCapacityOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder() { if (dimensionCase_ == 3) { - return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; + return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1078,16 +943,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 (count_ != 0L) { output.writeInt64(1, count_); } if (dimensionCase_ == 2) { - output.writeInt32(2, (int) ((java.lang.Integer) dimension_)); + output.writeInt32( + 2, (int)((java.lang.Integer) dimension_)); } if (dimensionCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); + output.writeMessage(3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); } getUnknownFields().writeTo(output); } @@ -1099,17 +965,17 @@ public int getSerializedSize() { size = 0; if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, count_); } if (dimensionCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, (int) ((java.lang.Integer) dimension_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) dimension_)); } if (dimensionCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1119,22 +985,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.cloud.pubsublite.proto.Topic.PartitionConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Topic.PartitionConfig other = - (com.google.cloud.pubsublite.proto.Topic.PartitionConfig) obj; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig other = (com.google.cloud.pubsublite.proto.Topic.PartitionConfig) obj; - if (getCount() != other.getCount()) return false; + if (getCount() + != other.getCount()) return false; if (!getDimensionCase().equals(other.getDimensionCase())) return false; switch (dimensionCase_) { case 2: - if (getScale() != other.getScale()) return false; + if (getScale() + != other.getScale()) return false; break; case 3: - if (!getCapacity().equals(other.getCapacity())) return false; + if (!getCapacity() + .equals(other.getCapacity())) return false; break; case 0: default: @@ -1151,7 +1019,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); switch (dimensionCase_) { case 2: hash = (37 * hash) + SCALE_FIELD_NUMBER; @@ -1170,94 +1039,87 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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 @@ -1267,41 +1129,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The settings for a topic's partitions.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig} */ - 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.cloud.pubsublite.v1.Topic.PartitionConfig) com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.PartitionConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1316,9 +1176,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; } @java.lang.Override @@ -1337,11 +1197,8 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig buildPartial() { - com.google.cloud.pubsublite.proto.Topic.PartitionConfig result = - new com.google.cloud.pubsublite.proto.Topic.PartitionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic.PartitionConfig result = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1354,11 +1211,11 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.PartitionConf } } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.Topic.PartitionConfig result) { result.dimensionCase_ = dimensionCase_; result.dimension_ = this.dimension_; - if (dimensionCase_ == 3 && capacityBuilder_ != null) { + if (dimensionCase_ == 3 && + capacityBuilder_ != null) { result.dimension_ = capacityBuilder_.build(); } } @@ -1367,41 +1224,38 @@ private void buildPartialOneofs( 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.cloud.pubsublite.proto.Topic.PartitionConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.PartitionConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.PartitionConfig)other); } else { super.mergeFrom(other); return this; @@ -1409,26 +1263,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.PartitionConfig other) { - if (other == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) return this; if (other.getCount() != 0L) { setCount(other.getCount()); } switch (other.getDimensionCase()) { - case SCALE: - { - setScale(other.getScale()); - break; - } - case CAPACITY: - { - mergeCapacity(other.getCapacity()); - break; - } - case DIMENSION_NOT_SET: - { - break; - } + case SCALE: { + setScale(other.getScale()); + break; + } + case CAPACITY: { + mergeCapacity(other.getCapacity()); + break; + } + case DIMENSION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1456,31 +1306,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - count_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - dimension_ = input.readInt32(); - dimensionCase_ = 2; - break; - } // case 16 - case 26: - { - input.readMessage(getCapacityFieldBuilder().getBuilder(), extensionRegistry); - dimensionCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + count_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + dimension_ = input.readInt32(); + dimensionCase_ = 2; + break; + } // case 16 + case 26: { + input.readMessage( + getCapacityFieldBuilder().getBuilder(), + extensionRegistry); + dimensionCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1490,12 +1338,12 @@ public Builder mergeFrom( } // finally return this; } - private int dimensionCase_ = 0; private java.lang.Object dimension_; - - public DimensionCase getDimensionCase() { - return DimensionCase.forNumber(dimensionCase_); + public DimensionCase + getDimensionCase() { + return DimensionCase.forNumber( + dimensionCase_); } public Builder clearDimension() { @@ -1507,10 +1355,8 @@ public Builder clearDimension() { private int bitField0_; - private long count_; + private long count_ ; /** - * - * *
        * The number of partitions in the topic. Must be at least 1.
        * Once a topic has been created the number of partitions can be increased
@@ -1520,7 +1366,6 @@ public Builder clearDimension() {
        * 
* * int64 count = 1; - * * @return The count. */ @java.lang.Override @@ -1528,8 +1373,6 @@ public long getCount() { return count_; } /** - * - * *
        * The number of partitions in the topic. Must be at least 1.
        * Once a topic has been created the number of partitions can be increased
@@ -1539,20 +1382,17 @@ public long getCount() {
        * 
* * int64 count = 1; - * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The number of partitions in the topic. Must be at least 1.
        * Once a topic has been created the number of partitions can be increased
@@ -1562,7 +1402,6 @@ public Builder setCount(long value) {
        * 
* * int64 count = 1; - * * @return This builder for chaining. */ public Builder clearCount() { @@ -1573,8 +1412,6 @@ public Builder clearCount() { } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1586,18 +1423,14 @@ public Builder clearCount() {
        * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return Whether the scale field is set. */ - @java.lang.Deprecated - public boolean hasScale() { + @java.lang.Deprecated public boolean hasScale() { return dimensionCase_ == 2; } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1609,21 +1442,17 @@ public boolean hasScale() {
        * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return The scale. */ - @java.lang.Deprecated - public int getScale() { + @java.lang.Deprecated public int getScale() { if (dimensionCase_ == 2) { return (java.lang.Integer) dimension_; } return 0; } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1635,23 +1464,19 @@ public int getScale() {
        * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @param value The scale to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setScale(int value) { - + @java.lang.Deprecated public Builder setScale(int value) { + dimensionCase_ = 2; dimension_ = value; onChanged(); return this; } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1663,13 +1488,11 @@ public Builder setScale(int value) {
        * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearScale() { + @java.lang.Deprecated public Builder clearScale() { if (dimensionCase_ == 2) { dimensionCase_ = 0; dimension_ = null; @@ -1679,19 +1502,13 @@ public Builder clearScale() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> - capacityBuilder_; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> capacityBuilder_; /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return Whether the capacity field is set. */ @java.lang.Override @@ -1699,14 +1516,11 @@ public boolean hasCapacity() { return dimensionCase_ == 3; } /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return The capacity. */ @java.lang.Override @@ -1715,27 +1529,22 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapac if (dimensionCase_ == 3) { return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } else { if (dimensionCase_ == 3) { return capacityBuilder_.getMessage(); } - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } } /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - public Builder setCapacity( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { + public Builder setCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { if (capacityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1749,8 +1558,6 @@ public Builder setCapacity( return this; } /** - * - * *
        * The capacity configuration.
        * 
@@ -1758,8 +1565,7 @@ public Builder setCapacity( * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ public Builder setCapacity( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder - builderForValue) { + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder builderForValue) { if (capacityBuilder_ == null) { dimension_ = builderForValue.build(); onChanged(); @@ -1770,27 +1576,18 @@ public Builder setCapacity( return this; } /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - public Builder mergeCapacity( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { + public Builder mergeCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { if (capacityBuilder_ == null) { - if (dimensionCase_ == 3 - && dimension_ - != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance()) { - dimension_ = - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder( - (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) - dimension_) - .mergeFrom(value) - .buildPartial(); + if (dimensionCase_ == 3 && + dimension_ != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance()) { + dimension_ = com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder((com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_) + .mergeFrom(value).buildPartial(); } else { dimension_ = value; } @@ -1806,8 +1603,6 @@ public Builder mergeCapacity( return this; } /** - * - * *
        * The capacity configuration.
        * 
@@ -1831,21 +1626,16 @@ public Builder clearCapacity() { return this; } /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder - getCapacityBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder getCapacityBuilder() { return getCapacityFieldBuilder().getBuilder(); } /** - * - * *
        * The capacity configuration.
        * 
@@ -1853,21 +1643,17 @@ public Builder clearCapacity() { * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder - getCapacityOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder() { if ((dimensionCase_ == 3) && (capacityBuilder_ != null)) { return capacityBuilder_.getMessageOrBuilder(); } else { if (dimensionCase_ == 3) { return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } } /** - * - * *
        * The capacity configuration.
        * 
@@ -1875,21 +1661,14 @@ public Builder clearCapacity() { * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> getCapacityFieldBuilder() { if (capacityBuilder_ == null) { if (!(dimensionCase_ == 3)) { - dimension_ = - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + dimension_ = com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } - capacityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder>( + capacityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder>( (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_, getParentForChildren(), isClean()); @@ -1899,7 +1678,6 @@ public Builder clearCapacity() { onChanged(); return capacityBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1912,12 +1690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig) private static final com.google.cloud.pubsublite.proto.Topic.PartitionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig(); } @@ -1926,28 +1704,27 @@ public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1962,16 +1739,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface RetentionConfigOrBuilder - extends + public interface RetentionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.RetentionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The provisioned storage, in bytes, per partition. If the number of bytes
      * stored in any of the topic's partitions grows beyond this value, older
@@ -1980,14 +1755,11 @@ public interface RetentionConfigOrBuilder
      * 
* * int64 per_partition_bytes = 1; - * * @return The perPartitionBytes. */ long getPerPartitionBytes(); /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1995,13 +1767,10 @@ public interface RetentionConfigOrBuilder
      * 
* * .google.protobuf.Duration period = 2; - * * @return Whether the period field is set. */ boolean hasPeriod(); /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2009,13 +1778,10 @@ public interface RetentionConfigOrBuilder
      * 
* * .google.protobuf.Duration period = 2; - * * @return The period. */ com.google.protobuf.Duration getPeriod(); /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2027,57 +1793,52 @@ public interface RetentionConfigOrBuilder
     com.google.protobuf.DurationOrBuilder getPeriodOrBuilder();
   }
   /**
-   *
-   *
    * 
    * The settings for a topic's message retention.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.RetentionConfig} */ - public static final class RetentionConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RetentionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.RetentionConfig) RetentionConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetentionConfig.newBuilder() to construct. private RetentionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RetentionConfig() {} + private RetentionConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RetentionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); } public static final int PER_PARTITION_BYTES_FIELD_NUMBER = 1; private long perPartitionBytes_ = 0L; /** - * - * *
      * The provisioned storage, in bytes, per partition. If the number of bytes
      * stored in any of the topic's partitions grows beyond this value, older
@@ -2086,7 +1847,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * int64 per_partition_bytes = 1; - * * @return The perPartitionBytes. */ @java.lang.Override @@ -2097,8 +1857,6 @@ public long getPerPartitionBytes() { public static final int PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration period_; /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2106,7 +1864,6 @@ public long getPerPartitionBytes() {
      * 
* * .google.protobuf.Duration period = 2; - * * @return Whether the period field is set. */ @java.lang.Override @@ -2114,8 +1871,6 @@ public boolean hasPeriod() { return period_ != null; } /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2123,7 +1878,6 @@ public boolean hasPeriod() {
      * 
* * .google.protobuf.Duration period = 2; - * * @return The period. */ @java.lang.Override @@ -2131,8 +1885,6 @@ public com.google.protobuf.Duration getPeriod() { return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; } /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2147,7 +1899,6 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -2159,7 +1910,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 (perPartitionBytes_ != 0L) {
         output.writeInt64(1, perPartitionBytes_);
       }
@@ -2176,10 +1928,12 @@ public int getSerializedSize() {
 
       size = 0;
       if (perPartitionBytes_ != 0L) {
-        size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, perPartitionBytes_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeInt64Size(1, perPartitionBytes_);
       }
       if (period_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPeriod());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getPeriod());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -2189,18 +1943,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.cloud.pubsublite.proto.Topic.RetentionConfig)) {
         return super.equals(obj);
       }
-      com.google.cloud.pubsublite.proto.Topic.RetentionConfig other =
-          (com.google.cloud.pubsublite.proto.Topic.RetentionConfig) obj;
+      com.google.cloud.pubsublite.proto.Topic.RetentionConfig other = (com.google.cloud.pubsublite.proto.Topic.RetentionConfig) obj;
 
-      if (getPerPartitionBytes() != other.getPerPartitionBytes()) return false;
+      if (getPerPartitionBytes()
+          != other.getPerPartitionBytes()) return false;
       if (hasPeriod() != other.hasPeriod()) return false;
       if (hasPeriod()) {
-        if (!getPeriod().equals(other.getPeriod())) return false;
+        if (!getPeriod()
+            .equals(other.getPeriod())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -2214,7 +1969,8 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + PER_PARTITION_BYTES_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPerPartitionBytes());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getPerPartitionBytes());
       if (hasPeriod()) {
         hash = (37 * hash) + PERIOD_FIELD_NUMBER;
         hash = (53 * hash) + getPeriod().hashCode();
@@ -2225,94 +1981,87 @@ public int hashCode() {
     }
 
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig prototype) {
+    public static Builder newBuilder(com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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
@@ -2322,41 +2071,39 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * The settings for a topic's message retention.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.RetentionConfig} */ - 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.cloud.pubsublite.v1.Topic.RetentionConfig) com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.RetentionConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2371,9 +2118,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; } @java.lang.Override @@ -2392,11 +2139,8 @@ public com.google.cloud.pubsublite.proto.Topic.RetentionConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.RetentionConfig buildPartial() { - com.google.cloud.pubsublite.proto.Topic.RetentionConfig result = - new com.google.cloud.pubsublite.proto.Topic.RetentionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic.RetentionConfig result = new com.google.cloud.pubsublite.proto.Topic.RetentionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2407,7 +2151,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.RetentionConf result.perPartitionBytes_ = perPartitionBytes_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.period_ = periodBuilder_ == null ? period_ : periodBuilder_.build(); + result.period_ = periodBuilder_ == null + ? period_ + : periodBuilder_.build(); } } @@ -2415,41 +2161,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.RetentionConf 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.cloud.pubsublite.proto.Topic.RetentionConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.RetentionConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.RetentionConfig)other); } else { super.mergeFrom(other); return this; @@ -2457,8 +2200,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.RetentionConfig other) { - if (other == com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) return this; if (other.getPerPartitionBytes() != 0L) { setPerPartitionBytes(other.getPerPartitionBytes()); } @@ -2491,25 +2233,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - perPartitionBytes_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getPeriodFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + perPartitionBytes_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getPeriodFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2519,13 +2260,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long perPartitionBytes_; + private long perPartitionBytes_ ; /** - * - * *
        * The provisioned storage, in bytes, per partition. If the number of bytes
        * stored in any of the topic's partitions grows beyond this value, older
@@ -2534,7 +2272,6 @@ public Builder mergeFrom(
        * 
* * int64 per_partition_bytes = 1; - * * @return The perPartitionBytes. */ @java.lang.Override @@ -2542,8 +2279,6 @@ public long getPerPartitionBytes() { return perPartitionBytes_; } /** - * - * *
        * The provisioned storage, in bytes, per partition. If the number of bytes
        * stored in any of the topic's partitions grows beyond this value, older
@@ -2552,20 +2287,17 @@ public long getPerPartitionBytes() {
        * 
* * int64 per_partition_bytes = 1; - * * @param value The perPartitionBytes to set. * @return This builder for chaining. */ public Builder setPerPartitionBytes(long value) { - + perPartitionBytes_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The provisioned storage, in bytes, per partition. If the number of bytes
        * stored in any of the topic's partitions grows beyond this value, older
@@ -2574,7 +2306,6 @@ public Builder setPerPartitionBytes(long value) {
        * 
* * int64 per_partition_bytes = 1; - * * @return This builder for chaining. */ public Builder clearPerPartitionBytes() { @@ -2586,13 +2317,8 @@ public Builder clearPerPartitionBytes() { private com.google.protobuf.Duration period_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - periodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> periodBuilder_; /** - * - * *
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2600,15 +2326,12 @@ public Builder clearPerPartitionBytes() {
        * 
* * .google.protobuf.Duration period = 2; - * * @return Whether the period field is set. */ public boolean hasPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2616,7 +2339,6 @@ public boolean hasPeriod() {
        * 
* * .google.protobuf.Duration period = 2; - * * @return The period. */ public com.google.protobuf.Duration getPeriod() { @@ -2627,8 +2349,6 @@ public com.google.protobuf.Duration getPeriod() { } } /** - * - * *
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2651,8 +2371,6 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2661,7 +2379,8 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration period = 2;
        */
-      public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setPeriod(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (periodBuilder_ == null) {
           period_ = builderForValue.build();
         } else {
@@ -2672,8 +2391,6 @@ public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
         return this;
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2684,9 +2401,9 @@ public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
        */
       public Builder mergePeriod(com.google.protobuf.Duration value) {
         if (periodBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && period_ != null
-              && period_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            period_ != null &&
+            period_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getPeriodBuilder().mergeFrom(value);
           } else {
             period_ = value;
@@ -2699,8 +2416,6 @@ public Builder mergePeriod(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2720,8 +2435,6 @@ public Builder clearPeriod() {
         return this;
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2736,8 +2449,6 @@ public com.google.protobuf.Duration.Builder getPeriodBuilder() {
         return getPeriodFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2750,12 +2461,11 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
         if (periodBuilder_ != null) {
           return periodBuilder_.getMessageOrBuilder();
         } else {
-          return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_;
+          return period_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : period_;
         }
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2765,22 +2475,18 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
        * .google.protobuf.Duration period = 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> 
           getPeriodFieldBuilder() {
         if (periodBuilder_ == null) {
-          periodBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getPeriod(), getParentForChildren(), isClean());
+          periodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getPeriod(),
+                  getParentForChildren(),
+                  isClean());
           period_ = null;
         }
         return periodBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2793,12 +2499,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.RetentionConfig)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.RetentionConfig)
     private static final com.google.cloud.pubsublite.proto.Topic.RetentionConfig DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.RetentionConfig();
     }
@@ -2807,28 +2513,27 @@ public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig getDefault
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public RetentionConfig parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public RetentionConfig parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -2843,16 +2548,14 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface ReservationConfigOrBuilder
-      extends
+  public interface ReservationConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.ReservationConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2860,13 +2563,10 @@ public interface ReservationConfigOrBuilder
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The throughputReservation. */ java.lang.String getThroughputReservation(); /** - * - * *
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2874,67 +2574,60 @@ public interface ReservationConfigOrBuilder
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for throughputReservation. */ - com.google.protobuf.ByteString getThroughputReservationBytes(); + com.google.protobuf.ByteString + getThroughputReservationBytes(); } /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.ReservationConfig} */ - public static final class ReservationConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReservationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.ReservationConfig) ReservationConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReservationConfig.newBuilder() to construct. private ReservationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReservationConfig() { throughputReservation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReservationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); } public static final int THROUGHPUT_RESERVATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object throughputReservation_ = ""; /** - * - * *
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2942,7 +2635,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The throughputReservation. */ @java.lang.Override @@ -2951,15 +2643,14 @@ public java.lang.String getThroughputReservation() { 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(); throughputReservation_ = s; return s; } } /** - * - * *
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2967,15 +2658,16 @@ public java.lang.String getThroughputReservation() {
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for throughputReservation. */ @java.lang.Override - public com.google.protobuf.ByteString getThroughputReservationBytes() { + public com.google.protobuf.ByteString + getThroughputReservationBytes() { java.lang.Object ref = throughputReservation_; 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); throughputReservation_ = b; return b; } else { @@ -2984,7 +2676,6 @@ public com.google.protobuf.ByteString getThroughputReservationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2996,7 +2687,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(throughputReservation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, throughputReservation_); } @@ -3020,15 +2712,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.cloud.pubsublite.proto.Topic.ReservationConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Topic.ReservationConfig other = - (com.google.cloud.pubsublite.proto.Topic.ReservationConfig) obj; + com.google.cloud.pubsublite.proto.Topic.ReservationConfig other = (com.google.cloud.pubsublite.proto.Topic.ReservationConfig) obj; - if (!getThroughputReservation().equals(other.getThroughputReservation())) return false; + if (!getThroughputReservation() + .equals(other.getThroughputReservation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3048,94 +2740,87 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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 @@ -3145,41 +2830,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.ReservationConfig} */ - 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.cloud.pubsublite.v1.Topic.ReservationConfig) com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.ReservationConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3189,9 +2872,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; } @java.lang.Override @@ -3210,11 +2893,8 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.ReservationConfig buildPartial() { - com.google.cloud.pubsublite.proto.Topic.ReservationConfig result = - new com.google.cloud.pubsublite.proto.Topic.ReservationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic.ReservationConfig result = new com.google.cloud.pubsublite.proto.Topic.ReservationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -3230,41 +2910,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.ReservationCo 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.cloud.pubsublite.proto.Topic.ReservationConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.ReservationConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.ReservationConfig)other); } else { super.mergeFrom(other); return this; @@ -3272,8 +2949,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.ReservationConfig other) { - if (other == com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) return this; if (!other.getThroughputReservation().isEmpty()) { throughputReservation_ = other.throughputReservation_; bitField0_ |= 0x00000001; @@ -3305,19 +2981,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - throughputReservation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + throughputReservation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3327,13 +3001,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object throughputReservation_ = ""; /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3341,13 +3012,13 @@ public Builder mergeFrom(
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The throughputReservation. */ public java.lang.String getThroughputReservation() { java.lang.Object ref = throughputReservation_; 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(); throughputReservation_ = s; return s; @@ -3356,8 +3027,6 @@ public java.lang.String getThroughputReservation() { } } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3365,14 +3034,15 @@ public java.lang.String getThroughputReservation() {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for throughputReservation. */ - public com.google.protobuf.ByteString getThroughputReservationBytes() { + public com.google.protobuf.ByteString + getThroughputReservationBytes() { java.lang.Object ref = throughputReservation_; 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); throughputReservation_ = b; return b; } else { @@ -3380,8 +3050,6 @@ public com.google.protobuf.ByteString getThroughputReservationBytes() { } } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3389,22 +3057,18 @@ public com.google.protobuf.ByteString getThroughputReservationBytes() {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @param value The throughputReservation to set. * @return This builder for chaining. */ - public Builder setThroughputReservation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setThroughputReservation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } throughputReservation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3412,7 +3076,6 @@ public Builder setThroughputReservation(java.lang.String value) {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearThroughputReservation() { @@ -3422,8 +3085,6 @@ public Builder clearThroughputReservation() { return this; } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3431,21 +3092,18 @@ public Builder clearThroughputReservation() {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for throughputReservation to set. * @return This builder for chaining. */ - public Builder setThroughputReservationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setThroughputReservationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); throughputReservation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3458,12 +3116,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.ReservationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.ReservationConfig) private static final com.google.cloud.pubsublite.proto.Topic.ReservationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.ReservationConfig(); } @@ -3472,28 +3130,27 @@ public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3508,15 +3165,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the topic.
    * Structured like:
@@ -3524,7 +3179,6 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInsta
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -3533,15 +3187,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; } } /** - * - * *
    * The name of the topic.
    * Structured like:
@@ -3549,15 +3202,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -3568,14 +3222,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PARTITION_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Topic.PartitionConfig partitionConfig_; /** - * - * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return Whether the partitionConfig field is set. */ @java.lang.Override @@ -3583,25 +3234,18 @@ public boolean hasPartitionConfig() { return partitionConfig_ != null; } /** - * - * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return The partitionConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfig() { - return partitionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() - : partitionConfig_; + return partitionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; } /** - * - * *
    * The settings for this topic's partitions.
    * 
@@ -3609,24 +3253,18 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfi * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder - getPartitionConfigOrBuilder() { - return partitionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() - : partitionConfig_; + public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder() { + return partitionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; } public static final int RETENTION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Topic.RetentionConfig retentionConfig_; /** - * - * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return Whether the retentionConfig field is set. */ @java.lang.Override @@ -3634,25 +3272,18 @@ public boolean hasRetentionConfig() { return retentionConfig_ != null; } /** - * - * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return The retentionConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfig() { - return retentionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() - : retentionConfig_; + return retentionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; } /** - * - * *
    * The settings for this topic's message retention.
    * 
@@ -3660,24 +3291,18 @@ public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfi * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder - getRetentionConfigOrBuilder() { - return retentionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() - : retentionConfig_; + public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder() { + return retentionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; } public static final int RESERVATION_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.Topic.ReservationConfig reservationConfig_; /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return Whether the reservationConfig field is set. */ @java.lang.Override @@ -3685,25 +3310,18 @@ public boolean hasReservationConfig() { return reservationConfig_ != null; } /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return The reservationConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationConfig() { - return reservationConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() - : reservationConfig_; + return reservationConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; } /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
@@ -3711,15 +3329,11 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationC * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder - getReservationConfigOrBuilder() { - return reservationConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() - : reservationConfig_; + public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder() { + return reservationConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3731,7 +3345,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_); } @@ -3757,13 +3372,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (partitionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPartitionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPartitionConfig()); } if (retentionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRetentionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRetentionConfig()); } if (reservationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReservationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReservationConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3773,25 +3391,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.cloud.pubsublite.proto.Topic)) { return super.equals(obj); } com.google.cloud.pubsublite.proto.Topic other = (com.google.cloud.pubsublite.proto.Topic) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasPartitionConfig() != other.hasPartitionConfig()) return false; if (hasPartitionConfig()) { - if (!getPartitionConfig().equals(other.getPartitionConfig())) return false; + if (!getPartitionConfig() + .equals(other.getPartitionConfig())) return false; } if (hasRetentionConfig() != other.hasRetentionConfig()) return false; if (hasRetentionConfig()) { - if (!getRetentionConfig().equals(other.getRetentionConfig())) return false; + if (!getRetentionConfig() + .equals(other.getRetentionConfig())) return false; } if (hasReservationConfig() != other.hasReservationConfig()) return false; if (hasReservationConfig()) { - if (!getReservationConfig().equals(other.getReservationConfig())) return false; + if (!getReservationConfig() + .equals(other.getReservationConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3823,136 +3445,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.Topic parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.Topic parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Topic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Topic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Topic parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Topic 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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; } /** - * - * *
    * Metadata about a topic resource.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.Topic) com.google.cloud.pubsublite.proto.TopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.class, - com.google.cloud.pubsublite.proto.Topic.Builder.class); + com.google.cloud.pubsublite.proto.Topic.class, com.google.cloud.pubsublite.proto.Topic.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3977,9 +3593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_descriptor; } @java.lang.Override @@ -3998,11 +3614,8 @@ public com.google.cloud.pubsublite.proto.Topic build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic buildPartial() { - com.google.cloud.pubsublite.proto.Topic result = - new com.google.cloud.pubsublite.proto.Topic(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic result = new com.google.cloud.pubsublite.proto.Topic(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -4013,18 +3626,19 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.partitionConfig_ = - partitionConfigBuilder_ == null ? partitionConfig_ : partitionConfigBuilder_.build(); + result.partitionConfig_ = partitionConfigBuilder_ == null + ? partitionConfig_ + : partitionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.retentionConfig_ = - retentionConfigBuilder_ == null ? retentionConfig_ : retentionConfigBuilder_.build(); + result.retentionConfig_ = retentionConfigBuilder_ == null + ? retentionConfig_ + : retentionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.reservationConfig_ = - reservationConfigBuilder_ == null - ? reservationConfig_ - : reservationConfigBuilder_.build(); + result.reservationConfig_ = reservationConfigBuilder_ == null + ? reservationConfig_ + : reservationConfigBuilder_.build(); } } @@ -4032,39 +3646,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Topic) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic)other); } else { super.mergeFrom(other); return this; @@ -4113,38 +3726,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getPartitionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getRetentionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getReservationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPartitionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRetentionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getReservationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4154,13 +3767,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4168,13 +3778,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -4183,8 +3793,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4192,14 +3800,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -4207,8 +3816,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4216,22 +3823,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4239,7 +3842,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -4249,8 +3851,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4258,14 +3858,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -4275,55 +3873,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Topic.PartitionConfig partitionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> - partitionConfigBuilder_; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> partitionConfigBuilder_; /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return Whether the partitionConfig field is set. */ public boolean hasPartitionConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return The partitionConfig. */ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfig() { if (partitionConfigBuilder_ == null) { - return partitionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() - : partitionConfig_; + return partitionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; } else { return partitionConfigBuilder_.getMessage(); } } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public Builder setPartitionConfig( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { + public Builder setPartitionConfig(com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { if (partitionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4337,8 +3921,6 @@ public Builder setPartitionConfig( return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
@@ -4357,21 +3939,17 @@ public Builder setPartitionConfig( return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public Builder mergePartitionConfig( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { + public Builder mergePartitionConfig(com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { if (partitionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && partitionConfig_ != null - && partitionConfig_ - != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + partitionConfig_ != null && + partitionConfig_ != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) { getPartitionConfigBuilder().mergeFrom(value); } else { partitionConfig_ = value; @@ -4384,8 +3962,6 @@ public Builder mergePartitionConfig( return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
@@ -4403,42 +3979,33 @@ public Builder clearPartitionConfig() { return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder - getPartitionConfigBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder getPartitionConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPartitionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder - getPartitionConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder() { if (partitionConfigBuilder_ != null) { return partitionConfigBuilder_.getMessageOrBuilder(); } else { - return partitionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() - : partitionConfig_; + return partitionConfig_ == null ? + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; } } /** - * - * *
      * The settings for this topic's partitions.
      * 
@@ -4446,17 +4013,14 @@ public Builder clearPartitionConfig() { * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> + com.google.cloud.pubsublite.proto.Topic.PartitionConfig, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> getPartitionConfigFieldBuilder() { if (partitionConfigBuilder_ == null) { - partitionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder>( - getPartitionConfig(), getParentForChildren(), isClean()); + partitionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.PartitionConfig, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder>( + getPartitionConfig(), + getParentForChildren(), + isClean()); partitionConfig_ = null; } return partitionConfigBuilder_; @@ -4464,55 +4028,41 @@ public Builder clearPartitionConfig() { private com.google.cloud.pubsublite.proto.Topic.RetentionConfig retentionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.RetentionConfig, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> - retentionConfigBuilder_; + com.google.cloud.pubsublite.proto.Topic.RetentionConfig, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> retentionConfigBuilder_; /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return Whether the retentionConfig field is set. */ public boolean hasRetentionConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return The retentionConfig. */ public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfig() { if (retentionConfigBuilder_ == null) { - return retentionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() - : retentionConfig_; + return retentionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; } else { return retentionConfigBuilder_.getMessage(); } } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public Builder setRetentionConfig( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { + public Builder setRetentionConfig(com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { if (retentionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4526,8 +4076,6 @@ public Builder setRetentionConfig( return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
@@ -4546,21 +4094,17 @@ public Builder setRetentionConfig( return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public Builder mergeRetentionConfig( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { + public Builder mergeRetentionConfig(com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { if (retentionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && retentionConfig_ != null - && retentionConfig_ - != com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + retentionConfig_ != null && + retentionConfig_ != com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) { getRetentionConfigBuilder().mergeFrom(value); } else { retentionConfig_ = value; @@ -4573,8 +4117,6 @@ public Builder mergeRetentionConfig( return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
@@ -4592,42 +4134,33 @@ public Builder clearRetentionConfig() { return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder - getRetentionConfigBuilder() { + public com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder getRetentionConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRetentionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder - getRetentionConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder() { if (retentionConfigBuilder_ != null) { return retentionConfigBuilder_.getMessageOrBuilder(); } else { - return retentionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() - : retentionConfig_; + return retentionConfig_ == null ? + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; } } /** - * - * *
      * The settings for this topic's message retention.
      * 
@@ -4635,17 +4168,14 @@ public Builder clearRetentionConfig() { * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.RetentionConfig, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> + com.google.cloud.pubsublite.proto.Topic.RetentionConfig, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> getRetentionConfigFieldBuilder() { if (retentionConfigBuilder_ == null) { - retentionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.RetentionConfig, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder>( - getRetentionConfig(), getParentForChildren(), isClean()); + retentionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.RetentionConfig, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder>( + getRetentionConfig(), + getParentForChildren(), + isClean()); retentionConfig_ = null; } return retentionConfigBuilder_; @@ -4653,55 +4183,41 @@ public Builder clearRetentionConfig() { private com.google.cloud.pubsublite.proto.Topic.ReservationConfig reservationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.ReservationConfig, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> - reservationConfigBuilder_; + com.google.cloud.pubsublite.proto.Topic.ReservationConfig, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> reservationConfigBuilder_; /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return Whether the reservationConfig field is set. */ public boolean hasReservationConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return The reservationConfig. */ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationConfig() { if (reservationConfigBuilder_ == null) { - return reservationConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() - : reservationConfig_; + return reservationConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; } else { return reservationConfigBuilder_.getMessage(); } } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public Builder setReservationConfig( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { + public Builder setReservationConfig(com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { if (reservationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4715,8 +4231,6 @@ public Builder setReservationConfig( return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4735,21 +4249,17 @@ public Builder setReservationConfig( return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public Builder mergeReservationConfig( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { + public Builder mergeReservationConfig(com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { if (reservationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && reservationConfig_ != null - && reservationConfig_ - != com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + reservationConfig_ != null && + reservationConfig_ != com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) { getReservationConfigBuilder().mergeFrom(value); } else { reservationConfig_ = value; @@ -4762,8 +4272,6 @@ public Builder mergeReservationConfig( return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4781,42 +4289,33 @@ public Builder clearReservationConfig() { return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder - getReservationConfigBuilder() { + public com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder getReservationConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getReservationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder - getReservationConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder() { if (reservationConfigBuilder_ != null) { return reservationConfigBuilder_.getMessageOrBuilder(); } else { - return reservationConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() - : reservationConfig_; + return reservationConfig_ == null ? + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; } } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4824,24 +4323,21 @@ public Builder clearReservationConfig() { * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.ReservationConfig, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> + com.google.cloud.pubsublite.proto.Topic.ReservationConfig, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> getReservationConfigFieldBuilder() { if (reservationConfigBuilder_ == null) { - reservationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.ReservationConfig, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder>( - getReservationConfig(), getParentForChildren(), isClean()); + reservationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.ReservationConfig, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder>( + getReservationConfig(), + getParentForChildren(), + isClean()); reservationConfig_ = null; } return reservationConfigBuilder_; } - @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); } @@ -4851,12 +4347,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic) private static final com.google.cloud.pubsublite.proto.Topic DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic(); } @@ -4865,27 +4361,27 @@ public static com.google.cloud.pubsublite.proto.Topic getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Topic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4900,4 +4396,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java similarity index 78% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java index 8a6add209..0c34bc665 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface TopicOrBuilder - extends +public interface TopicOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the topic.
    * Structured like:
@@ -33,13 +15,10 @@ public interface TopicOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the topic.
    * Structured like:
@@ -47,38 +26,30 @@ public interface TopicOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return Whether the partitionConfig field is set. */ boolean hasPartitionConfig(); /** - * - * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return The partitionConfig. */ com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfig(); /** - * - * *
    * The settings for this topic's partitions.
    * 
@@ -88,32 +59,24 @@ public interface TopicOrBuilder com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder(); /** - * - * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return Whether the retentionConfig field is set. */ boolean hasRetentionConfig(); /** - * - * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return The retentionConfig. */ com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfig(); /** - * - * *
    * The settings for this topic's message retention.
    * 
@@ -123,38 +86,29 @@ public interface TopicOrBuilder com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder(); /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return Whether the reservationConfig field is set. */ boolean hasReservationConfig(); /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return The reservationConfig. */ com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationConfig(); /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder - getReservationConfigOrBuilder(); + com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java index 9c6158ce7..8b7927cda 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java @@ -1,81 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for GetTopicPartitions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.TopicPartitions} */ -public final class TopicPartitions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TopicPartitions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.TopicPartitions) TopicPartitionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TopicPartitions.newBuilder() to construct. private TopicPartitions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TopicPartitions() {} + private TopicPartitions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TopicPartitions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.TopicPartitions.class, - com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); + com.google.cloud.pubsublite.proto.TopicPartitions.class, com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); } public static final int PARTITION_COUNT_FIELD_NUMBER = 1; private long partitionCount_ = 0L; /** - * - * *
    * The number of partitions in the topic.
    * 
* * int64 partition_count = 1; - * * @return The partitionCount. */ @java.lang.Override @@ -84,7 +63,6 @@ public long getPartitionCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,7 +74,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 (partitionCount_ != 0L) { output.writeInt64(1, partitionCount_); } @@ -110,7 +89,8 @@ public int getSerializedSize() { size = 0; if (partitionCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, partitionCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, partitionCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,15 +100,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.cloud.pubsublite.proto.TopicPartitions)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.TopicPartitions other = - (com.google.cloud.pubsublite.proto.TopicPartitions) obj; + com.google.cloud.pubsublite.proto.TopicPartitions other = (com.google.cloud.pubsublite.proto.TopicPartitions) obj; - if (getPartitionCount() != other.getPartitionCount()) return false; + if (getPartitionCount() + != other.getPartitionCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -141,142 +121,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartitionCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.TopicPartitions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions 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 GetTopicPartitions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.TopicPartitions} */ - 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.cloud.pubsublite.v1.TopicPartitions) com.google.cloud.pubsublite.proto.TopicPartitionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.TopicPartitions.class, - com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); + com.google.cloud.pubsublite.proto.TopicPartitions.class, com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.TopicPartitions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -286,9 +261,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; } @java.lang.Override @@ -307,11 +282,8 @@ public com.google.cloud.pubsublite.proto.TopicPartitions build() { @java.lang.Override public com.google.cloud.pubsublite.proto.TopicPartitions buildPartial() { - com.google.cloud.pubsublite.proto.TopicPartitions result = - new com.google.cloud.pubsublite.proto.TopicPartitions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.TopicPartitions result = new com.google.cloud.pubsublite.proto.TopicPartitions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -327,39 +299,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.TopicPartitions res 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.cloud.pubsublite.proto.TopicPartitions) { - return mergeFrom((com.google.cloud.pubsublite.proto.TopicPartitions) other); + return mergeFrom((com.google.cloud.pubsublite.proto.TopicPartitions)other); } else { super.mergeFrom(other); return this; @@ -367,8 +338,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.TopicPartitions other) { - if (other == com.google.cloud.pubsublite.proto.TopicPartitions.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.TopicPartitions.getDefaultInstance()) return this; if (other.getPartitionCount() != 0L) { setPartitionCount(other.getPartitionCount()); } @@ -398,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - partitionCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + partitionCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,19 +388,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long partitionCount_; + private long partitionCount_ ; /** - * - * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; - * * @return The partitionCount. */ @java.lang.Override @@ -440,33 +404,27 @@ public long getPartitionCount() { return partitionCount_; } /** - * - * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; - * * @param value The partitionCount to set. * @return This builder for chaining. */ public Builder setPartitionCount(long value) { - + partitionCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; - * * @return This builder for chaining. */ public Builder clearPartitionCount() { @@ -475,9 +433,9 @@ public Builder clearPartitionCount() { 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); } @@ -487,12 +445,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.TopicPartitions) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.TopicPartitions) private static final com.google.cloud.pubsublite.proto.TopicPartitions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.TopicPartitions(); } @@ -501,27 +459,27 @@ public static com.google.cloud.pubsublite.proto.TopicPartitions getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TopicPartitions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TopicPartitions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -536,4 +494,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.TopicPartitions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java new file mode 100644 index 000000000..c0b4deda2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface TopicPartitionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.TopicPartitions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The number of partitions in the topic.
+   * 
+ * + * int64 partition_count = 1; + * @return The partitionCount. + */ + long getPartitionCount(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java new file mode 100644 index 000000000..081a728c2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java @@ -0,0 +1,174 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/topic_stats.proto + +package com.google.cloud.pubsublite.proto; + +public final class TopicStatsProto { + private TopicStatsProto() {} + 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_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_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,google/cloud/pubsublite/v1/topic_stats" + + ".proto\022\032google.cloud.pubsublite.v1\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032\'google/cl" + + "oud/pubsublite/v1/common.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\336\001\n\032ComputeMessa" + + "geStatsRequest\0226\n\005topic\030\001 \001(\tB\'\340A\002\372A!\n\037p" + + "ubsublite.googleapis.com/Topic\022\026\n\tpartit" + + "ion\030\002 \001(\003B\003\340A\002\0228\n\014start_cursor\030\003 \001(\0132\".g" + + "oogle.cloud.pubsublite.v1.Cursor\0226\n\nend_" + + "cursor\030\004 \001(\0132\".google.cloud.pubsublite.v" + + "1.Cursor\"\275\001\n\033ComputeMessageStatsResponse" + + "\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_bytes" + + "\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0226\n\022minimum_even" + + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\"j\n\030ComputeHeadCursorRequest\0226\n\005topic\030\001 " + + "\001(\tB\'\340A\002\372A!\n\037pubsublite.googleapis.com/T" + + "opic\022\026\n\tpartition\030\002 \001(\003B\003\340A\002\"T\n\031ComputeH" + + "eadCursorResponse\0227\n\013head_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\"\247\001\n\030C" + + "omputeTimeCursorRequest\0226\n\005topic\030\001 \001(\tB\'" + + "\340A\002\372A!\n\037pubsublite.googleapis.com/Topic\022" + + "\026\n\tpartition\030\002 \001(\003B\003\340A\002\022;\n\006target\030\003 \001(\0132" + + "&.google.cloud.pubsublite.v1.TimeTargetB" + + "\003\340A\002\"O\n\031ComputeTimeCursorResponse\0222\n\006cur" + + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + + "ursor2\362\005\n\021TopicStatsService\022\335\001\n\023ComputeM" + + "essageStats\0226.google.cloud.pubsublite.v1" + + ".ComputeMessageStatsRequest\0327.google.clo" + + "ud.pubsublite.v1.ComputeMessageStatsResp" + + "onse\"U\202\323\344\223\002O\"J/v1/topicStats/{topic=proj" + + "ects/*/locations/*/topics/*}:computeMess" + + "ageStats:\001*\022\325\001\n\021ComputeHeadCursor\0224.goog" + + "le.cloud.pubsublite.v1.ComputeHeadCursor" + + "Request\0325.google.cloud.pubsublite.v1.Com" + + "puteHeadCursorResponse\"S\202\323\344\223\002M\"H/v1/topi" + + "cStats/{topic=projects/*/locations/*/top" + + "ics/*}:computeHeadCursor:\001*\022\325\001\n\021ComputeT" + + "imeCursor\0224.google.cloud.pubsublite.v1.C" + + "omputeTimeCursorRequest\0325.google.cloud.p" + + "ubsublite.v1.ComputeTimeCursorResponse\"S" + + "\202\323\344\223\002M\"H/v1/topicStats/{topic=projects/*" + + "/locations/*/topics/*}:computeTimeCursor" + + ":\001*\032M\312A\031pubsublite.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\320\001\n!com.google.cloud.pubsublite.proto" + + "B\017TopicStatsProtoP\001Z>cloud.google.com/go" + + "/pubsublite/apiv1/pubsublitepb;pubsublit" + + "epb\252\002\032Google.Cloud.PubSubLite.V1\312\002\032Googl" + + "e\\Cloud\\PubSubLite\\V1\352\002\035Google::Cloud::P" + + "ubSubLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor, + new java.lang.String[] { "Topic", "Partition", "StartCursor", "EndCursor", }); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor, + new java.lang.String[] { "MessageCount", "MessageBytes", "MinimumPublishTime", "MinimumEventTime", }); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor, + new java.lang.String[] { "Topic", "Partition", }); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor, + new java.lang.String[] { "HeadCursor", }); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor, + new java.lang.String[] { "Topic", "Partition", "Target", }); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor, + new java.lang.String[] { "Cursor", }); + 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.oauthScopes); + 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java index 652103bdf..e231d27d2 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java @@ -1,83 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for UpdateReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateReservationRequest} */ -public final class UpdateReservationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.UpdateReservationRequest) UpdateReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateReservationRequest.newBuilder() to construct. private UpdateReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateReservationRequest() {} + private UpdateReservationRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateReservationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, - com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); } public static final int RESERVATION_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Reservation reservation_; /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ @java.lang.Override @@ -85,54 +62,37 @@ public boolean hasReservation() { return reservation_ != null; } /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Reservation getReservation() { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .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 @@ -140,15 +100,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .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 @@ -156,14 +112,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .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() { @@ -171,7 +124,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +135,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 (reservation_ != null) { output.writeMessage(1, getReservation()); } @@ -200,10 +153,12 @@ public int getSerializedSize() { size = 0; if (reservation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReservation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReservation()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,21 +168,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.cloud.pubsublite.proto.UpdateReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.UpdateReservationRequest other = - (com.google.cloud.pubsublite.proto.UpdateReservationRequest) obj; + com.google.cloud.pubsublite.proto.UpdateReservationRequest other = (com.google.cloud.pubsublite.proto.UpdateReservationRequest) obj; if (hasReservation() != other.hasReservation()) return false; if (hasReservation()) { - if (!getReservation().equals(other.getReservation())) return false; + if (!getReservation() + .equals(other.getReservation())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +210,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.UpdateReservationRequest 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 UpdateReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateReservationRequest} */ - 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.cloud.pubsublite.v1.UpdateReservationRequest) com.google.cloud.pubsublite.proto.UpdateReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, - com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.UpdateReservationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; } @java.lang.Override @@ -423,11 +372,8 @@ public com.google.cloud.pubsublite.proto.UpdateReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.UpdateReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.UpdateReservationRequest result = - new com.google.cloud.pubsublite.proto.UpdateReservationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.UpdateReservationRequest result = new com.google.cloud.pubsublite.proto.UpdateReservationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -435,11 +381,14 @@ public com.google.cloud.pubsublite.proto.UpdateReservationRequest buildPartial() private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateReservationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.reservation_ = - reservationBuilder_ == null ? reservation_ : reservationBuilder_.build(); + result.reservation_ = reservationBuilder_ == null + ? reservation_ + : reservationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -447,39 +396,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateReservationRe 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.cloud.pubsublite.proto.UpdateReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.UpdateReservationRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.UpdateReservationRequest)other); } else { super.mergeFrom(other); return this; @@ -487,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.UpdateReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.UpdateReservationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.UpdateReservationRequest.getDefaultInstance()) return this; if (other.hasReservation()) { mergeReservation(other.getReservation()); } @@ -521,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getReservationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getReservationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -549,63 +497,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Reservation reservation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> - reservationBuilder_; + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> reservationBuilder_; /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ public boolean hasReservation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ public com.google.cloud.pubsublite.proto.Reservation getReservation() { if (reservationBuilder_ == null) { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } else { return reservationBuilder_.getMessage(); } } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { @@ -621,15 +549,11 @@ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation valu return this; } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReservation( com.google.cloud.pubsublite.proto.Reservation.Builder builderForValue) { @@ -643,21 +567,17 @@ public Builder setReservation( return this; } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && reservation_ != null - && reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + reservation_ != null && + reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { getReservationBuilder().mergeFrom(value); } else { reservation_ = value; @@ -670,15 +590,11 @@ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation va return this; } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReservation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -691,15 +607,11 @@ public Builder clearReservation() { return this; } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuilder() { bitField0_ |= 0x00000001; @@ -707,48 +619,36 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuild return getReservationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { if (reservationBuilder_ != null) { return reservationBuilder_.getMessageOrBuilder(); } else { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> getReservationFieldBuilder() { if (reservationBuilder_ == null) { - reservationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder>( - getReservation(), getParentForChildren(), isClean()); + reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder>( + getReservation(), + getParentForChildren(), + isClean()); reservation_ = null; } return reservationBuilder_; @@ -756,55 +656,39 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu 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. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .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. A mask specifying the reservation fields to change.
      * 
* - * .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) { @@ -820,16 +704,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -840,20 +722,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -866,14 +745,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -886,14 +762,11 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -901,53 +774,43 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .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. A mask specifying the reservation fields to change.
      * 
* - * .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); } @@ -957,12 +820,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.UpdateReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.UpdateReservationRequest) private static final com.google.cloud.pubsublite.proto.UpdateReservationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.UpdateReservationRequest(); } @@ -971,27 +834,27 @@ public static com.google.cloud.pubsublite.proto.UpdateReservationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,4 +869,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.UpdateReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java index 91cb9e232..81ce74cd4 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java @@ -1,104 +1,63 @@ -/* - * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface UpdateReservationRequestOrBuilder - extends +public interface UpdateReservationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.UpdateReservationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ boolean hasReservation(); /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ com.google.cloud.pubsublite.proto.Reservation getReservation(); /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder(); /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .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. A mask specifying the reservation fields to change.
    * 
* - * .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. A mask specifying the reservation fields to change.
    * 
* - * .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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java index 109923425..3865864c5 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java @@ -1,84 +1,61 @@ -/* - * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for UpdateSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Subscription subscription_; /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ @java.lang.Override @@ -86,56 +63,39 @@ public boolean hasSubscription() { return subscription_ != null; } /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription getSubscription() { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .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 @@ -143,15 +103,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .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 @@ -159,14 +115,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .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() { @@ -174,7 +127,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +138,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()); } @@ -203,10 +156,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,21 +171,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.cloud.pubsublite.proto.UpdateSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest other = - (com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest other = (com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) obj; if (hasSubscription() != other.hasSubscription()) return false; if (hasSubscription()) { - if (!getSubscription().equals(other.getSubscription())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -257,136 +213,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.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 UpdateSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.UpdateSubscriptionRequest) com.google.cloud.pubsublite.proto.UpdateSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override @@ -426,11 +375,8 @@ public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest result = new com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -438,11 +384,14 @@ public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest buildPartial( private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.subscription_ = - subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); + result.subscription_ = subscriptionBuilder_ == null + ? subscription_ + : subscriptionBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -450,39 +399,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateSubscriptionR 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.cloud.pubsublite.proto.UpdateSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -490,8 +438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.getDefaultInstance()) return this; if (other.hasSubscription()) { mergeSubscription(other.getSubscription()); } @@ -524,25 +471,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSubscriptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,66 +500,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> - subscriptionBuilder_; + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> subscriptionBuilder_; /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ public com.google.cloud.pubsublite.proto.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { @@ -627,16 +555,12 @@ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription va return this; } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubscription( com.google.cloud.pubsublite.proto.Subscription.Builder builderForValue) { @@ -650,23 +574,18 @@ public Builder setSubscription( return this; } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && subscription_ != null - && subscription_ - != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + subscription_ != null && + subscription_ != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; @@ -679,16 +598,12 @@ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription return this; } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubscription() { bitField0_ = (bitField0_ & ~0x00000001); @@ -701,16 +616,12 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBuilder() { bitField0_ |= 0x00000001; @@ -718,50 +629,38 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBui return getSubscriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( - getSubscription(), getParentForChildren(), isClean()); + subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( + getSubscription(), + getParentForChildren(), + isClean()); subscription_ = null; } return subscriptionBuilder_; @@ -769,55 +668,39 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr 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. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .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. A mask specifying the subscription fields to change.
      * 
* - * .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) { @@ -833,16 +716,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -853,20 +734,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -879,14 +757,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -899,14 +774,11 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -914,53 +786,43 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .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. A mask specifying the subscription fields to change.
      * 
* - * .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); } @@ -970,12 +832,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest(); } @@ -984,27 +846,27 @@ public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java index 96d395d78..608fc2ac1 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface UpdateSubscriptionRequestOrBuilder - extends +public interface UpdateSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ boolean hasSubscription(); /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ com.google.cloud.pubsublite.proto.Subscription getSubscription(); /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .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. A mask specifying the subscription fields to change.
    * 
* - * .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. A mask specifying the subscription fields to change.
    * 
* - * .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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java index 94f417de6..9a2b2de76 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java @@ -1,82 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for UpdateTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, - com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Topic topic_; /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ @java.lang.Override @@ -84,15 +62,11 @@ public boolean hasTopic() { return topic_ != null; } /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ @java.lang.Override @@ -100,14 +74,11 @@ public com.google.cloud.pubsublite.proto.Topic getTopic() { return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { @@ -117,15 +88,11 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .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 @@ -133,15 +100,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .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 @@ -149,14 +112,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .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() { @@ -164,7 +124,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,7 +135,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()); } @@ -193,10 +153,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -206,21 +168,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.cloud.pubsublite.proto.UpdateTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.UpdateTopicRequest other = - (com.google.cloud.pubsublite.proto.UpdateTopicRequest) obj; + com.google.cloud.pubsublite.proto.UpdateTopicRequest other = (com.google.cloud.pubsublite.proto.UpdateTopicRequest) obj; if (hasTopic() != other.hasTopic()) return false; if (hasTopic()) { - if (!getTopic().equals(other.getTopic())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -247,135 +210,129 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.UpdateTopicRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 UpdateTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.UpdateTopicRequest) com.google.cloud.pubsublite.proto.UpdateTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, - com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.UpdateTopicRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -394,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; } @java.lang.Override @@ -415,11 +372,8 @@ public com.google.cloud.pubsublite.proto.UpdateTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.UpdateTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.UpdateTopicRequest result = - new com.google.cloud.pubsublite.proto.UpdateTopicRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.UpdateTopicRequest result = new com.google.cloud.pubsublite.proto.UpdateTopicRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -427,10 +381,14 @@ public com.google.cloud.pubsublite.proto.UpdateTopicRequest buildPartial() { private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateTopicRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); + result.topic_ = topicBuilder_ == null + ? topic_ + : topicBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -438,39 +396,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateTopicRequest 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.cloud.pubsublite.proto.UpdateTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.UpdateTopicRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.UpdateTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -478,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.UpdateTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.UpdateTopicRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.UpdateTopicRequest.getDefaultInstance()) return this; if (other.hasTopic()) { mergeTopic(other.getTopic()); } @@ -512,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTopicFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -540,60 +497,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> - topicBuilder_; + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> topicBuilder_; /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ public com.google.cloud.pubsublite.proto.Topic getTopic() { if (topicBuilder_ == null) { - return topic_ == null - ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() - : topic_; + return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } else { return topicBuilder_.getMessage(); } } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { @@ -609,16 +549,14 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { + public Builder setTopic( + com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); } else { @@ -629,20 +567,17 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderF return this; } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && topic_ != null - && topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + topic_ != null && + topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { getTopicBuilder().mergeFrom(value); } else { topic_ = value; @@ -655,14 +590,11 @@ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTopic() { bitField0_ = (bitField0_ & ~0x00000001); @@ -675,14 +607,11 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { bitField0_ |= 0x00000001; @@ -690,46 +619,36 @@ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { return getTopicFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { - return topic_ == null - ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() - : topic_; + return topic_ == null ? + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> getTopicFieldBuilder() { if (topicBuilder_ == null) { - topicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder>( - getTopic(), getParentForChildren(), isClean()); + topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder>( + getTopic(), + getParentForChildren(), + isClean()); topic_ = null; } return topicBuilder_; @@ -737,55 +656,39 @@ public com.google.cloud.pubsublite.proto.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. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .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. A mask specifying the topic fields to change.
      * 
* - * .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) { @@ -801,16 +704,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -821,20 +722,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -847,14 +745,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -867,14 +762,11 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -882,53 +774,43 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .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. A mask specifying the topic fields to change.
      * 
* - * .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); } @@ -938,12 +820,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.UpdateTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.UpdateTopicRequest) private static final com.google.cloud.pubsublite.proto.UpdateTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.UpdateTopicRequest(); } @@ -952,27 +834,27 @@ public static com.google.cloud.pubsublite.proto.UpdateTopicRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -987,4 +869,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.UpdateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java index 99566eeec..3cdd033ed 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java @@ -1,101 +1,63 @@ -/* - * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface UpdateTopicRequestOrBuilder - extends +public interface UpdateTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.UpdateTopicRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ boolean hasTopic(); /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ com.google.cloud.pubsublite.proto.Topic getTopic(); /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder(); /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .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. A mask specifying the topic fields to change.
    * 
* - * .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. A mask specifying the topic fields to change.
    * 
* - * .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-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto similarity index 93% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto index b13270b96..484aa1956 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto @@ -38,7 +38,8 @@ option ruby_package = "Google::Cloud::PubSubLite::V1"; // subscriptions, such creating, listing, and deleting topics and subscriptions. service AdminService { option (google.api.default_host) = "pubsublite.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates a new topic. rpc CreateTopic(CreateTopicRequest) returns (Topic) { @@ -91,7 +92,8 @@ service AdminService { } // Lists the subscriptions attached to the specified topic. - rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) returns (ListTopicSubscriptionsResponse) { + rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) + returns (ListTopicSubscriptionsResponse) { option (google.api.http) = { get: "/v1/admin/{name=projects/*/locations/*/topics/*}/subscriptions" }; @@ -104,7 +106,8 @@ service AdminService { post: "/v1/admin/{parent=projects/*/locations/*}/subscriptions" body: "subscription" }; - option (google.api.method_signature) = "parent,subscription,subscription_id"; + option (google.api.method_signature) = + "parent,subscription,subscription_id"; } // Returns the subscription configuration. @@ -116,7 +119,8 @@ service AdminService { } // Returns the list of subscriptions for the given project. - rpc ListSubscriptions(ListSubscriptionsRequest) returns (ListSubscriptionsResponse) { + rpc ListSubscriptions(ListSubscriptionsRequest) + returns (ListSubscriptionsResponse) { option (google.api.http) = { get: "/v1/admin/{parent=projects/*/locations/*}/subscriptions" }; @@ -133,7 +137,8 @@ service AdminService { } // Deletes the specified subscription. - rpc DeleteSubscription(DeleteSubscriptionRequest) returns (google.protobuf.Empty) { + rpc DeleteSubscription(DeleteSubscriptionRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/admin/{name=projects/*/locations/*/subscriptions/*}" }; @@ -161,7 +166,8 @@ service AdminService { // // If the previous seek operation has not yet completed, it will be aborted // and the new invocation of seek will supersede it. - rpc SeekSubscription(SeekSubscriptionRequest) returns (google.longrunning.Operation) { + rpc SeekSubscription(SeekSubscriptionRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/admin/{name=projects/*/locations/*/subscriptions/*}:seek" body: "*" @@ -190,7 +196,8 @@ service AdminService { } // Returns the list of reservations for the given project. - rpc ListReservations(ListReservationsRequest) returns (ListReservationsResponse) { + rpc ListReservations(ListReservationsRequest) + returns (ListReservationsResponse) { option (google.api.http) = { get: "/v1/admin/{parent=projects/*/locations/*}/reservations" }; @@ -207,7 +214,8 @@ service AdminService { } // Deletes the specified reservation. - rpc DeleteReservation(DeleteReservationRequest) returns (google.protobuf.Empty) { + rpc DeleteReservation(DeleteReservationRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/admin/{name=projects/*/locations/*/reservations/*}" }; @@ -215,7 +223,8 @@ service AdminService { } // Lists the topics attached to the specified reservation. - rpc ListReservationTopics(ListReservationTopicsRequest) returns (ListReservationTopicsResponse) { + rpc ListReservationTopics(ListReservationTopicsRequest) + returns (ListReservationTopicsResponse) { option (google.api.http) = { get: "/v1/admin/{name=projects/*/locations/*/reservations/*}/topics" }; @@ -234,11 +243,12 @@ message CreateTopicRequest { } ]; - // Required. Configuration of the topic to create. Its `name` field is ignored. + // Required. Configuration of the topic to create. Its `name` field is + // ignored. Topic topic = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The ID to use for the topic, which will become the final component of - // the topic's name. + // Required. The ID to use for the topic, which will become the final + // component of the topic's name. // // This value is structured like: `my-topic-name`. string topic_id = 3 [(google.api.field_behavior) = REQUIRED]; @@ -313,7 +323,8 @@ message UpdateTopicRequest { Topic topic = 1 [(google.api.field_behavior) = REQUIRED]; // Required. A mask specifying the topic fields to change. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for DeleteTopic. @@ -372,11 +383,12 @@ message CreateSubscriptionRequest { } ]; - // Required. Configuration of the subscription to create. Its `name` field is ignored. + // Required. Configuration of the subscription to create. Its `name` field is + // ignored. Subscription subscription = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The ID to use for the subscription, which will become the final component - // of the subscription's name. + // Required. The ID to use for the subscription, which will become the final + // component of the subscription's name. // // This value is structured like: `my-sub-name`. string subscription_id = 3 [(google.api.field_behavior) = REQUIRED]; @@ -440,7 +452,8 @@ message UpdateSubscriptionRequest { Subscription subscription = 1 [(google.api.field_behavior) = REQUIRED]; // Required. A mask specifying the subscription fields to change. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for DeleteSubscription. @@ -490,9 +503,7 @@ message SeekSubscriptionRequest { } // Response for SeekSubscription long running operation. -message SeekSubscriptionResponse { - -} +message SeekSubscriptionResponse {} // Metadata for long running operations. message OperationMetadata { @@ -523,11 +534,12 @@ message CreateReservationRequest { } ]; - // Required. Configuration of the reservation to create. Its `name` field is ignored. + // Required. Configuration of the reservation to create. Its `name` field is + // ignored. Reservation reservation = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The ID to use for the reservation, which will become the final component of - // the reservation's name. + // Required. The ID to use for the reservation, which will become the final + // component of the reservation's name. // // This value is structured like: `my-reservation-name`. string reservation_id = 3 [(google.api.field_behavior) = REQUIRED]; @@ -587,7 +599,8 @@ message UpdateReservationRequest { Reservation reservation = 1 [(google.api.field_behavior) = REQUIRED]; // Required. A mask specifying the reservation fields to change. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for DeleteReservation. diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto similarity index 96% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto index dd6d89a73..3f08c3086 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto @@ -163,8 +163,8 @@ message Topic { // Structured like: // projects/{project_number}/locations/{location}/reservations/{reservation_id} string throughput_reservation = 1 [(google.api.resource_reference) = { - type: "pubsublite.googleapis.com/Reservation" - }]; + type: "pubsublite.googleapis.com/Reservation" + }]; } // The name of the topic. @@ -221,8 +221,8 @@ message Subscription { // Structured like: // projects/{project_number}/locations/{location}/topics/{topic_id} string topic = 2 [(google.api.resource_reference) = { - type: "pubsublite.googleapis.com/Topic" - }]; + type: "pubsublite.googleapis.com/Topic" + }]; // The settings for this subscription's message delivery. DeliveryConfig delivery_config = 3; @@ -265,13 +265,13 @@ message ExportConfig { // `ACTIVE` and `PAUSED` will result in an error. State desired_state = 1; - // Output only. The current state of the export, which may be different to the desired - // state due to errors. + // Output only. The current state of the export, which may be different to the + // desired state due to errors. This field is output only. State current_state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not - // be exported to the destination. For example, the message can not be - // published to the Pub/Sub service because it does not satisfy the + // Optional. The name of an optional Pub/Sub Lite topic to publish messages + // that can not be exported to the destination. For example, the message can + // not be published to the Pub/Sub service because it does not satisfy the // constraints documented at https://cloud.google.com/pubsub/docs/publisher. // // Structured like: diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto similarity index 94% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto index 3b8fc7d0e..95a62fc36 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto @@ -36,11 +36,12 @@ option ruby_package = "Google::Cloud::PubSubLite::V1"; // progress within a topic partition for a given subscription. service CursorService { option (google.api.default_host) = "pubsublite.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Establishes a stream with the server for managing committed cursors. - rpc StreamingCommitCursor(stream StreamingCommitCursorRequest) returns (stream StreamingCommitCursorResponse) { - } + rpc StreamingCommitCursor(stream StreamingCommitCursorRequest) + returns (stream StreamingCommitCursorResponse) {} // Updates the committed cursor. rpc CommitCursor(CommitCursorRequest) returns (CommitCursorResponse) { @@ -51,7 +52,8 @@ service CursorService { } // Returns all committed cursor information for a subscription. - rpc ListPartitionCursors(ListPartitionCursorsRequest) returns (ListPartitionCursorsResponse) { + rpc ListPartitionCursors(ListPartitionCursorsRequest) + returns (ListPartitionCursorsResponse) { option (google.api.http) = { get: "/v1/cursor/{parent=projects/*/locations/*/subscriptions/*}/cursors" }; @@ -72,9 +74,7 @@ message InitialCommitCursorRequest { } // Response to an InitialCommitCursorRequest. -message InitialCommitCursorResponse { - -} +message InitialCommitCursorResponse {} // Streaming request to update the committed cursor. Subsequent // SequencedCommitCursorRequests override outstanding ones. @@ -129,9 +129,7 @@ message CommitCursorRequest { } // Response for CommitCursor. -message CommitCursorResponse { - -} +message CommitCursorResponse {} // Request for ListPartitionCursors. message ListPartitionCursorsRequest { diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto similarity index 60% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto index 748fabcdf..20b924384 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto @@ -35,7 +35,8 @@ option ruby_package = "Google::Cloud::PubSubLite::V1"; // to subscriber clients upon request (via the `SubscriberService`). service PublisherService { option (google.api.default_host) = "pubsublite.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Establishes a stream with the server for publishing messages. Once the // stream is initialized, the client publishes messages by sending publish @@ -44,8 +45,7 @@ service PublisherService { // were sent. Note that multiple PublishRequests can be in flight // simultaneously, but they will be processed by the server in the order that // they are sent by the client on a given stream. - rpc Publish(stream PublishRequest) returns (stream PublishResponse) { - } + rpc Publish(stream PublishRequest) returns (stream PublishResponse) {} } // The first request that must be sent on a newly-opened stream. @@ -57,24 +57,68 @@ message InitialPublishRequest { // Partitions are zero indexed, so `partition` must be in the range [0, // topic.num_partitions). int64 partition = 2; + + // Unique identifier for a publisher client. If set, enables publish + // idempotency within a publisher client session. + // + // The length of this field must be exactly 16 bytes long and should be + // populated with a 128 bit uuid, generated by standard uuid algorithms like + // uuid1 or uuid4. The same identifier should be reused following + // disconnections with retryable stream errors. + bytes client_id = 3; } // Response to an InitialPublishRequest. -message InitialPublishResponse { - -} +message InitialPublishResponse {} // Request to publish messages to the topic. message MessagePublishRequest { // The messages to publish. repeated PubSubMessage messages = 1; + + // The sequence number corresponding to the first message in `messages`. + // Messages within a batch are ordered and the sequence numbers of all + // subsequent messages in the batch are assumed to be incremental. + // + // Sequence numbers are assigned at the message level and the first message + // published in a publisher client session must have a sequence number of 0. + // All messages must have contiguous sequence numbers, which uniquely identify + // the messages accepted by the publisher client. Since messages are ordered, + // the client only needs to specify the sequence number of the first message + // in a published batch. The server deduplicates messages with the same + // sequence number from the same publisher `client_id`. + int64 first_sequence_number = 2; } // Response to a MessagePublishRequest. message MessagePublishResponse { + // Cursors for a subrange of published messages. + message CursorRange { + // The cursor of the message at the start index. The cursors for remaining + // messages up to the end index (exclusive) are sequential. + Cursor start_cursor = 1; + + // Index of the message in the published batch that corresponds to the + // start cursor. Inclusive. + int32 start_index = 2; + + // Index of the last message in this range. Exclusive. + int32 end_index = 3; + } + // The cursor of the first published message in the batch. The cursors for any // remaining messages in the batch are guaranteed to be sequential. Cursor start_cursor = 1; + + // Cursors for messages published in the batch. There will exist multiple + // ranges when cursors are not contiguous within the batch. + // + // The cursor ranges may not account for all messages in the batch when + // publish idempotency is enabled. A missing range indicates that cursors + // could not be determined for messages within the range, as they were + // deduplicated and the necessary data was not available at publish time. + // These messages will have offsets when received by a subscriber. + repeated CursorRange cursor_ranges = 2; } // Request sent from the client to the server on a stream. diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto similarity index 94% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto index 3a22c77bb..a02b3cf5d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto @@ -34,18 +34,19 @@ option ruby_package = "Google::Cloud::PubSubLite::V1"; // from subscriptions. service SubscriberService { option (google.api.default_host) = "pubsublite.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Establishes a stream with the server for receiving messages. - rpc Subscribe(stream SubscribeRequest) returns (stream SubscribeResponse) { - } + rpc Subscribe(stream SubscribeRequest) returns (stream SubscribeResponse) {} } // The service that a subscriber client application uses to determine which // partitions it should connect to. service PartitionAssignmentService { option (google.api.default_host) = "pubsublite.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Assign partitions for this client to handle for the specified subscription. // @@ -54,8 +55,8 @@ service PartitionAssignmentService { // outstanding on the stream at a time. // The client should send a PartitionAssignmentAck after updating the // partitions it is connected to to reflect the new assignment. - rpc AssignPartitions(stream PartitionAssignmentRequest) returns (stream PartitionAssignment) { - } + rpc AssignPartitions(stream PartitionAssignmentRequest) + returns (stream PartitionAssignment) {} } // The first request that must be sent on a newly-opened stream. The client must @@ -68,9 +69,9 @@ message InitialSubscribeRequest { // so `partition` must be in the range [0, topic.num_partitions). int64 partition = 2; - // Optional. Initial target location within the message backlog. If not set, messages - // will be delivered from the commit cursor for the given subscription and - // partition. + // Optional. Initial target location within the message backlog. If not set, + // messages will be delivered from the commit cursor for the given + // subscription and partition. SeekRequest initial_location = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -202,9 +203,7 @@ message PartitionAssignment { // partitions may remain unassigned for a period of time until the // client is known to be inactive, after which time the server will break the // stream. -message PartitionAssignmentAck { - -} +message PartitionAssignmentAck {} // A request on the PartitionAssignment stream. message PartitionAssignmentRequest { diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto similarity index 93% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto index 23d225acf..f6226d3e0 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto @@ -34,11 +34,13 @@ option ruby_package = "Google::Cloud::PubSubLite::V1"; // This service allows users to get stats about messages in their topic. service TopicStatsService { option (google.api.default_host) = "pubsublite.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Compute statistics about a range of messages in a given topic and // partition. - rpc ComputeMessageStats(ComputeMessageStatsRequest) returns (ComputeMessageStatsResponse) { + rpc ComputeMessageStats(ComputeMessageStatsRequest) + returns (ComputeMessageStatsResponse) { option (google.api.http) = { post: "/v1/topicStats/{topic=projects/*/locations/*/topics/*}:computeMessageStats" body: "*" @@ -51,7 +53,8 @@ service TopicStatsService { // greater than the offset of any message whose publish has already // been acknowledged. It is zero if there have never been messages in the // partition. - rpc ComputeHeadCursor(ComputeHeadCursorRequest) returns (ComputeHeadCursorResponse) { + rpc ComputeHeadCursor(ComputeHeadCursorRequest) + returns (ComputeHeadCursorResponse) { option (google.api.http) = { post: "/v1/topicStats/{topic=projects/*/locations/*/topics/*}:computeHeadCursor" body: "*" @@ -60,7 +63,8 @@ service TopicStatsService { // Compute the corresponding cursor for a publish or event time in a topic // partition. - rpc ComputeTimeCursor(ComputeTimeCursorRequest) returns (ComputeTimeCursorResponse) { + rpc ComputeTimeCursor(ComputeTimeCursorRequest) + returns (ComputeTimeCursorResponse) { option (google.api.http) = { post: "/v1/topicStats/{topic=projects/*/locations/*/topics/*}:computeTimeCursor" body: "*" @@ -143,8 +147,8 @@ message ComputeTimeCursorRequest { // Required. The partition for which we should compute the cursor. int64 partition = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The target publish or event time. Specifying a future time will return an - // unset cursor. + // Required. The target publish or event time. Specifying a future time will + // return an unset cursor. TimeTarget target = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java deleted file mode 100644 index db349d390..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java +++ /dev/null @@ -1,592 +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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public final class AdminProto { - private AdminProto() {} - - 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_cloud_pubsublite_v1_CreateTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_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&google/cloud/pubsublite/v1/admin.proto" - + "\022\032google.cloud.pubsublite.v1\032\034google/api" - + "/annotations.proto\032\027google/api/client.pr" - + "oto\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032\'google/cloud/pu" - + "bsublite/v1/common.proto\032#google/longrun" - + "ning/operations.proto\032\033google/protobuf/e" - + "mpty.proto\032 google/protobuf/field_mask.p" - + "roto\032\037google/protobuf/timestamp.proto\"\235\001" - + "\n\022CreateTopicRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "5\n\005topic\030\002 \001(\0132!.google.cloud.pubsublite" - + ".v1.TopicB\003\340A\002\022\025\n\010topic_id\030\003 \001(\tB\003\340A\002\"H\n" - + "\017GetTopicRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" - + "pubsublite.googleapis.com/Topic\"R\n\031GetTo" - + "picPartitionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" - + "A!\n\037pubsublite.googleapis.com/Topic\"*\n\017T" - + "opicPartitions\022\027\n\017partition_count\030\001 \001(\003\"" - + "u\n\021ListTopicsRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"`" - + "\n\022ListTopicsResponse\0221\n\006topics\030\001 \003(\0132!.g" - + "oogle.cloud.pubsublite.v1.Topic\022\027\n\017next_" - + "page_token\030\002 \001(\t\"\201\001\n\022UpdateTopicRequest\022" - + "5\n\005topic\030\001 \001(\0132!.google.cloud.pubsublite" - + ".v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\"K\n\022DeleteTo" - + "picRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037pubsub" - + "lite.googleapis.com/Topic\"}\n\035ListTopicSu" - + "bscriptionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" - + "\n\037pubsublite.googleapis.com/Topic\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036List" - + "TopicSubscriptionsResponse\022\025\n\rsubscripti" - + "ons\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\317\001\n\031C" - + "reateSubscriptionRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022C\n\014subscription\030\002 \001(\0132(.google.cloud" - + ".pubsublite.v1.SubscriptionB\003\340A\002\022\034\n\017subs" - + "cription_id\030\003 \001(\tB\003\340A\002\022\024\n\014skip_backlog\030\004" - + " \001(\010\"V\n\026GetSubscriptionRequest\022<\n\004name\030\001" - + " \001(\tB.\340A\002\372A(\n&pubsublite.googleapis.com/" - + "Subscription\"|\n\030ListSubscriptionsRequest" - + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\"u\n\031ListSubscriptionsR" - + "esponse\022?\n\rsubscriptions\030\001 \003(\0132(.google." - + "cloud.pubsublite.v1.Subscription\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\226\001\n\031UpdateSubscription" - + "Request\022C\n\014subscription\030\001 \001(\0132(.google.c" - + "loud.pubsublite.v1.SubscriptionB\003\340A\002\0224\n\013" - + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" - + "dMaskB\003\340A\002\"Y\n\031DeleteSubscriptionRequest\022" - + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.google" - + "apis.com/Subscription\"\272\002\n\027SeekSubscripti" - + "onRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsubl" - + "ite.googleapis.com/Subscription\022W\n\014named" - + "_target\030\002 \001(\0162?.google.cloud.pubsublite." - + "v1.SeekSubscriptionRequest.NamedTargetH\000" - + "\022=\n\013time_target\030\003 \001(\0132&.google.cloud.pub" - + "sublite.v1.TimeTargetH\000\"?\n\013NamedTarget\022\034" - + "\n\030NAMED_TARGET_UNSPECIFIED\020\000\022\010\n\004TAIL\020\001\022\010" - + "\n\004HEAD\020\002B\010\n\006target\"\032\n\030SeekSubscriptionRe" - + "sponse\"\220\001\n\021OperationMetadata\022/\n\013create_t" - + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" - + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "amp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\"\265\001\n\030Cr" - + "eateReservationRequest\0229\n\006parent\030\001 \001(\tB)" - + "\340A\002\372A#\n!locations.googleapis.com/Locatio" - + "n\022A\n\013reservation\030\002 \001(\0132\'.google.cloud.pu" - + "bsublite.v1.ReservationB\003\340A\002\022\033\n\016reservat" - + "ion_id\030\003 \001(\tB\003\340A\002\"T\n\025GetReservationReque" - + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" - + "gleapis.com/Reservation\"{\n\027ListReservati" - + "onsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" - + "tions.googleapis.com/Location\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n\030ListRese" - + "rvationsResponse\022=\n\014reservations\030\001 \003(\0132\'" - + ".google.cloud.pubsublite.v1.Reservation\022" - + "\027\n\017next_page_token\030\002 \001(\t\"\223\001\n\030UpdateReser" - + "vationRequest\022A\n\013reservation\030\001 \001(\0132\'.goo" - + "gle.cloud.pubsublite.v1.ReservationB\003\340A\002" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"W\n\030DeleteReservationReque" - + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" - + "gleapis.com/Reservation\"\202\001\n\034ListReservat" - + "ionTopicsRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" - + "pubsublite.googleapis.com/Reservation\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035" - + "ListReservationTopicsResponse\022\016\n\006topics\030" - + "\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\257\036\n\014Admin" - + "Service\022\271\001\n\013CreateTopic\022..google.cloud.p" - + "ubsublite.v1.CreateTopicRequest\032!.google" - + ".cloud.pubsublite.v1.Topic\"W\202\323\344\223\0029\"0/v1/" - + "admin/{parent=projects/*/locations/*}/to" - + "pics:\005topic\332A\025parent,topic,topic_id\022\233\001\n\010" - + "GetTopic\022+.google.cloud.pubsublite.v1.Ge" - + "tTopicRequest\032!.google.cloud.pubsublite." - + "v1.Topic\"?\202\323\344\223\0022\0220/v1/admin/{name=projec" - + "ts/*/locations/*/topics/*}\332A\004name\022\304\001\n\022Ge" - + "tTopicPartitions\0225.google.cloud.pubsubli" - + "te.v1.GetTopicPartitionsRequest\032+.google" - + ".cloud.pubsublite.v1.TopicPartitions\"J\202\323" - + "\344\223\002=\022;/v1/admin/{name=projects/*/locatio" - + "ns/*/topics/*}/partitions\332A\004name\022\256\001\n\nLis" - + "tTopics\022-.google.cloud.pubsublite.v1.Lis" - + "tTopicsRequest\032..google.cloud.pubsublite" - + ".v1.ListTopicsResponse\"A\202\323\344\223\0022\0220/v1/admi" - + "n/{parent=projects/*/locations/*}/topics" - + "\332A\006parent\022\273\001\n\013UpdateTopic\022..google.cloud" - + ".pubsublite.v1.UpdateTopicRequest\032!.goog" - + "le.cloud.pubsublite.v1.Topic\"Y\202\323\344\223\002?26/v" - + "1/admin/{topic.name=projects/*/locations" - + "/*/topics/*}:\005topic\332A\021topic,update_mask\022" - + "\226\001\n\013DeleteTopic\022..google.cloud.pubsublit" - + "e.v1.DeleteTopicRequest\032\026.google.protobu" - + "f.Empty\"?\202\323\344\223\0022*0/v1/admin/{name=project" - + "s/*/locations/*/topics/*}\332A\004name\022\336\001\n\026Lis" - + "tTopicSubscriptions\0229.google.cloud.pubsu" - + "blite.v1.ListTopicSubscriptionsRequest\032:" - + ".google.cloud.pubsublite.v1.ListTopicSub" - + "scriptionsResponse\"M\202\323\344\223\002@\022>/v1/admin/{n" - + "ame=projects/*/locations/*/topics/*}/sub" - + "scriptions\332A\004name\022\352\001\n\022CreateSubscription" - + "\0225.google.cloud.pubsublite.v1.CreateSubs" - + "criptionRequest\032(.google.cloud.pubsublit" - + "e.v1.Subscription\"s\202\323\344\223\002G\"7/v1/admin/{pa" - + "rent=projects/*/locations/*}/subscriptio" - + "ns:\014subscription\332A#parent,subscription,s" - + "ubscription_id\022\267\001\n\017GetSubscription\0222.goo" - + "gle.cloud.pubsublite.v1.GetSubscriptionR" - + "equest\032(.google.cloud.pubsublite.v1.Subs" - + "cription\"F\202\323\344\223\0029\0227/v1/admin/{name=projec" - + "ts/*/locations/*/subscriptions/*}\332A\004name" - + "\022\312\001\n\021ListSubscriptions\0224.google.cloud.pu" - + "bsublite.v1.ListSubscriptionsRequest\0325.g" - + "oogle.cloud.pubsublite.v1.ListSubscripti" - + "onsResponse\"H\202\323\344\223\0029\0227/v1/admin/{parent=p" - + "rojects/*/locations/*}/subscriptions\332A\006p" - + "arent\022\354\001\n\022UpdateSubscription\0225.google.cl" - + "oud.pubsublite.v1.UpdateSubscriptionRequ" - + "est\032(.google.cloud.pubsublite.v1.Subscri" - + "ption\"u\202\323\344\223\002T2D/v1/admin/{subscription.n" - + "ame=projects/*/locations/*/subscriptions" - + "/*}:\014subscription\332A\030subscription,update_" - + "mask\022\253\001\n\022DeleteSubscription\0225.google.clo" - + "ud.pubsublite.v1.DeleteSubscriptionReque" - + "st\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v1/" - + "admin/{name=projects/*/locations/*/subsc" - + "riptions/*}\332A\004name\022\337\001\n\020SeekSubscription\022" - + "3.google.cloud.pubsublite.v1.SeekSubscri" - + "ptionRequest\032\035.google.longrunning.Operat" - + "ion\"w\202\323\344\223\002A\"cloud.google.com/go/pubsub" - + "lite/apiv1/pubsublitepb;pubsublitepb\252\002\032G" - + "oogle.Cloud.PubSubLite.V1\312\002\032Google\\Cloud" - + "\\PubSubLite\\V1\352\002\035Google::Cloud::PubSubLi" - + "te::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor, - new java.lang.String[] { - "Parent", "Topic", "TopicId", - }); - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor, - new java.lang.String[] { - "PartitionCount", - }); - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor, - new java.lang.String[] { - "Topics", "NextPageToken", - }); - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor, - new java.lang.String[] { - "Topic", "UpdateMask", - }); - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor, - new java.lang.String[] { - "Subscriptions", "NextPageToken", - }); - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor, - new java.lang.String[] { - "Parent", "Subscription", "SubscriptionId", "SkipBacklog", - }); - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor, - new java.lang.String[] { - "Subscriptions", "NextPageToken", - }); - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor, - new java.lang.String[] { - "Subscription", "UpdateMask", - }); - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor, - new java.lang.String[] { - "Name", "NamedTarget", "TimeTarget", "Target", - }); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "EndTime", "Target", "Verb", - }); - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor, - new java.lang.String[] { - "Parent", "Reservation", "ReservationId", - }); - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor, - new java.lang.String[] { - "Reservations", "NextPageToken", - }); - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor, - new java.lang.String[] { - "Reservation", "UpdateMask", - }); - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor, - new java.lang.String[] { - "Topics", "NextPageToken", - }); - 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.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java deleted file mode 100644 index 1f56f7090..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.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/cloud/pubsublite/v1/cursor.proto - -package com.google.cloud.pubsublite.proto; - -public interface CommitCursorResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CommitCursorResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java deleted file mode 100644 index 46b454511..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java +++ /dev/null @@ -1,333 +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/cloud/pubsublite/v1/common.proto - -package com.google.cloud.pubsublite.proto; - -public final class CommonProto { - private CommonProto() {} - - 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_cloud_pubsublite_v1_AttributeValues_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_TimeTarget_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\'google/cloud/pubsublite/v1/common.prot" - + "o\022\032google.cloud.pubsublite.v1\032\037google/ap" - + "i/field_behavior.proto\032\031google/api/resou" - + "rce.proto\032\036google/protobuf/duration.prot" - + "o\032\037google/protobuf/timestamp.proto\"!\n\017At" - + "tributeValues\022\016\n\006values\030\001 \003(\014\"\211\002\n\rPubSub" - + "Message\022\013\n\003key\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022M\n\nat" - + "tributes\030\003 \003(\01329.google.cloud.pubsublite" - + ".v1.PubSubMessage.AttributesEntry\022.\n\neve" - + "nt_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "p\032^\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005val" - + "ue\030\002 \001(\0132+.google.cloud.pubsublite.v1.At" - + "tributeValues:\0028\001\"\030\n\006Cursor\022\016\n\006offset\030\001 " - + "\001(\003\"\310\001\n\020SequencedMessage\0222\n\006cursor\030\001 \001(\013" - + "2\".google.cloud.pubsublite.v1.Cursor\0220\n\014" - + "publish_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estamp\022:\n\007message\030\003 \001(\0132).google.cloud.p" - + "ubsublite.v1.PubSubMessage\022\022\n\nsize_bytes" - + "\030\004 \001(\003\"\250\001\n\013Reservation\022\014\n\004name\030\001 \001(\t\022\033\n\023" - + "throughput_capacity\030\002 \001(\003:n\352Ak\n%pubsubli" - + "te.googleapis.com/Reservation\022Bprojects/" - + "{project}/locations/{location}/reservati" - + "ons/{reservation}\"\367\005\n\005Topic\022\014\n\004name\030\001 \001(" - + "\t\022K\n\020partition_config\030\002 \001(\01321.google.clo" - + "ud.pubsublite.v1.Topic.PartitionConfig\022K" - + "\n\020retention_config\030\003 \001(\01321.google.cloud." - + "pubsublite.v1.Topic.RetentionConfig\022O\n\022r" - + "eservation_config\030\004 \001(\01323.google.cloud.p" - + "ubsublite.v1.Topic.ReservationConfig\032\332\001\n" - + "\017PartitionConfig\022\r\n\005count\030\001 \001(\003\022\023\n\005scale" - + "\030\002 \001(\005B\002\030\001H\000\022N\n\010capacity\030\003 \001(\0132:.google." - + "cloud.pubsublite.v1.Topic.PartitionConfi" - + "g.CapacityH\000\032F\n\010Capacity\022\033\n\023publish_mib_" - + "per_sec\030\001 \001(\005\022\035\n\025subscribe_mib_per_sec\030\002" - + " \001(\005B\013\n\tdimension\032Y\n\017RetentionConfig\022\033\n\023" - + "per_partition_bytes\030\001 \001(\003\022)\n\006period\030\002 \001(" - + "\0132\031.google.protobuf.Duration\032_\n\021Reservat" - + "ionConfig\022J\n\026throughput_reservation\030\001 \001(" - + "\tB*\372A\'\n%pubsublite.googleapis.com/Reserv" - + "ation:\\\352AY\n\037pubsublite.googleapis.com/To" - + "pic\0226projects/{project}/locations/{locat" - + "ion}/topics/{topic}\"\305\004\n\014Subscription\022\014\n\004" - + "name\030\001 \001(\t\0223\n\005topic\030\002 \001(\tB$\372A!\n\037pubsubli" - + "te.googleapis.com/Topic\022P\n\017delivery_conf" - + "ig\030\003 \001(\01327.google.cloud.pubsublite.v1.Su" - + "bscription.DeliveryConfig\022?\n\rexport_conf" - + "ig\030\004 \001(\0132(.google.cloud.pubsublite.v1.Ex" - + "portConfig\032\353\001\n\016DeliveryConfig\022i\n\024deliver" - + "y_requirement\030\003 \001(\0162K.google.cloud.pubsu" - + "blite.v1.Subscription.DeliveryConfig.Del" - + "iveryRequirement\"n\n\023DeliveryRequirement\022" - + "$\n DELIVERY_REQUIREMENT_UNSPECIFIED\020\000\022\027\n" - + "\023DELIVER_IMMEDIATELY\020\001\022\030\n\024DELIVER_AFTER_" - + "STORED\020\002:q\352An\n&pubsublite.googleapis.com" - + "/Subscription\022Dprojects/{project}/locati" - + "ons/{location}/subscriptions/{subscripti" - + "on}\"\301\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " - + "\001(\0162..google.cloud.pubsublite.v1.ExportC" - + "onfig.State\022J\n\rcurrent_state\030\006 \001(\0162..goo" - + "gle.cloud.pubsublite.v1.ExportConfig.Sta" - + "teB\003\340A\003\022B\n\021dead_letter_topic\030\005 \001(\tB\'\340A\001\372" - + "A!\n\037pubsublite.googleapis.com/Topic\022N\n\rp" - + "ubsub_config\030\003 \001(\01325.google.cloud.pubsub" - + "lite.v1.ExportConfig.PubSubConfigH\000\032\035\n\014P" - + "ubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUSED" - + "\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND\020\004" - + "B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publish" - + "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" - + "\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobuf." - + "TimestampH\000B\006\n\004timeB\317\001\n!com.google.cloud" - + ".pubsublite.protoB\013CommonProtoP\001Z>cloud." - + "google.com/go/pubsublite/apiv1/pubsublit" - + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" - + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" - + "Google::Cloud::PubSubLite::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor, - new java.lang.String[] { - "Key", "Data", "Attributes", "EventTime", - }); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor = - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor, - new java.lang.String[] { - "Offset", - }); - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor, - new java.lang.String[] { - "Cursor", "PublishTime", "Message", "SizeBytes", - }); - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor, - new java.lang.String[] { - "Name", "ThroughputCapacity", - }); - internal_static_google_cloud_pubsublite_v1_Topic_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_descriptor, - new java.lang.String[] { - "Name", "PartitionConfig", "RetentionConfig", "ReservationConfig", - }); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor, - new java.lang.String[] { - "Count", "Scale", "Capacity", "Dimension", - }); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor, - new java.lang.String[] { - "PublishMibPerSec", "SubscribeMibPerSec", - }); - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor, - new java.lang.String[] { - "PerPartitionBytes", "Period", - }); - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor, - new java.lang.String[] { - "ThroughputReservation", - }); - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor, - new java.lang.String[] { - "Name", "Topic", "DeliveryConfig", "ExportConfig", - }); - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor, - new java.lang.String[] { - "DeliveryRequirement", - }); - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor, - new java.lang.String[] { - "DesiredState", "CurrentState", "DeadLetterTopic", "PubsubConfig", "Destination", - }); - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor, - new java.lang.String[] { - "Topic", - }); - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor, - new java.lang.String[] { - "PublishTime", "EventTime", "Time", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - 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.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java deleted file mode 100644 index e3222ea0f..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java +++ /dev/null @@ -1,67 +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/cloud/pubsublite/v1/topic_stats.proto - -package com.google.cloud.pubsublite.proto; - -public interface ComputeHeadCursorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The topic for which we should compute the head cursor.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The topic. - */ - java.lang.String getTopic(); - /** - * - * - *
-   * Required. The topic for which we should compute the head cursor.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for topic. - */ - com.google.protobuf.ByteString getTopicBytes(); - - /** - * - * - *
-   * Required. The partition for which we should compute the head cursor.
-   * 
- * - * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The partition. - */ - long getPartition(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java deleted file mode 100644 index bcdc28ff5..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java +++ /dev/null @@ -1,111 +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/cloud/pubsublite/v1/topic_stats.proto - -package com.google.cloud.pubsublite.proto; - -public interface ComputeTimeCursorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The topic for which we should compute the cursor.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The topic. - */ - java.lang.String getTopic(); - /** - * - * - *
-   * Required. The topic for which we should compute the cursor.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for topic. - */ - com.google.protobuf.ByteString getTopicBytes(); - - /** - * - * - *
-   * Required. The partition for which we should compute the cursor.
-   * 
- * - * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The partition. - */ - long getPartition(); - - /** - * - * - *
-   * Required. The target publish or event time. Specifying a future time will return an
-   * unset cursor.
-   * 
- * - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the target field is set. - */ - boolean hasTarget(); - /** - * - * - *
-   * Required. The target publish or event time. Specifying a future time will return an
-   * unset cursor.
-   * 
- * - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The target. - */ - com.google.cloud.pubsublite.proto.TimeTarget getTarget(); - /** - * - * - *
-   * Required. The target publish or event time. Specifying a future time will return an
-   * unset cursor.
-   * 
- * - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java deleted file mode 100644 index cf33bd9f3..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java +++ /dev/null @@ -1,39 +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/cloud/pubsublite/v1/common.proto - -package com.google.cloud.pubsublite.proto; - -public interface CursorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Cursor) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The offset of a message within a topic partition. Must be greater than or
-   * equal 0.
-   * 
- * - * int64 offset = 1; - * - * @return The offset. - */ - long getOffset(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java deleted file mode 100644 index 1608b0ea5..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java +++ /dev/null @@ -1,253 +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/cloud/pubsublite/v1/cursor.proto - -package com.google.cloud.pubsublite.proto; - -public final class CursorProto { - private CursorProto() {} - - 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_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_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\'google/cloud/pubsublite/v1/cursor.prot" - + "o\022\032google.cloud.pubsublite.v1\032\034google/ap" - + "i/annotations.proto\032\027google/api/client.p" - + "roto\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\032\'google/cloud/p" - + "ubsublite/v1/common.proto\"E\n\032InitialComm" - + "itCursorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n" - + "\tpartition\030\002 \001(\003\"\035\n\033InitialCommitCursorR" - + "esponse\"R\n\034SequencedCommitCursorRequest\022" - + "2\n\006cursor\030\001 \001(\0132\".google.cloud.pubsublit" - + "e.v1.Cursor\"=\n\035SequencedCommitCursorResp" - + "onse\022\034\n\024acknowledged_commits\030\001 \001(\003\"\300\001\n\034S" - + "treamingCommitCursorRequest\022I\n\007initial\030\001" - + " \001(\01326.google.cloud.pubsublite.v1.Initia" - + "lCommitCursorRequestH\000\022J\n\006commit\030\002 \001(\01328" - + ".google.cloud.pubsublite.v1.SequencedCom" - + "mitCursorRequestH\000B\t\n\007request\"\303\001\n\035Stream" - + "ingCommitCursorResponse\022J\n\007initial\030\001 \001(\013" - + "27.google.cloud.pubsublite.v1.InitialCom" - + "mitCursorResponseH\000\022K\n\006commit\030\002 \001(\01329.go" - + "ogle.cloud.pubsublite.v1.SequencedCommit" - + "CursorResponseH\000B\t\n\007request\"r\n\023CommitCur" - + "sorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n\tpart" - + "ition\030\002 \001(\003\0222\n\006cursor\030\003 \001(\0132\".google.clo" - + "ud.pubsublite.v1.Cursor\"\026\n\024CommitCursorR" - + "esponse\"\204\001\n\033ListPartitionCursorsRequest\022" - + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.goog" - + "leapis.com/Subscription\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurso" - + "r\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\".g" - + "oogle.cloud.pubsublite.v1.Cursor\"\177\n\034List" - + "PartitionCursorsResponse\022F\n\021partition_cu" - + "rsors\030\001 \003(\0132+.google.cloud.pubsublite.v1" - + ".PartitionCursor\022\027\n\017next_page_token\030\002 \001(" - + "\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommitC" - + "ursor\0228.google.cloud.pubsublite.v1.Strea" - + "mingCommitCursorRequest\0329.google.cloud.p" - + "ubsublite.v1.StreamingCommitCursorRespon" - + "se\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.cloud" - + ".pubsublite.v1.CommitCursorRequest\0320.goo" - + "gle.cloud.pubsublite.v1.CommitCursorResp" - + "onse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=p" - + "rojects/*/locations/*/subscriptions/*}:c" - + "ommitCursor:\001*\022\336\001\n\024ListPartitionCursors\022" - + "7.google.cloud.pubsublite.v1.ListPartiti" - + "onCursorsRequest\0328.google.cloud.pubsubli" - + "te.v1.ListPartitionCursorsResponse\"S\202\323\344\223" - + "\002D\022B/v1/cursor/{parent=projects/*/locati" - + "ons/*/subscriptions/*}/cursors\332A\006parent\032" - + "M\312A\031pubsublite.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\317" - + "\001\n!com.google.cloud.pubsublite.protoB\013Cu" - + "rsorProtoP\001Z>cloud.google.com/go/pubsubl" - + "ite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252\002" - + "\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Clo" - + "ud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSub" - + "Lite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor, - new java.lang.String[] { - "Subscription", "Partition", - }); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor, - new java.lang.String[] { - "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor, - new java.lang.String[] { - "AcknowledgedCommits", - }); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor, - new java.lang.String[] { - "Initial", "Commit", "Request", - }); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor, - new java.lang.String[] { - "Initial", "Commit", "Request", - }); - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor, - new java.lang.String[] { - "Subscription", "Partition", "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor, - new java.lang.String[] { - "Partition", "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor, - new java.lang.String[] { - "PartitionCursors", "NextPageToken", - }); - 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.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.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java deleted file mode 100644 index 9f5e5e5a4..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface DeleteReservationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteReservationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the reservation to delete.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the reservation to delete.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java deleted file mode 100644 index 73e697e85..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface DeleteSubscriptionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the subscription to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the subscription to delete.
-   * 
- * - * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java deleted file mode 100644 index 00f384349..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface DeleteTopicRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the topic to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the topic to delete.
-   * 
- * - * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java deleted file mode 100644 index 5d90576f2..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface GetReservationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetReservationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the reservation whose configuration to return.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the reservation whose configuration to return.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java deleted file mode 100644 index 0010c607f..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface GetSubscriptionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the subscription whose configuration to return.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the subscription whose configuration to return.
-   * 
- * - * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java deleted file mode 100644 index c29cab5ec..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface GetTopicPartitionsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The topic whose partition information to return.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The topic whose partition information to return.
-   * 
- * - * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java deleted file mode 100644 index 4da4a7f09..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface GetTopicRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the topic whose configuration to return.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the topic whose configuration to return.
-   * 
- * - * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java deleted file mode 100644 index 159aeb9d8..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.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/cloud/pubsublite/v1/cursor.proto - -package com.google.cloud.pubsublite.proto; - -public interface InitialCommitCursorResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialCommitCursorResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java deleted file mode 100644 index f18fa5d58..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.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/cloud/pubsublite/v1/publisher.proto - -package com.google.cloud.pubsublite.proto; - -public interface InitialPublishResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPublishResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java deleted file mode 100644 index 0a85cc258..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java +++ /dev/null @@ -1,725 +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/cloud/pubsublite/v1/publisher.proto - -package com.google.cloud.pubsublite.proto; - -/** - * - * - *
- * Response to a MessagePublishRequest.
- * 
- * - * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse} - */ -public final class MessagePublishResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishResponse) - MessagePublishResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MessagePublishResponse.newBuilder() to construct. - private MessagePublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MessagePublishResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MessagePublishResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.class, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); - } - - public static final int START_CURSOR_FIELD_NUMBER = 1; - private com.google.cloud.pubsublite.proto.Cursor startCursor_; - /** - * - * - *
-   * The cursor of the first published message in the batch. The cursors for any
-   * remaining messages in the batch are guaranteed to be sequential.
-   * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * - * @return Whether the startCursor field is set. - */ - @java.lang.Override - public boolean hasStartCursor() { - return startCursor_ != null; - } - /** - * - * - *
-   * The cursor of the first published message in the batch. The cursors for any
-   * remaining messages in the batch are guaranteed to be sequential.
-   * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * - * @return The startCursor. - */ - @java.lang.Override - public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; - } - /** - * - * - *
-   * The cursor of the first published message in the batch. The cursors for any
-   * remaining messages in the batch are guaranteed to be sequential.
-   * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - */ - @java.lang.Override - public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (startCursor_ != null) { - output.writeMessage(1, getStartCursor()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startCursor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartCursor()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse)) { - return super.equals(obj); - } - com.google.cloud.pubsublite.proto.MessagePublishResponse other = - (com.google.cloud.pubsublite.proto.MessagePublishResponse) obj; - - if (hasStartCursor() != other.hasStartCursor()) return false; - if (hasStartCursor()) { - if (!getStartCursor().equals(other.getStartCursor())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStartCursor()) { - hash = (37 * hash) + START_CURSOR_FIELD_NUMBER; - hash = (53 * hash) + getStartCursor().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.MessagePublishResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response to a MessagePublishRequest.
-   * 
- * - * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.MessagePublishResponse) - com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.class, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); - } - - // Construct using com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - startCursor_ = null; - if (startCursorBuilder_ != null) { - startCursorBuilder_.dispose(); - startCursorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaultInstanceForType() { - return com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse build() { - com.google.cloud.pubsublite.proto.MessagePublishResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse buildPartial() { - com.google.cloud.pubsublite.proto.MessagePublishResponse result = - new com.google.cloud.pubsublite.proto.MessagePublishResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.startCursor_ = - startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishResponse other) { - if (other == com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) - return this; - if (other.hasStartCursor()) { - mergeStartCursor(other.getStartCursor()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getStartCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.cloud.pubsublite.proto.Cursor startCursor_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - startCursorBuilder_; - /** - * - * - *
-     * The cursor of the first published message in the batch. The cursors for any
-     * remaining messages in the batch are guaranteed to be sequential.
-     * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * - * @return Whether the startCursor field is set. - */ - public boolean hasStartCursor() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The cursor of the first published message in the batch. The cursors for any
-     * remaining messages in the batch are guaranteed to be sequential.
-     * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * - * @return The startCursor. - */ - public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { - if (startCursorBuilder_ == null) { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; - } else { - return startCursorBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The cursor of the first published message in the batch. The cursors for any
-     * remaining messages in the batch are guaranteed to be sequential.
-     * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - */ - public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { - if (startCursorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startCursor_ = value; - } else { - startCursorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The cursor of the first published message in the batch. The cursors for any
-     * remaining messages in the batch are guaranteed to be sequential.
-     * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - */ - public Builder setStartCursor( - com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { - if (startCursorBuilder_ == null) { - startCursor_ = builderForValue.build(); - } else { - startCursorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The cursor of the first published message in the batch. The cursors for any
-     * remaining messages in the batch are guaranteed to be sequential.
-     * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - */ - public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { - if (startCursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startCursor_ != null - && startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { - getStartCursorBuilder().mergeFrom(value); - } else { - startCursor_ = value; - } - } else { - startCursorBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The cursor of the first published message in the batch. The cursors for any
-     * remaining messages in the batch are guaranteed to be sequential.
-     * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - */ - public Builder clearStartCursor() { - bitField0_ = (bitField0_ & ~0x00000001); - startCursor_ = null; - if (startCursorBuilder_ != null) { - startCursorBuilder_.dispose(); - startCursorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The cursor of the first published message in the batch. The cursors for any
-     * remaining messages in the batch are guaranteed to be sequential.
-     * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - */ - public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getStartCursorFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The cursor of the first published message in the batch. The cursors for any
-     * remaining messages in the batch are guaranteed to be sequential.
-     * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - */ - public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() { - if (startCursorBuilder_ != null) { - return startCursorBuilder_.getMessageOrBuilder(); - } else { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; - } - } - /** - * - * - *
-     * The cursor of the first published message in the batch. The cursors for any
-     * remaining messages in the batch are guaranteed to be sequential.
-     * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - getStartCursorFieldBuilder() { - if (startCursorBuilder_ == null) { - startCursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getStartCursor(), getParentForChildren(), isClean()); - startCursor_ = null; - } - return startCursorBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishResponse) - private static final com.google.cloud.pubsublite.proto.MessagePublishResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishResponse(); - } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessagePublishResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java deleted file mode 100644 index e64d31f8f..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java +++ /dev/null @@ -1,63 +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/cloud/pubsublite/v1/publisher.proto - -package com.google.cloud.pubsublite.proto; - -public interface MessagePublishResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The cursor of the first published message in the batch. The cursors for any
-   * remaining messages in the batch are guaranteed to be sequential.
-   * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * - * @return Whether the startCursor field is set. - */ - boolean hasStartCursor(); - /** - * - * - *
-   * The cursor of the first published message in the batch. The cursors for any
-   * remaining messages in the batch are guaranteed to be sequential.
-   * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * - * @return The startCursor. - */ - com.google.cloud.pubsublite.proto.Cursor getStartCursor(); - /** - * - * - *
-   * The cursor of the first published message in the batch. The cursors for any
-   * remaining messages in the batch are guaranteed to be sequential.
-   * 
- * - * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - */ - com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java deleted file mode 100644 index 344ea2880..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.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/cloud/pubsublite/v1/subscriber.proto - -package com.google.cloud.pubsublite.proto; - -public interface PartitionAssignmentAckOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignmentAck) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java deleted file mode 100644 index e281ca263..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java +++ /dev/null @@ -1,162 +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/cloud/pubsublite/v1/publisher.proto - -package com.google.cloud.pubsublite.proto; - -public final class PublisherProto { - private PublisherProto() {} - - 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_cloud_pubsublite_v1_InitialPublishRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PublishResponse_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*google/cloud/pubsublite/v1/publisher.p" - + "roto\022\032google.cloud.pubsublite.v1\032\034google" - + "/api/annotations.proto\032\027google/api/clien" - + "t.proto\032\'google/cloud/pubsublite/v1/comm" - + "on.proto\"9\n\025InitialPublishRequest\022\r\n\005top" - + "ic\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\"\030\n\026InitialPu" - + "blishResponse\"T\n\025MessagePublishRequest\022;" - + "\n\010messages\030\001 \003(\0132).google.cloud.pubsubli" - + "te.v1.PubSubMessage\"R\n\026MessagePublishRes" - + "ponse\0228\n\014start_cursor\030\001 \001(\0132\".google.clo" - + "ud.pubsublite.v1.Cursor\"\304\001\n\016PublishReque" - + "st\022L\n\017initial_request\030\001 \001(\01321.google.clo" - + "ud.pubsublite.v1.InitialPublishRequestH\000" - + "\022T\n\027message_publish_request\030\002 \001(\01321.goog" - + "le.cloud.pubsublite.v1.MessagePublishReq" - + "uestH\000B\016\n\014request_type\"\302\001\n\017PublishRespon" - + "se\022N\n\020initial_response\030\001 \001(\01322.google.cl" - + "oud.pubsublite.v1.InitialPublishResponse" - + "H\000\022N\n\020message_response\030\002 \001(\01322.google.cl" - + "oud.pubsublite.v1.MessagePublishResponse" - + "H\000B\017\n\rresponse_type2\313\001\n\020PublisherService" - + "\022h\n\007Publish\022*.google.cloud.pubsublite.v1" - + ".PublishRequest\032+.google.cloud.pubsublit" - + "e.v1.PublishResponse\"\000(\0010\001\032M\312A\031pubsublit" - + "e.googleapis.com\322A.https://www.googleapi" - + "s.com/auth/cloud-platformB\322\001\n!com.google" - + ".cloud.pubsublite.protoB\016PublisherProtoP" - + "\001Z>cloud.google.com/go/pubsublite/apiv1/" - + "pubsublitepb;pubsublitepb\370\001\001\252\002\032Google.Cl" - + "oud.PubSubLite.V1\312\002\032Google\\Cloud\\PubSubL" - + "ite\\V1\352\002\035Google::Cloud::PubSubLite::V1b\006" - + "proto3" - }; - 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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor, - new java.lang.String[] { - "Topic", "Partition", - }); - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor, - new java.lang.String[] { - "Messages", - }); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor, - new java.lang.String[] { - "StartCursor", - }); - internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor, - new java.lang.String[] { - "InitialRequest", "MessagePublishRequest", "RequestType", - }); - internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor, - new java.lang.String[] { - "InitialResponse", "MessageResponse", "ResponseType", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java deleted file mode 100644 index 833d8b1bf..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface SeekSubscriptionResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekSubscriptionResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java deleted file mode 100644 index 72fd81666..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,40 +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/cloud/pubsublite/v1/cursor.proto - -package com.google.cloud.pubsublite.proto; - -public interface SequencedCommitCursorResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of outstanding SequencedCommitCursorRequests acknowledged by
-   * this response. Note that SequencedCommitCursorRequests are acknowledged in
-   * the order that they are received.
-   * 
- * - * int64 acknowledged_commits = 1; - * - * @return The acknowledgedCommits. - */ - long getAcknowledgedCommits(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java deleted file mode 100644 index 47c3bffdf..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java +++ /dev/null @@ -1,264 +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/cloud/pubsublite/v1/subscriber.proto - -package com.google.cloud.pubsublite.proto; - -public final class SubscriberProto { - private SubscriberProto() {} - - 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_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_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+google/cloud/pubsublite/v1/subscriber." - + "proto\022\032google.cloud.pubsublite.v1\032\034googl" - + "e/api/annotations.proto\032\027google/api/clie" - + "nt.proto\032\037google/api/field_behavior.prot" - + "o\032\'google/cloud/pubsublite/v1/common.pro" - + "to\"\212\001\n\027InitialSubscribeRequest\022\024\n\014subscr" - + "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022F\n\020initi" - + "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" - + "ite.v1.SeekRequestB\003\340A\001\"N\n\030InitialSubscr" - + "ibeResponse\0222\n\006cursor\030\001 \001(\0132\".google.clo" - + "ud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest\022" - + "K\n\014named_target\030\001 \001(\01623.google.cloud.pub" - + "sublite.v1.SeekRequest.NamedTargetH\000\0224\n\006" - + "cursor\030\002 \001(\0132\".google.cloud.pubsublite.v" - + "1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARGE" - + "T_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_C" - + "URSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cur" - + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" - + "ursor\"E\n\022FlowControlRequest\022\030\n\020allowed_m" - + "essages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001\n" - + "\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.goo" - + "gle.cloud.pubsublite.v1.InitialSubscribe" - + "RequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud.p" - + "ubsublite.v1.SeekRequestH\000\022F\n\014flow_contr" - + "ol\030\003 \001(\0132..google.cloud.pubsublite.v1.Fl" - + "owControlRequestH\000B\t\n\007request\"Q\n\017Message" - + "Response\022>\n\010messages\030\001 \003(\0132,.google.clou" - + "d.pubsublite.v1.SequencedMessage\"\343\001\n\021Sub" - + "scribeResponse\022G\n\007initial\030\001 \001(\01324.google" - + ".cloud.pubsublite.v1.InitialSubscribeRes" - + "ponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pub" - + "sublite.v1.SeekResponseH\000\022?\n\010messages\030\003 " - + "\001(\0132+.google.cloud.pubsublite.v1.Message" - + "ResponseH\000B\n\n\010response\"L\n!InitialPartiti" - + "onAssignmentRequest\022\024\n\014subscription\030\001 \001(" - + "\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssignm" - + "ent\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAssi" - + "gnmentAck\"\274\001\n\032PartitionAssignmentRequest" - + "\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsubl" - + "ite.v1.InitialPartitionAssignmentRequest" - + "H\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsublit" - + "e.v1.PartitionAssignmentAckH\000B\t\n\007request" - + "2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.go" - + "ogle.cloud.pubsublite.v1.SubscribeReques" - + "t\032-.google.cloud.pubsublite.v1.Subscribe" - + "Response\"\000(\0010\001\032M\312A\031pubsublite.googleapis" - + ".com\322A.https://www.googleapis.com/auth/c" - + "loud-platform2\357\001\n\032PartitionAssignmentSer" - + "vice\022\201\001\n\020AssignPartitions\0226.google.cloud" - + ".pubsublite.v1.PartitionAssignmentReques" - + "t\032/.google.cloud.pubsublite.v1.Partition" - + "Assignment\"\000(\0010\001\032M\312A\031pubsublite.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\323\001\n!com.google.cloud.pub" - + "sublite.protoB\017SubscriberProtoP\001Z>cloud." - + "google.com/go/pubsublite/apiv1/pubsublit" - + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" - + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" - + "Google::Cloud::PubSubLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor, - new java.lang.String[] { - "Subscription", "Partition", "InitialLocation", - }); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor, - new java.lang.String[] { - "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor, - new java.lang.String[] { - "NamedTarget", "Cursor", "Target", - }); - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor, - new java.lang.String[] { - "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor, - new java.lang.String[] { - "AllowedMessages", "AllowedBytes", - }); - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor, - new java.lang.String[] { - "Initial", "Seek", "FlowControl", "Request", - }); - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor, - new java.lang.String[] { - "Messages", - }); - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor, - new java.lang.String[] { - "Initial", "Seek", "Messages", "Response", - }); - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor, - new java.lang.String[] { - "Subscription", "ClientId", - }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor, - new java.lang.String[] { - "Partitions", - }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor, - new java.lang.String[] { - "Initial", "Ack", "Request", - }); - 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.ClientProto.oauthScopes); - 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java deleted file mode 100644 index 6e50a3972..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java +++ /dev/null @@ -1,38 +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/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface TopicPartitionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.TopicPartitions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of partitions in the topic.
-   * 
- * - * int64 partition_count = 1; - * - * @return The partitionCount. - */ - long getPartitionCount(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java deleted file mode 100644 index 99bb8c56a..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java +++ /dev/null @@ -1,194 +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/cloud/pubsublite/v1/topic_stats.proto - -package com.google.cloud.pubsublite.proto; - -public final class TopicStatsProto { - private TopicStatsProto() {} - - 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_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_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,google/cloud/pubsublite/v1/topic_stats" - + ".proto\022\032google.cloud.pubsublite.v1\032\034goog" - + "le/api/annotations.proto\032\027google/api/cli" - + "ent.proto\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032\'google/cl" - + "oud/pubsublite/v1/common.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\336\001\n\032ComputeMessa" - + "geStatsRequest\0226\n\005topic\030\001 \001(\tB\'\340A\002\372A!\n\037p" - + "ubsublite.googleapis.com/Topic\022\026\n\tpartit" - + "ion\030\002 \001(\003B\003\340A\002\0228\n\014start_cursor\030\003 \001(\0132\".g" - + "oogle.cloud.pubsublite.v1.Cursor\0226\n\nend_" - + "cursor\030\004 \001(\0132\".google.cloud.pubsublite.v" - + "1.Cursor\"\275\001\n\033ComputeMessageStatsResponse" - + "\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_bytes" - + "\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\0226\n\022minimum_even" - + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "\"j\n\030ComputeHeadCursorRequest\0226\n\005topic\030\001 " - + "\001(\tB\'\340A\002\372A!\n\037pubsublite.googleapis.com/T" - + "opic\022\026\n\tpartition\030\002 \001(\003B\003\340A\002\"T\n\031ComputeH" - + "eadCursorResponse\0227\n\013head_cursor\030\001 \001(\0132\"" - + ".google.cloud.pubsublite.v1.Cursor\"\247\001\n\030C" - + "omputeTimeCursorRequest\0226\n\005topic\030\001 \001(\tB\'" - + "\340A\002\372A!\n\037pubsublite.googleapis.com/Topic\022" - + "\026\n\tpartition\030\002 \001(\003B\003\340A\002\022;\n\006target\030\003 \001(\0132" - + "&.google.cloud.pubsublite.v1.TimeTargetB" - + "\003\340A\002\"O\n\031ComputeTimeCursorResponse\0222\n\006cur" - + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" - + "ursor2\362\005\n\021TopicStatsService\022\335\001\n\023ComputeM" - + "essageStats\0226.google.cloud.pubsublite.v1" - + ".ComputeMessageStatsRequest\0327.google.clo" - + "ud.pubsublite.v1.ComputeMessageStatsResp" - + "onse\"U\202\323\344\223\002O\"J/v1/topicStats/{topic=proj" - + "ects/*/locations/*/topics/*}:computeMess" - + "ageStats:\001*\022\325\001\n\021ComputeHeadCursor\0224.goog" - + "le.cloud.pubsublite.v1.ComputeHeadCursor" - + "Request\0325.google.cloud.pubsublite.v1.Com" - + "puteHeadCursorResponse\"S\202\323\344\223\002M\"H/v1/topi" - + "cStats/{topic=projects/*/locations/*/top" - + "ics/*}:computeHeadCursor:\001*\022\325\001\n\021ComputeT" - + "imeCursor\0224.google.cloud.pubsublite.v1.C" - + "omputeTimeCursorRequest\0325.google.cloud.p" - + "ubsublite.v1.ComputeTimeCursorResponse\"S" - + "\202\323\344\223\002M\"H/v1/topicStats/{topic=projects/*" - + "/locations/*/topics/*}:computeTimeCursor" - + ":\001*\032M\312A\031pubsublite.googleapis.com\322A.http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\320\001\n!com.google.cloud.pubsublite.proto" - + "B\017TopicStatsProtoP\001Z>cloud.google.com/go" - + "/pubsublite/apiv1/pubsublitepb;pubsublit" - + "epb\252\002\032Google.Cloud.PubSubLite.V1\312\002\032Googl" - + "e\\Cloud\\PubSubLite\\V1\352\002\035Google::Cloud::P" - + "ubSubLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor, - new java.lang.String[] { - "Topic", "Partition", "StartCursor", "EndCursor", - }); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor, - new java.lang.String[] { - "MessageCount", "MessageBytes", "MinimumPublishTime", "MinimumEventTime", - }); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor, - new java.lang.String[] { - "Topic", "Partition", - }); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor, - new java.lang.String[] { - "HeadCursor", - }); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor, - new java.lang.String[] { - "Topic", "Partition", "Target", - }); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor, - new java.lang.String[] { - "Cursor", - }); - 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.oauthScopes); - 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From cc49e5e2a8e30c69f1aedcbe8c5fc532e4a57316 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 6 Feb 2023 22:51:02 +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 --- .../pubsublite/v1/AdminServiceClient.java | 0 .../pubsublite/v1/AdminServiceSettings.java | 1 - .../pubsublite/v1/CursorServiceClient.java | 0 .../pubsublite/v1/CursorServiceSettings.java | 1 - .../v1/PartitionAssignmentServiceClient.java | 0 .../PartitionAssignmentServiceSettings.java | 1 - .../pubsublite/v1/PublisherServiceClient.java | 0 .../v1/PublisherServiceSettings.java | 1 - .../v1/SubscriberServiceClient.java | 0 .../v1/SubscriberServiceSettings.java | 1 - .../v1/TopicStatsServiceClient.java | 0 .../v1/TopicStatsServiceSettings.java | 1 - .../cloud/pubsublite/v1/gapic_metadata.json | 0 .../cloud/pubsublite/v1/package-info.java | 0 .../pubsublite/v1/stub/AdminServiceStub.java | 0 .../v1/stub/AdminServiceStubSettings.java | 0 .../pubsublite/v1/stub/CursorServiceStub.java | 0 .../v1/stub/CursorServiceStubSettings.java | 0 .../stub/GrpcAdminServiceCallableFactory.java | 0 .../v1/stub/GrpcAdminServiceStub.java | 1 - .../GrpcCursorServiceCallableFactory.java | 0 .../v1/stub/GrpcCursorServiceStub.java | 1 - ...itionAssignmentServiceCallableFactory.java | 0 .../GrpcPartitionAssignmentServiceStub.java | 0 .../GrpcPublisherServiceCallableFactory.java | 0 .../v1/stub/GrpcPublisherServiceStub.java | 0 .../GrpcSubscriberServiceCallableFactory.java | 0 .../v1/stub/GrpcSubscriberServiceStub.java | 0 .../GrpcTopicStatsServiceCallableFactory.java | 0 .../v1/stub/GrpcTopicStatsServiceStub.java | 1 - .../stub/PartitionAssignmentServiceStub.java | 0 ...artitionAssignmentServiceStubSettings.java | 0 .../v1/stub/PublisherServiceStub.java | 0 .../v1/stub/PublisherServiceStubSettings.java | 0 .../v1/stub/SubscriberServiceStub.java | 0 .../stub/SubscriberServiceStubSettings.java | 0 .../v1/stub/TopicStatsServiceStub.java | 0 .../stub/TopicStatsServiceStubSettings.java | 0 .../pubsublite/proto/AdminServiceGrpc.java | 2566 +++++++++++++++++ .../pubsublite/proto/CursorServiceGrpc.java | 598 ++++ .../proto/PartitionAssignmentServiceGrpc.java | 211 +- .../proto/PublisherServiceGrpc.java | 206 +- .../proto/SubscriberServiceGrpc.java | 208 +- .../proto/TopicStatsServiceGrpc.java | 643 +++++ .../pubsublite/v1/AdminServiceClientTest.java | 1545 ---------- .../v1/CursorServiceClientTest.java | 278 -- .../cloud/pubsublite/v1/MockAdminService.java | 59 - .../pubsublite/v1/MockAdminServiceImpl.java | 488 ---- .../pubsublite/v1/MockCursorService.java | 59 - .../pubsublite/v1/MockCursorServiceImpl.java | 146 - .../v1/MockPartitionAssignmentService.java | 59 - .../MockPartitionAssignmentServiceImpl.java | 99 - .../pubsublite/v1/MockPublisherService.java | 59 - .../v1/MockPublisherServiceImpl.java | 99 - .../pubsublite/v1/MockSubscriberService.java | 59 - .../v1/MockSubscriberServiceImpl.java | 99 - .../pubsublite/v1/MockTopicStatsService.java | 59 - .../v1/MockTopicStatsServiceImpl.java | 132 - .../PartitionAssignmentServiceClientTest.java | 130 - .../v1/PublisherServiceClientTest.java | 125 - .../v1/SubscriberServiceClientTest.java | 127 - .../v1/TopicStatsServiceClientTest.java | 236 -- .../pubsublite/proto/AdminServiceGrpc.java | 1924 ------------ .../pubsublite/proto/CursorServiceGrpc.java | 463 --- .../proto/TopicStatsServiceGrpc.java | 503 ---- .../cloud/pubsublite/proto/AdminProto.java | 553 ---- .../proto/CommitCursorResponseOrBuilder.java | 9 - .../cloud/pubsublite/proto/CommonProto.java | 301 -- .../ComputeHeadCursorRequestOrBuilder.java | 39 - .../pubsublite/proto/CursorOrBuilder.java | 20 - .../cloud/pubsublite/proto/CursorProto.java | 232 -- .../DeleteReservationRequestOrBuilder.java | 33 - .../DeleteSubscriptionRequestOrBuilder.java | 29 - .../proto/DeleteTopicRequestOrBuilder.java | 29 - .../proto/GetReservationRequestOrBuilder.java | 33 - .../GetSubscriptionRequestOrBuilder.java | 29 - .../GetTopicPartitionsRequestOrBuilder.java | 29 - .../proto/GetTopicRequestOrBuilder.java | 29 - .../InitialCommitCursorResponseOrBuilder.java | 9 - .../InitialPublishResponseOrBuilder.java | 9 - .../PartitionAssignmentAckOrBuilder.java | 9 - .../pubsublite/proto/PublisherProto.java | 161 -- .../SeekSubscriptionResponseOrBuilder.java | 9 - ...equencedCommitCursorResponseOrBuilder.java | 21 - .../pubsublite/proto/SubscriberProto.java | 240 -- .../proto/TopicPartitionsOrBuilder.java | 19 - .../pubsublite/proto/TopicStatsProto.java | 174 -- .../cloud/pubsublite/proto/AdminProto.java | 592 ++++ .../pubsublite/proto/AttributeValues.java | 335 ++- .../proto/AttributeValuesOrBuilder.java | 27 +- .../pubsublite/proto/CommitCursorRequest.java | 461 +-- .../proto/CommitCursorRequestOrBuilder.java | 38 +- .../proto/CommitCursorResponse.java | 254 +- .../proto/CommitCursorResponseOrBuilder.java | 24 + .../cloud/pubsublite/proto/CommonProto.java | 333 +++ .../proto/ComputeHeadCursorRequest.java | 392 ++- .../ComputeHeadCursorRequestOrBuilder.java | 67 + .../proto/ComputeHeadCursorResponse.java | 356 ++- .../ComputeHeadCursorResponseOrBuilder.java | 26 +- .../proto/ComputeMessageStatsRequest.java | 594 ++-- .../ComputeMessageStatsRequestOrBuilder.java | 54 +- .../proto/ComputeMessageStatsResponse.java | 541 ++-- .../ComputeMessageStatsResponseOrBuilder.java | 40 +- .../proto/ComputeTimeCursorRequest.java | 537 ++-- .../ComputeTimeCursorRequestOrBuilder.java | 58 +- .../proto/ComputeTimeCursorResponse.java | 356 ++- .../ComputeTimeCursorResponseOrBuilder.java | 26 +- .../proto/CreateReservationRequest.java | 571 ++-- .../CreateReservationRequestOrBuilder.java | 64 +- .../proto/CreateSubscriptionRequest.java | 608 ++-- .../CreateSubscriptionRequestOrBuilder.java | 67 +- .../pubsublite/proto/CreateTopicRequest.java | 550 ++-- .../proto/CreateTopicRequestOrBuilder.java | 61 +- .../google/cloud/pubsublite/proto/Cursor.java | 282 +- .../pubsublite/proto/CursorOrBuilder.java | 39 + .../cloud/pubsublite/proto/CursorProto.java | 253 ++ .../proto/DeleteReservationRequest.java | 356 ++- .../DeleteReservationRequestOrBuilder.java | 58 + .../proto/DeleteSubscriptionRequest.java | 356 ++- .../DeleteSubscriptionRequestOrBuilder.java | 54 + .../pubsublite/proto/DeleteTopicRequest.java | 353 ++- .../proto/DeleteTopicRequestOrBuilder.java | 54 + .../cloud/pubsublite/proto/ExportConfig.java | 1066 ++++--- .../proto/ExportConfigOrBuilder.java | 63 +- .../pubsublite/proto/FlowControlRequest.java | 328 ++- .../proto/FlowControlRequestOrBuilder.java | 24 +- .../proto/GetReservationRequest.java | 356 ++- .../proto/GetReservationRequestOrBuilder.java | 58 + .../proto/GetSubscriptionRequest.java | 356 ++- .../GetSubscriptionRequestOrBuilder.java | 54 + .../proto/GetTopicPartitionsRequest.java | 356 ++- .../GetTopicPartitionsRequestOrBuilder.java | 54 + .../pubsublite/proto/GetTopicRequest.java | 353 ++- .../proto/GetTopicRequestOrBuilder.java | 54 + .../proto/InitialCommitCursorRequest.java | 374 ++- .../InitialCommitCursorRequestOrBuilder.java | 30 +- .../proto/InitialCommitCursorResponse.java | 261 +- .../InitialCommitCursorResponseOrBuilder.java | 24 + .../InitialPartitionAssignmentRequest.java | 399 +-- ...alPartitionAssignmentRequestOrBuilder.java | 30 +- .../proto/InitialPublishRequest.java | 397 +-- .../proto/InitialPublishRequestOrBuilder.java | 33 +- .../proto/InitialPublishResponse.java | 254 +- .../InitialPublishResponseOrBuilder.java | 24 + .../proto/InitialSubscribeRequest.java | 508 ++-- .../InitialSubscribeRequestOrBuilder.java | 50 +- .../proto/InitialSubscribeResponse.java | 356 ++- .../InitialSubscribeResponseOrBuilder.java | 26 +- .../proto/ListPartitionCursorsRequest.java | 471 +-- .../ListPartitionCursorsRequestOrBuilder.java | 47 +- .../proto/ListPartitionCursorsResponse.java | 495 ++-- ...ListPartitionCursorsResponseOrBuilder.java | 42 +- .../proto/ListReservationTopicsRequest.java | 481 +-- ...ListReservationTopicsRequestOrBuilder.java | 47 +- .../proto/ListReservationTopicsResponse.java | 455 +-- ...istReservationTopicsResponseOrBuilder.java | 45 +- .../proto/ListReservationsRequest.java | 461 +-- .../ListReservationsRequestOrBuilder.java | 47 +- .../proto/ListReservationsResponse.java | 483 ++-- .../ListReservationsResponseOrBuilder.java | 45 +- .../proto/ListSubscriptionsRequest.java | 461 +-- .../ListSubscriptionsRequestOrBuilder.java | 47 +- .../proto/ListSubscriptionsResponse.java | 466 +-- .../ListSubscriptionsResponseOrBuilder.java | 45 +- .../proto/ListTopicSubscriptionsRequest.java | 484 ++-- ...istTopicSubscriptionsRequestOrBuilder.java | 47 +- .../proto/ListTopicSubscriptionsResponse.java | 458 +-- ...stTopicSubscriptionsResponseOrBuilder.java | 45 +- .../pubsublite/proto/ListTopicsRequest.java | 458 +-- .../proto/ListTopicsRequestOrBuilder.java | 47 +- .../pubsublite/proto/ListTopicsResponse.java | 485 ++-- .../proto/ListTopicsResponseOrBuilder.java | 45 +- .../cloud/pubsublite/proto/LocationName.java | 0 .../proto/MessagePublishRequest.java | 451 +-- .../proto/MessagePublishRequestOrBuilder.java | 39 +- .../proto/MessagePublishResponse.java | 1107 ++++--- .../MessagePublishResponseOrBuilder.java | 65 +- .../pubsublite/proto/MessageResponse.java | 398 ++- .../proto/MessageResponseOrBuilder.java | 36 +- .../pubsublite/proto/OperationMetadata.java | 569 ++-- .../proto/OperationMetadataOrBuilder.java | 52 +- .../pubsublite/proto/PartitionAssignment.java | 360 ++- .../proto/PartitionAssignmentAck.java | 254 +- .../PartitionAssignmentAckOrBuilder.java | 24 + .../proto/PartitionAssignmentOrBuilder.java | 27 +- .../proto/PartitionAssignmentRequest.java | 532 ++-- .../PartitionAssignmentRequestOrBuilder.java | 37 +- .../pubsublite/proto/PartitionCursor.java | 389 ++- .../proto/PartitionCursorOrBuilder.java | 29 +- .../cloud/pubsublite/proto/PubSubMessage.java | 643 +++-- .../proto/PubSubMessageOrBuilder.java | 60 +- .../pubsublite/proto/PublishRequest.java | 523 ++-- .../proto/PublishRequestOrBuilder.java | 37 +- .../pubsublite/proto/PublishResponse.java | 522 ++-- .../proto/PublishResponseOrBuilder.java | 34 +- .../pubsublite/proto/PublisherProto.java | 182 ++ .../cloud/pubsublite/proto/Reservation.java | 354 ++- .../pubsublite/proto/ReservationName.java | 0 .../proto/ReservationOrBuilder.java | 30 +- .../cloud/pubsublite/proto/SeekRequest.java | 520 ++-- .../proto/SeekRequestOrBuilder.java | 35 +- .../cloud/pubsublite/proto/SeekResponse.java | 346 ++- .../proto/SeekResponseOrBuilder.java | 26 +- .../proto/SeekSubscriptionRequest.java | 660 +++-- .../SeekSubscriptionRequestOrBuilder.java | 52 +- .../proto/SeekSubscriptionResponse.java | 254 +- .../SeekSubscriptionResponseOrBuilder.java | 24 + .../proto/SequencedCommitCursorRequest.java | 376 ++- ...SequencedCommitCursorRequestOrBuilder.java | 26 +- .../proto/SequencedCommitCursorResponse.java | 318 +- ...equencedCommitCursorResponseOrBuilder.java | 40 + .../pubsublite/proto/SequencedMessage.java | 573 ++-- .../proto/SequencedMessageOrBuilder.java | 45 +- .../proto/StreamingCommitCursorRequest.java | 544 ++-- ...StreamingCommitCursorRequestOrBuilder.java | 37 +- .../proto/StreamingCommitCursorResponse.java | 550 ++-- ...treamingCommitCursorResponseOrBuilder.java | 37 +- .../pubsublite/proto/SubscribeRequest.java | 581 ++-- .../proto/SubscribeRequestOrBuilder.java | 42 +- .../pubsublite/proto/SubscribeResponse.java | 588 ++-- .../proto/SubscribeResponseOrBuilder.java | 42 +- .../pubsublite/proto/SubscriberProto.java | 264 ++ .../cloud/pubsublite/proto/Subscription.java | 1050 ++++--- .../pubsublite/proto/SubscriptionName.java | 0 .../proto/SubscriptionOrBuilder.java | 55 +- .../cloud/pubsublite/proto/TimeTarget.java | 481 +-- .../pubsublite/proto/TimeTargetOrBuilder.java | 34 +- .../google/cloud/pubsublite/proto/Topic.java | 2272 +++++++++------ .../cloud/pubsublite/proto/TopicName.java | 0 .../pubsublite/proto/TopicOrBuilder.java | 54 +- .../pubsublite/proto/TopicPartitions.java | 292 +- .../proto/TopicPartitionsOrBuilder.java | 38 + .../pubsublite/proto/TopicStatsProto.java | 194 ++ .../proto/UpdateReservationRequest.java | 527 ++-- .../UpdateReservationRequestOrBuilder.java | 55 +- .../proto/UpdateSubscriptionRequest.java | 528 ++-- .../UpdateSubscriptionRequestOrBuilder.java | 55 +- .../pubsublite/proto/UpdateTopicRequest.java | 506 ++-- .../proto/UpdateTopicRequestOrBuilder.java | 52 +- .../google/cloud/pubsublite/v1/admin.proto | 0 .../google/cloud/pubsublite/v1/common.proto | 0 .../google/cloud/pubsublite/v1/cursor.proto | 0 .../cloud/pubsublite/v1/publisher.proto | 0 .../cloud/pubsublite/v1/subscriber.proto | 0 .../cloud/pubsublite/v1/topic_stats.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateReservation.java | 0 .../SyncCreateReservation.java | 0 ...ervationLocationnameReservationString.java | 0 ...ateReservationStringReservationString.java | 0 .../AsyncCreateSubscription.java | 0 .../SyncCreateSubscription.java | 0 ...riptionLocationnameSubscriptionString.java | 0 ...eSubscriptionStringSubscriptionString.java | 0 .../createtopic/AsyncCreateTopic.java | 0 .../createtopic/SyncCreateTopic.java | 0 ...yncCreateTopicLocationnameTopicString.java | 0 .../SyncCreateTopicStringTopicString.java | 0 .../AsyncDeleteReservation.java | 0 .../SyncDeleteReservation.java | 0 .../SyncDeleteReservationReservationname.java | 0 .../SyncDeleteReservationString.java | 0 .../AsyncDeleteSubscription.java | 0 .../SyncDeleteSubscription.java | 0 .../SyncDeleteSubscriptionString.java | 0 ...yncDeleteSubscriptionSubscriptionname.java | 0 .../deletetopic/AsyncDeleteTopic.java | 0 .../deletetopic/SyncDeleteTopic.java | 0 .../deletetopic/SyncDeleteTopicString.java | 0 .../deletetopic/SyncDeleteTopicTopicname.java | 0 .../getreservation/AsyncGetReservation.java | 0 .../getreservation/SyncGetReservation.java | 0 .../SyncGetReservationReservationname.java | 0 .../SyncGetReservationString.java | 0 .../getsubscription/AsyncGetSubscription.java | 0 .../getsubscription/SyncGetSubscription.java | 0 .../SyncGetSubscriptionString.java | 0 .../SyncGetSubscriptionSubscriptionname.java | 0 .../adminservice/gettopic/AsyncGetTopic.java | 0 .../adminservice/gettopic/SyncGetTopic.java | 0 .../gettopic/SyncGetTopicString.java | 0 .../gettopic/SyncGetTopicTopicname.java | 0 .../AsyncGetTopicPartitions.java | 0 .../SyncGetTopicPartitions.java | 0 .../SyncGetTopicPartitionsString.java | 0 .../SyncGetTopicPartitionsTopicname.java | 0 .../AsyncListReservations.java | 0 .../AsyncListReservationsPaged.java | 0 .../SyncListReservations.java | 0 .../SyncListReservationsLocationname.java | 0 .../SyncListReservationsString.java | 0 .../AsyncListReservationTopics.java | 0 .../AsyncListReservationTopicsPaged.java | 0 .../SyncListReservationTopics.java | 0 ...cListReservationTopicsReservationname.java | 0 .../SyncListReservationTopicsString.java | 0 .../AsyncListSubscriptions.java | 0 .../AsyncListSubscriptionsPaged.java | 0 .../SyncListSubscriptions.java | 0 .../SyncListSubscriptionsLocationname.java | 0 .../SyncListSubscriptionsString.java | 0 .../listtopics/AsyncListTopics.java | 0 .../listtopics/AsyncListTopicsPaged.java | 0 .../listtopics/SyncListTopics.java | 0 .../SyncListTopicsLocationname.java | 0 .../listtopics/SyncListTopicsString.java | 0 .../AsyncListTopicSubscriptions.java | 0 .../AsyncListTopicSubscriptionsPaged.java | 0 .../SyncListTopicSubscriptions.java | 0 .../SyncListTopicSubscriptionsString.java | 0 .../SyncListTopicSubscriptionsTopicname.java | 0 .../AsyncSeekSubscription.java | 0 .../AsyncSeekSubscriptionLRO.java | 0 .../SyncSeekSubscription.java | 0 .../AsyncUpdateReservation.java | 0 .../SyncUpdateReservation.java | 0 ...UpdateReservationReservationFieldmask.java | 0 .../AsyncUpdateSubscription.java | 0 .../SyncUpdateSubscription.java | 0 ...dateSubscriptionSubscriptionFieldmask.java | 0 .../updatetopic/AsyncUpdateTopic.java | 0 .../updatetopic/SyncUpdateTopic.java | 0 .../SyncUpdateTopicTopicFieldmask.java | 0 .../createtopic/SyncCreateTopic.java | 0 .../commitcursor/AsyncCommitCursor.java | 0 .../commitcursor/SyncCommitCursor.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncListPartitionCursors.java | 0 .../AsyncListPartitionCursorsPaged.java | 0 .../SyncListPartitionCursors.java | 0 .../SyncListPartitionCursorsString.java | 0 ...cListPartitionCursorsSubscriptionname.java | 0 .../AsyncStreamingCommitCursor.java | 0 .../commitcursor/SyncCommitCursor.java | 0 .../AsyncAssignPartitions.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncAssignPartitions.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../publish/AsyncPublish.java | 0 .../publish/SyncPublish.java | 0 .../createtopic/SyncCreateTopic.java | 0 .../commitcursor/SyncCommitCursor.java | 0 .../SyncAssignPartitions.java | 0 .../publish/SyncPublish.java | 0 .../subscribe/SyncSubscribe.java | 0 .../SyncComputeMessageStats.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../subscribe/AsyncSubscribe.java | 0 .../subscribe/SyncSubscribe.java | 0 .../AsyncComputeHeadCursor.java | 0 .../SyncComputeHeadCursor.java | 0 .../AsyncComputeMessageStats.java | 0 .../SyncComputeMessageStats.java | 0 .../AsyncComputeTimeCursor.java | 0 .../SyncComputeTimeCursor.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncComputeMessageStats.java | 0 363 files changed, 30082 insertions(+), 22982 deletions(-) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsublite => google-cloud-pubsublite}/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java (100%) create mode 100644 grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java create mode 100644 grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java rename {owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1 => grpc-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java (55%) rename {owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1 => grpc-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java (57%) rename {owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1 => grpc-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java (50%) create mode 100644 grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java delete mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java (61%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java (63%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java (64%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java (62%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java (61%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java (61%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java (62%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java (61%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java (61%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java (61%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java (60%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java (61%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java (62%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java (73%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java (61%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java (61%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java (77%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/Topic.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java (63%) create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java create mode 100644 proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/admin.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/common.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/cursor.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/publisher.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsublite-v1 => proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java index 58cd79004..1f781b0da 100644 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java +++ b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.pubsublite.proto.CreateReservationRequest; diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java index 864bc9ccb..2fc7acf3a 100644 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java +++ b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java @@ -28,7 +28,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.pubsublite.proto.CommitCursorRequest; diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java index a6be825d4..0f34a11b6 100644 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java +++ b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.pubsublite.proto.PartitionAssignment; diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java index 03be0dbb1..db9027512 100644 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java +++ b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.pubsublite.proto.PublishRequest; diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java index c64abebdb..1de8cec03 100644 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java +++ b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.pubsublite.proto.SubscribeRequest; diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java index b9247a93f..8c41df475 100644 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java +++ b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java @@ -24,7 +24,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -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.pubsublite.proto.ComputeHeadCursorRequest; diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java index 929fb8855..4db480db4 100644 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java +++ b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java @@ -66,7 +66,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-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java index f34349ea9..d1bd138db 100644 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java +++ b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java @@ -36,7 +36,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-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java index 57ebcd3f0..400521f1c 100644 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java +++ b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java @@ -33,7 +33,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-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java b/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java rename to google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java new file mode 100644 index 000000000..0faa8b8ef --- /dev/null +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java @@ -0,0 +1,2566 @@ +/* + * 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.cloud.pubsublite.proto; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The service that a client application uses to manage topics and
+ * subscriptions, such creating, listing, and deleting topics and subscriptions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/pubsublite/v1/admin.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdminServiceGrpc { + + private AdminServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.AdminService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CreateTopicRequest, + com.google.cloud.pubsublite.proto.Topic> + getCreateTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTopic", + requestType = com.google.cloud.pubsublite.proto.CreateTopicRequest.class, + responseType = com.google.cloud.pubsublite.proto.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CreateTopicRequest, + com.google.cloud.pubsublite.proto.Topic> + getCreateTopicMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CreateTopicRequest, + com.google.cloud.pubsublite.proto.Topic> + getCreateTopicMethod; + if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.CreateTopicRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateTopic")) + .build(); + } + } + } + return getCreateTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetTopicRequest, + com.google.cloud.pubsublite.proto.Topic> + getGetTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTopic", + requestType = com.google.cloud.pubsublite.proto.GetTopicRequest.class, + responseType = com.google.cloud.pubsublite.proto.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetTopicRequest, + com.google.cloud.pubsublite.proto.Topic> + getGetTopicMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetTopicRequest, + com.google.cloud.pubsublite.proto.Topic> + getGetTopicMethod; + if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.GetTopicRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetTopic")) + .build(); + } + } + } + return getGetTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, + com.google.cloud.pubsublite.proto.TopicPartitions> + getGetTopicPartitionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTopicPartitions", + requestType = com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, + responseType = com.google.cloud.pubsublite.proto.TopicPartitions.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, + com.google.cloud.pubsublite.proto.TopicPartitions> + getGetTopicPartitionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, + com.google.cloud.pubsublite.proto.TopicPartitions> + getGetTopicPartitionsMethod; + if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { + AdminServiceGrpc.getGetTopicPartitionsMethod = + getGetTopicPartitionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopicPartitions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.TopicPartitions + .getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("GetTopicPartitions")) + .build(); + } + } + } + return getGetTopicPartitionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListTopicsRequest, + com.google.cloud.pubsublite.proto.ListTopicsResponse> + getListTopicsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTopics", + requestType = com.google.cloud.pubsublite.proto.ListTopicsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListTopicsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListTopicsRequest, + com.google.cloud.pubsublite.proto.ListTopicsResponse> + getListTopicsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListTopicsRequest, + com.google.cloud.pubsublite.proto.ListTopicsResponse> + getListTopicsMethod; + if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.ListTopicsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListTopicsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListTopics")) + .build(); + } + } + } + return getListTopicsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.UpdateTopicRequest, + com.google.cloud.pubsublite.proto.Topic> + getUpdateTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTopic", + requestType = com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, + responseType = com.google.cloud.pubsublite.proto.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.UpdateTopicRequest, + com.google.cloud.pubsublite.proto.Topic> + getUpdateTopicMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.UpdateTopicRequest, + com.google.cloud.pubsublite.proto.Topic> + getUpdateTopicMethod; + if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.UpdateTopicRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateTopic")) + .build(); + } + } + } + return getUpdateTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.DeleteTopicRequest, com.google.protobuf.Empty> + getDeleteTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTopic", + requestType = com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.DeleteTopicRequest, com.google.protobuf.Empty> + getDeleteTopicMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.DeleteTopicRequest, com.google.protobuf.Empty> + getDeleteTopicMethod; + if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.DeleteTopicRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteTopic")) + .build(); + } + } + } + return getDeleteTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> + getListTopicSubscriptionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions", + requestType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> + getListTopicSubscriptionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> + getListTopicSubscriptionsMethod; + if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) + == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) + == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("ListTopicSubscriptions")) + .build(); + } + } + } + return getListTopicSubscriptionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription> + getCreateSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSubscription", + requestType = com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, + responseType = com.google.cloud.pubsublite.proto.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription> + getCreateSubscriptionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription> + getCreateSubscriptionMethod; + if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.CreateSubscriptionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("CreateSubscription")) + .build(); + } + } + } + return getCreateSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription> + getGetSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSubscription", + requestType = com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, + responseType = com.google.cloud.pubsublite.proto.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription> + getGetSubscriptionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription> + getGetSubscriptionMethod; + if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.GetSubscriptionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("GetSubscription")) + .build(); + } + } + } + return getGetSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> + getListSubscriptionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSubscriptions", + requestType = com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> + getListSubscriptionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> + getListSubscriptionsMethod; + if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.ListSubscriptionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("ListSubscriptions")) + .build(); + } + } + } + return getListSubscriptionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription> + getUpdateSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSubscription", + requestType = com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, + responseType = com.google.cloud.pubsublite.proto.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription> + getUpdateSubscriptionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription> + getUpdateSubscriptionMethod; + if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.UpdateSubscriptionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("UpdateSubscription")) + .build(); + } + } + } + return getUpdateSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, com.google.protobuf.Empty> + getDeleteSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSubscription", + requestType = com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, com.google.protobuf.Empty> + getDeleteSubscriptionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, com.google.protobuf.Empty> + getDeleteSubscriptionMethod; + if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { + AdminServiceGrpc.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.cloud.pubsublite.proto.DeleteSubscriptionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("DeleteSubscription")) + .build(); + } + } + } + return getDeleteSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, + com.google.longrunning.Operation> + getSeekSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SeekSubscription", + requestType = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, + com.google.longrunning.Operation> + getSeekSubscriptionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, + com.google.longrunning.Operation> + getSeekSubscriptionMethod; + if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { + AdminServiceGrpc.getSeekSubscriptionMethod = + getSeekSubscriptionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SeekSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("SeekSubscription")) + .build(); + } + } + } + return getSeekSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CreateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation> + getCreateReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateReservation", + requestType = com.google.cloud.pubsublite.proto.CreateReservationRequest.class, + responseType = com.google.cloud.pubsublite.proto.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CreateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation> + getCreateReservationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CreateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation> + getCreateReservationMethod; + if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { + AdminServiceGrpc.getCreateReservationMethod = + getCreateReservationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CreateReservationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("CreateReservation")) + .build(); + } + } + } + return getCreateReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetReservationRequest, + com.google.cloud.pubsublite.proto.Reservation> + getGetReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetReservation", + requestType = com.google.cloud.pubsublite.proto.GetReservationRequest.class, + responseType = com.google.cloud.pubsublite.proto.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetReservationRequest, + com.google.cloud.pubsublite.proto.Reservation> + getGetReservationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.GetReservationRequest, + com.google.cloud.pubsublite.proto.Reservation> + getGetReservationMethod; + if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { + AdminServiceGrpc.getGetReservationMethod = + getGetReservationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.GetReservationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("GetReservation")) + .build(); + } + } + } + return getGetReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListReservationsRequest, + com.google.cloud.pubsublite.proto.ListReservationsResponse> + getListReservationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReservations", + requestType = com.google.cloud.pubsublite.proto.ListReservationsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListReservationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListReservationsRequest, + com.google.cloud.pubsublite.proto.ListReservationsResponse> + getListReservationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListReservationsRequest, + com.google.cloud.pubsublite.proto.ListReservationsResponse> + getListReservationsMethod; + if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { + AdminServiceGrpc.getListReservationsMethod = + getListReservationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("ListReservations")) + .build(); + } + } + } + return getListReservationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.UpdateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation> + getUpdateReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateReservation", + requestType = com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, + responseType = com.google.cloud.pubsublite.proto.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.UpdateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation> + getUpdateReservationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.UpdateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation> + getUpdateReservationMethod; + if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { + AdminServiceGrpc.getUpdateReservationMethod = + getUpdateReservationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.UpdateReservationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("UpdateReservation")) + .build(); + } + } + } + return getUpdateReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.DeleteReservationRequest, com.google.protobuf.Empty> + getDeleteReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteReservation", + requestType = com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.DeleteReservationRequest, com.google.protobuf.Empty> + getDeleteReservationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.DeleteReservationRequest, com.google.protobuf.Empty> + getDeleteReservationMethod; + if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { + AdminServiceGrpc.getDeleteReservationMethod = + getDeleteReservationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.DeleteReservationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("DeleteReservation")) + .build(); + } + } + } + return getDeleteReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> + getListReservationTopicsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReservationTopics", + requestType = com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> + getListReservationTopicsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> + getListReservationTopicsMethod; + if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) + == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) + == null) { + AdminServiceGrpc.getListReservationTopicsMethod = + getListReservationTopicsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListReservationTopics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AdminServiceMethodDescriptorSupplier("ListReservationTopics")) + .build(); + } + } + } + return getListReservationTopicsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AdminServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdminServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceStub(channel, callOptions); + } + }; + return AdminServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdminServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdminServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceBlockingStub(channel, callOptions); + } + }; + return AdminServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AdminServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdminServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceFutureStub(channel, callOptions); + } + }; + return AdminServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public abstract static class AdminServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new topic.
+     * 
+ */ + public void createTopic( + com.google.cloud.pubsublite.proto.CreateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTopicMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the topic configuration.
+     * 
+ */ + public void getTopic( + com.google.cloud.pubsublite.proto.GetTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public void getTopicPartitions( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTopicPartitionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public void listTopics( + com.google.cloud.pubsublite.proto.ListTopicsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public void updateTopic( + com.google.cloud.pubsublite.proto.UpdateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTopicMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified topic.
+     * 
+ */ + public void deleteTopic( + com.google.cloud.pubsublite.proto.DeleteTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTopicMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public void listTopicSubscriptions( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTopicSubscriptionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new subscription.
+     * 
+ */ + public void createSubscription( + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSubscriptionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the subscription configuration.
+     * 
+ */ + public void getSubscription( + com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSubscriptionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public void listSubscriptions( + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSubscriptionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public void updateSubscription( + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSubscriptionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified subscription.
+     * 
+ */ + public void deleteSubscription( + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSubscriptionMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public void seekSubscription( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSeekSubscriptionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new reservation.
+     * 
+ */ + public void createReservation( + com.google.cloud.pubsublite.proto.CreateReservationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReservationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the reservation configuration.
+     * 
+ */ + public void getReservation( + com.google.cloud.pubsublite.proto.GetReservationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetReservationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public void listReservations( + com.google.cloud.pubsublite.proto.ListReservationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReservationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public void updateReservation( + com.google.cloud.pubsublite.proto.UpdateReservationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateReservationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified reservation.
+     * 
+ */ + public void deleteReservation( + com.google.cloud.pubsublite.proto.DeleteReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteReservationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public void listReservationTopics( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReservationTopicsMethod(), responseObserver); + } + + @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.cloud.pubsublite.proto.CreateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>(this, METHODID_CREATE_TOPIC))) + .addMethod( + getGetTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicRequest, + com.google.cloud.pubsublite.proto.Topic>(this, METHODID_GET_TOPIC))) + .addMethod( + getGetTopicPartitionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, + com.google.cloud.pubsublite.proto.TopicPartitions>( + this, METHODID_GET_TOPIC_PARTITIONS))) + .addMethod( + getListTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListTopicsRequest, + com.google.cloud.pubsublite.proto.ListTopicsResponse>( + this, METHODID_LIST_TOPICS))) + .addMethod( + getUpdateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>(this, METHODID_UPDATE_TOPIC))) + .addMethod( + getDeleteTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteTopicRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_TOPIC))) + .addMethod( + getListTopicSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( + this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) + .addMethod( + getCreateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + this, METHODID_CREATE_SUBSCRIPTION))) + .addMethod( + getGetSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + this, METHODID_GET_SUBSCRIPTION))) + .addMethod( + getListSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( + this, METHODID_LIST_SUBSCRIPTIONS))) + .addMethod( + getUpdateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + this, METHODID_UPDATE_SUBSCRIPTION))) + .addMethod( + getDeleteSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_SUBSCRIPTION))) + .addMethod( + getSeekSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, + com.google.longrunning.Operation>(this, METHODID_SEEK_SUBSCRIPTION))) + .addMethod( + getCreateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + this, METHODID_CREATE_RESERVATION))) + .addMethod( + getGetReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + this, METHODID_GET_RESERVATION))) + .addMethod( + getListReservationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationsRequest, + com.google.cloud.pubsublite.proto.ListReservationsResponse>( + this, METHODID_LIST_RESERVATIONS))) + .addMethod( + getUpdateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + this, METHODID_UPDATE_RESERVATION))) + .addMethod( + getDeleteReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteReservationRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_RESERVATION))) + .addMethod( + getListReservationTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( + this, METHODID_LIST_RESERVATION_TOPICS))) + .build(); + } + } + + /** + * + * + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static final class AdminServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AdminServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdminServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new topic.
+     * 
+ */ + public void createTopic( + com.google.cloud.pubsublite.proto.CreateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the topic configuration.
+     * 
+ */ + public void getTopic( + com.google.cloud.pubsublite.proto.GetTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public void getTopicPartitions( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public void listTopics( + com.google.cloud.pubsublite.proto.ListTopicsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public void updateTopic( + com.google.cloud.pubsublite.proto.UpdateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified topic.
+     * 
+ */ + public void deleteTopic( + com.google.cloud.pubsublite.proto.DeleteTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public void listTopicSubscriptions( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new subscription.
+     * 
+ */ + public void createSubscription( + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the subscription configuration.
+     * 
+ */ + public void getSubscription( + com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public void listSubscriptions( + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public void updateSubscription( + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified subscription.
+     * 
+ */ + public void deleteSubscription( + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public void seekSubscription( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new reservation.
+     * 
+ */ + public void createReservation( + com.google.cloud.pubsublite.proto.CreateReservationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateReservationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the reservation configuration.
+     * 
+ */ + public void getReservation( + com.google.cloud.pubsublite.proto.GetReservationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetReservationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public void listReservations( + com.google.cloud.pubsublite.proto.ListReservationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReservationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public void updateReservation( + com.google.cloud.pubsublite.proto.UpdateReservationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified reservation.
+     * 
+ */ + public void deleteReservation( + com.google.cloud.pubsublite.proto.DeleteReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public void listReservationTopics( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static final class AdminServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AdminServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdminServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Topic createTopic( + com.google.cloud.pubsublite.proto.CreateTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the topic configuration.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Topic getTopic( + com.google.cloud.pubsublite.proto.GetTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.TopicPartitions getTopicPartitions( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTopicPartitionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListTopicsResponse listTopics( + com.google.cloud.pubsublite.proto.ListTopicsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Topic updateTopic( + com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified topic.
+     * 
+ */ + public com.google.protobuf.Empty deleteTopic( + com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse listTopicSubscriptions( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new subscription.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Subscription createSubscription( + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the subscription configuration.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Subscription getSubscription( + com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse listSubscriptions( + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Subscription updateSubscription( + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified subscription.
+     * 
+ */ + public com.google.protobuf.Empty deleteSubscription( + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public com.google.longrunning.Operation seekSubscription( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSeekSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new reservation.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Reservation createReservation( + com.google.cloud.pubsublite.proto.CreateReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateReservationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the reservation configuration.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Reservation getReservation( + com.google.cloud.pubsublite.proto.GetReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReservationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListReservationsResponse listReservations( + com.google.cloud.pubsublite.proto.ListReservationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReservationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Reservation updateReservation( + com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateReservationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified reservation.
+     * 
+ */ + public com.google.protobuf.Empty deleteReservation( + com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteReservationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse listReservationTopics( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReservationTopicsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static final class AdminServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AdminServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdminServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.Topic> + createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the topic configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.Topic> + getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTopicMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.TopicPartitions> + getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.ListTopicsResponse> + listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.Topic> + updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> + listTopicSubscriptions( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.Subscription> + createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the subscription configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.Subscription> + getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> + listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.Subscription> + updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.Reservation> + createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateReservationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the reservation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.Reservation> + getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetReservationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.ListReservationsResponse> + listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReservationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.Reservation> + updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> + listReservationTopics( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_TOPIC = 0; + private static final int METHODID_GET_TOPIC = 1; + private static final int METHODID_GET_TOPIC_PARTITIONS = 2; + private static final int METHODID_LIST_TOPICS = 3; + private static final int METHODID_UPDATE_TOPIC = 4; + private static final int METHODID_DELETE_TOPIC = 5; + private static final int METHODID_LIST_TOPIC_SUBSCRIPTIONS = 6; + private static final int METHODID_CREATE_SUBSCRIPTION = 7; + private static final int METHODID_GET_SUBSCRIPTION = 8; + private static final int METHODID_LIST_SUBSCRIPTIONS = 9; + private static final int METHODID_UPDATE_SUBSCRIPTION = 10; + private static final int METHODID_DELETE_SUBSCRIPTION = 11; + private static final int METHODID_SEEK_SUBSCRIPTION = 12; + private static final int METHODID_CREATE_RESERVATION = 13; + private static final int METHODID_GET_RESERVATION = 14; + private static final int METHODID_LIST_RESERVATIONS = 15; + private static final int METHODID_UPDATE_RESERVATION = 16; + private static final int METHODID_DELETE_RESERVATION = 17; + private static final int METHODID_LIST_RESERVATION_TOPICS = 18; + + 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 AdminServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdminServiceImplBase 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_TOPIC: + serviceImpl.createTopic( + (com.google.cloud.pubsublite.proto.CreateTopicRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TOPIC: + serviceImpl.getTopic( + (com.google.cloud.pubsublite.proto.GetTopicRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TOPIC_PARTITIONS: + serviceImpl.getTopicPartitions( + (com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_TOPICS: + serviceImpl.listTopics( + (com.google.cloud.pubsublite.proto.ListTopicsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_TOPIC: + serviceImpl.updateTopic( + (com.google.cloud.pubsublite.proto.UpdateTopicRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TOPIC: + serviceImpl.deleteTopic( + (com.google.cloud.pubsublite.proto.DeleteTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TOPIC_SUBSCRIPTIONS: + serviceImpl.listTopicSubscriptions( + (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>) + responseObserver); + break; + case METHODID_CREATE_SUBSCRIPTION: + serviceImpl.createSubscription( + (com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SUBSCRIPTION: + serviceImpl.getSubscription( + (com.google.cloud.pubsublite.proto.GetSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SUBSCRIPTIONS: + serviceImpl.listSubscriptions( + (com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>) + responseObserver); + break; + case METHODID_UPDATE_SUBSCRIPTION: + serviceImpl.updateSubscription( + (com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SUBSCRIPTION: + serviceImpl.deleteSubscription( + (com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEEK_SUBSCRIPTION: + serviceImpl.seekSubscription( + (com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_RESERVATION: + serviceImpl.createReservation( + (com.google.cloud.pubsublite.proto.CreateReservationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RESERVATION: + serviceImpl.getReservation( + (com.google.cloud.pubsublite.proto.GetReservationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_RESERVATIONS: + serviceImpl.listReservations( + (com.google.cloud.pubsublite.proto.ListReservationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ListReservationsResponse>) + responseObserver); + break; + case METHODID_UPDATE_RESERVATION: + serviceImpl.updateReservation( + (com.google.cloud.pubsublite.proto.UpdateReservationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_RESERVATION: + serviceImpl.deleteReservation( + (com.google.cloud.pubsublite.proto.DeleteReservationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RESERVATION_TOPICS: + serviceImpl.listReservationTopics( + (com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>) + 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 AdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdminServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AdminService"); + } + } + + private static final class AdminServiceFileDescriptorSupplier + extends AdminServiceBaseDescriptorSupplier { + AdminServiceFileDescriptorSupplier() {} + } + + private static final class AdminServiceMethodDescriptorSupplier + extends AdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdminServiceMethodDescriptorSupplier(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 (AdminServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdminServiceFileDescriptorSupplier()) + .addMethod(getCreateTopicMethod()) + .addMethod(getGetTopicMethod()) + .addMethod(getGetTopicPartitionsMethod()) + .addMethod(getListTopicsMethod()) + .addMethod(getUpdateTopicMethod()) + .addMethod(getDeleteTopicMethod()) + .addMethod(getListTopicSubscriptionsMethod()) + .addMethod(getCreateSubscriptionMethod()) + .addMethod(getGetSubscriptionMethod()) + .addMethod(getListSubscriptionsMethod()) + .addMethod(getUpdateSubscriptionMethod()) + .addMethod(getDeleteSubscriptionMethod()) + .addMethod(getSeekSubscriptionMethod()) + .addMethod(getCreateReservationMethod()) + .addMethod(getGetReservationMethod()) + .addMethod(getListReservationsMethod()) + .addMethod(getUpdateReservationMethod()) + .addMethod(getDeleteReservationMethod()) + .addMethod(getListReservationTopicsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java new file mode 100644 index 000000000..f7383e8ce --- /dev/null +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java @@ -0,0 +1,598 @@ +/* + * 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.cloud.pubsublite.proto; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The service that a subscriber client application uses to manage committed
+ * cursors while receiving messsages. A cursor represents a subscriber's
+ * progress within a topic partition for a given subscription.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/pubsublite/v1/cursor.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CursorServiceGrpc { + + private CursorServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.CursorService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> + getStreamingCommitCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingCommitCursor", + requestType = com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> + getStreamingCommitCursorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> + getStreamingCommitCursorMethod; + if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) + == null) { + synchronized (CursorServiceGrpc.class) { + if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) + == null) { + CursorServiceGrpc.getStreamingCommitCursorMethod = + getStreamingCommitCursorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "StreamingCommitCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CursorServiceMethodDescriptorSupplier("StreamingCommitCursor")) + .build(); + } + } + } + return getStreamingCommitCursorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CommitCursorRequest, + com.google.cloud.pubsublite.proto.CommitCursorResponse> + getCommitCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CommitCursor", + requestType = com.google.cloud.pubsublite.proto.CommitCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.CommitCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CommitCursorRequest, + com.google.cloud.pubsublite.proto.CommitCursorResponse> + getCommitCursorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.CommitCursorRequest, + com.google.cloud.pubsublite.proto.CommitCursorResponse> + getCommitCursorMethod; + if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { + synchronized (CursorServiceGrpc.class) { + if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { + CursorServiceGrpc.getCommitCursorMethod = + getCommitCursorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CommitCursorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CommitCursorResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CursorServiceMethodDescriptorSupplier("CommitCursor")) + .build(); + } + } + } + return getCommitCursorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> + getListPartitionCursorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPartitionCursors", + requestType = com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> + getListPartitionCursorsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> + getListPartitionCursorsMethod; + if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) == null) { + synchronized (CursorServiceGrpc.class) { + if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) + == null) { + CursorServiceGrpc.getListPartitionCursorsMethod = + getListPartitionCursorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPartitionCursors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CursorServiceMethodDescriptorSupplier("ListPartitionCursors")) + .build(); + } + } + } + return getListPartitionCursorsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CursorServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CursorServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceStub(channel, callOptions); + } + }; + return CursorServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CursorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CursorServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceBlockingStub(channel, callOptions); + } + }; + return CursorServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CursorServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CursorServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceFutureStub(channel, callOptions); + } + }; + return CursorServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public abstract static class CursorServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Establishes a stream with the server for managing committed cursors.
+     * 
+ */ + public io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest> + streamingCommitCursor( + io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingCommitCursorMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the committed cursor.
+     * 
+ */ + public void commitCursor( + com.google.cloud.pubsublite.proto.CommitCursorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCommitCursorMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public void listPartitionCursors( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPartitionCursorsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getStreamingCommitCursorMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse>( + this, METHODID_STREAMING_COMMIT_CURSOR))) + .addMethod( + getCommitCursorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CommitCursorRequest, + com.google.cloud.pubsublite.proto.CommitCursorResponse>( + this, METHODID_COMMIT_CURSOR))) + .addMethod( + getListPartitionCursorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( + this, METHODID_LIST_PARTITION_CURSORS))) + .build(); + } + } + + /** + * + * + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static final class CursorServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CursorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CursorServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Establishes a stream with the server for managing committed cursors.
+     * 
+ */ + public io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest> + streamingCommitCursor( + io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingCommitCursorMethod(), getCallOptions()), + responseObserver); + } + + /** + * + * + *
+     * Updates the committed cursor.
+     * 
+ */ + public void commitCursor( + com.google.cloud.pubsublite.proto.CommitCursorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCommitCursorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public void listPartitionCursors( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static final class CursorServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CursorServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CursorServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Updates the committed cursor.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.CommitCursorResponse commitCursor( + com.google.cloud.pubsublite.proto.CommitCursorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitCursorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse listPartitionCursors( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPartitionCursorsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static final class CursorServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CursorServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CursorServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Updates the committed cursor.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.CommitCursorResponse> + commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCommitCursorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> + listPartitionCursors( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_COMMIT_CURSOR = 0; + private static final int METHODID_LIST_PARTITION_CURSORS = 1; + private static final int METHODID_STREAMING_COMMIT_CURSOR = 2; + + 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 CursorServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CursorServiceImplBase 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_COMMIT_CURSOR: + serviceImpl.commitCursor( + (com.google.cloud.pubsublite.proto.CommitCursorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PARTITION_CURSORS: + serviceImpl.listPartitionCursors( + (com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>) + 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) { + case METHODID_STREAMING_COMMIT_CURSOR: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamingCommitCursor( + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class CursorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CursorServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CursorService"); + } + } + + private static final class CursorServiceFileDescriptorSupplier + extends CursorServiceBaseDescriptorSupplier { + CursorServiceFileDescriptorSupplier() {} + } + + private static final class CursorServiceMethodDescriptorSupplier + extends CursorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CursorServiceMethodDescriptorSupplier(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 (CursorServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CursorServiceFileDescriptorSupplier()) + .addMethod(getStreamingCommitCursorMethod()) + .addMethod(getCommitCursorMethod()) + .addMethod(getListPartitionCursorsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java similarity index 55% rename from owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java rename to grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java index aada79d8f..3181279d1 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.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.cloud.pubsublite.proto; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The service that a subscriber client application uses to determine which
  * partitions it should connect to.
@@ -19,90 +36,111 @@ private PartitionAssignmentServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.PartitionAssignmentService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getAssignPartitionsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
+          com.google.cloud.pubsublite.proto.PartitionAssignment>
+      getAssignPartitionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AssignPartitions",
       requestType = com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class,
       responseType = com.google.cloud.pubsublite.proto.PartitionAssignment.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor getAssignPartitionsMethod() {
-    io.grpc.MethodDescriptor getAssignPartitionsMethod;
-    if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
+          com.google.cloud.pubsublite.proto.PartitionAssignment>
+      getAssignPartitionsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
+            com.google.cloud.pubsublite.proto.PartitionAssignment>
+        getAssignPartitionsMethod;
+    if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod)
+        == null) {
       synchronized (PartitionAssignmentServiceGrpc.class) {
-        if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod) == null) {
-          PartitionAssignmentServiceGrpc.getAssignPartitionsMethod = getAssignPartitionsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AssignPartitions"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.pubsublite.proto.PartitionAssignment.getDefaultInstance()))
-              .setSchemaDescriptor(new PartitionAssignmentServiceMethodDescriptorSupplier("AssignPartitions"))
-              .build();
+        if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod)
+            == null) {
+          PartitionAssignmentServiceGrpc.getAssignPartitionsMethod =
+              getAssignPartitionsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AssignPartitions"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.pubsublite.proto.PartitionAssignmentRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.pubsublite.proto.PartitionAssignment
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new PartitionAssignmentServiceMethodDescriptorSupplier(
+                              "AssignPartitions"))
+                      .build();
         }
       }
     }
     return getAssignPartitionsMethod;
   }
 
-  /**
-   * 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 PartitionAssignmentServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PartitionAssignmentServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PartitionAssignmentServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PartitionAssignmentServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PartitionAssignmentServiceStub(channel, callOptions);
+          }
+        };
     return PartitionAssignmentServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PartitionAssignmentServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static PartitionAssignmentServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PartitionAssignmentServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PartitionAssignmentServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PartitionAssignmentServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PartitionAssignmentServiceBlockingStub(channel, callOptions);
+          }
+        };
     return PartitionAssignmentServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static PartitionAssignmentServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static PartitionAssignmentServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PartitionAssignmentServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PartitionAssignmentServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PartitionAssignmentServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PartitionAssignmentServiceFutureStub(channel, callOptions);
+          }
+        };
     return PartitionAssignmentServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public static abstract class PartitionAssignmentServiceImplBase implements io.grpc.BindableService { + public abstract static class PartitionAssignmentServiceImplBase + implements io.grpc.BindableService { /** + * + * *
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -112,31 +150,38 @@ public static abstract class PartitionAssignmentServiceImplBase implements io.gr
      * partitions it is connected to to reflect the new assignment.
      * 
*/ - public io.grpc.stub.StreamObserver assignPartitions( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getAssignPartitionsMethod(), responseObserver); + public io.grpc.stub.StreamObserver + assignPartitions( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getAssignPartitionsMethod(), 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( - getAssignPartitionsMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest, - com.google.cloud.pubsublite.proto.PartitionAssignment>( - this, METHODID_ASSIGN_PARTITIONS))) + getAssignPartitionsMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest, + com.google.cloud.pubsublite.proto.PartitionAssignment>( + this, METHODID_ASSIGN_PARTITIONS))) .build(); } } /** + * + * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public static final class PartitionAssignmentServiceStub extends io.grpc.stub.AbstractAsyncStub { + public static final class PartitionAssignmentServiceStub + extends io.grpc.stub.AbstractAsyncStub { private PartitionAssignmentServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -149,6 +194,8 @@ protected PartitionAssignmentServiceStub build( } /** + * + * *
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -158,20 +205,25 @@ protected PartitionAssignmentServiceStub build(
      * partitions it is connected to to reflect the new assignment.
      * 
*/ - public io.grpc.stub.StreamObserver assignPartitions( - io.grpc.stub.StreamObserver responseObserver) { + public io.grpc.stub.StreamObserver + assignPartitions( + io.grpc.stub.StreamObserver + responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getAssignPartitionsMethod(), getCallOptions()), responseObserver); } } /** + * + * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public static final class PartitionAssignmentServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class PartitionAssignmentServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private PartitionAssignmentServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -185,12 +237,15 @@ protected PartitionAssignmentServiceBlockingStub build( } /** + * + * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public static final class PartitionAssignmentServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + public static final class PartitionAssignmentServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { private PartitionAssignmentServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -205,11 +260,11 @@ protected PartitionAssignmentServiceFutureStub build( private static final int METHODID_ASSIGN_PARTITIONS = 0; - 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 PartitionAssignmentServiceImplBase serviceImpl; private final int methodId; @@ -233,16 +288,20 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_ASSIGN_PARTITIONS: - return (io.grpc.stub.StreamObserver) serviceImpl.assignPartitions( - (io.grpc.stub.StreamObserver) responseObserver); + return (io.grpc.stub.StreamObserver) + serviceImpl.assignPartitions( + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.PartitionAssignment>) + responseObserver); default: throw new AssertionError(); } } } - private static abstract class PartitionAssignmentServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class PartitionAssignmentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { PartitionAssignmentServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -284,10 +343,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PartitionAssignmentServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PartitionAssignmentServiceFileDescriptorSupplier()) - .addMethod(getAssignPartitionsMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PartitionAssignmentServiceFileDescriptorSupplier()) + .addMethod(getAssignPartitionsMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java similarity index 57% rename from owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java rename to grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java index 465b1408e..3536f01ec 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.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.cloud.pubsublite.proto; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The service that a publisher client application uses to publish messages to
  * topics. Published messages are retained by the service for the duration of
@@ -21,82 +38,96 @@ private PublisherServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.PublisherService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getPublishMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.pubsublite.proto.PublishRequest,
+          com.google.cloud.pubsublite.proto.PublishResponse>
+      getPublishMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Publish",
       requestType = com.google.cloud.pubsublite.proto.PublishRequest.class,
       responseType = com.google.cloud.pubsublite.proto.PublishResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor getPublishMethod() {
-    io.grpc.MethodDescriptor getPublishMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.pubsublite.proto.PublishRequest,
+          com.google.cloud.pubsublite.proto.PublishResponse>
+      getPublishMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.pubsublite.proto.PublishRequest,
+            com.google.cloud.pubsublite.proto.PublishResponse>
+        getPublishMethod;
     if ((getPublishMethod = PublisherServiceGrpc.getPublishMethod) == null) {
       synchronized (PublisherServiceGrpc.class) {
         if ((getPublishMethod = PublisherServiceGrpc.getPublishMethod) == null) {
-          PublisherServiceGrpc.getPublishMethod = getPublishMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.pubsublite.proto.PublishRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.pubsublite.proto.PublishResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherServiceMethodDescriptorSupplier("Publish"))
-              .build();
+          PublisherServiceGrpc.getPublishMethod =
+              getPublishMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.pubsublite.proto.PublishRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.pubsublite.proto.PublishResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new PublisherServiceMethodDescriptorSupplier("Publish"))
+                      .build();
         }
       }
     }
     return getPublishMethod;
   }
 
-  /**
-   * 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 PublisherServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PublisherServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PublisherServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PublisherServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PublisherServiceStub(channel, callOptions);
+          }
+        };
     return PublisherServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PublisherServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static PublisherServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PublisherServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PublisherServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PublisherServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PublisherServiceBlockingStub(channel, callOptions);
+          }
+        };
     return PublisherServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static PublisherServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static PublisherServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PublisherServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PublisherServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PublisherServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PublisherServiceFutureStub(channel, callOptions);
+          }
+        };
     return PublisherServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -104,9 +135,11 @@ public PublisherServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallO
    * to subscriber clients upon request (via the `SubscriberService`).
    * 
*/ - public static abstract class PublisherServiceImplBase implements io.grpc.BindableService { + public abstract static class PublisherServiceImplBase implements io.grpc.BindableService { /** + * + * *
      * Establishes a stream with the server for publishing messages. Once the
      * stream is initialized, the client publishes messages by sending publish
@@ -118,24 +151,28 @@ public static abstract class PublisherServiceImplBase implements io.grpc.Bindabl
      * 
*/ public io.grpc.stub.StreamObserver publish( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getPublishMethod(), responseObserver); + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getPublishMethod(), 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( - getPublishMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.PublishRequest, - com.google.cloud.pubsublite.proto.PublishResponse>( - this, METHODID_PUBLISH))) + getPublishMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.PublishRequest, + com.google.cloud.pubsublite.proto.PublishResponse>(this, METHODID_PUBLISH))) .build(); } } /** + * + * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -143,19 +180,20 @@ public io.grpc.stub.StreamObserver
    */
-  public static final class PublisherServiceStub extends io.grpc.stub.AbstractAsyncStub {
-    private PublisherServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+  public static final class PublisherServiceStub
+      extends io.grpc.stub.AbstractAsyncStub {
+    private PublisherServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected PublisherServiceStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected PublisherServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new PublisherServiceStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Establishes a stream with the server for publishing messages. Once the
      * stream is initialized, the client publishes messages by sending publish
@@ -167,13 +205,16 @@ protected PublisherServiceStub build(
      * 
*/ public io.grpc.stub.StreamObserver publish( - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver + responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getPublishMethod(), getCallOptions()), responseObserver); } } /** + * + * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -181,9 +222,9 @@ public io.grpc.stub.StreamObserver
    */
-  public static final class PublisherServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
-    private PublisherServiceBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+  public static final class PublisherServiceBlockingStub
+      extends io.grpc.stub.AbstractBlockingStub {
+    private PublisherServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -195,6 +236,8 @@ protected PublisherServiceBlockingStub build(
   }
 
   /**
+   *
+   *
    * 
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -202,9 +245,9 @@ protected PublisherServiceBlockingStub build(
    * to subscriber clients upon request (via the `SubscriberService`).
    * 
*/ - public static final class PublisherServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private PublisherServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PublisherServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -217,11 +260,11 @@ protected PublisherServiceFutureStub build( private static final int METHODID_PUBLISH = 0; - 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 PublisherServiceImplBase serviceImpl; private final int methodId; @@ -245,16 +288,19 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PUBLISH: - return (io.grpc.stub.StreamObserver) serviceImpl.publish( - (io.grpc.stub.StreamObserver) responseObserver); + return (io.grpc.stub.StreamObserver) + serviceImpl.publish( + (io.grpc.stub.StreamObserver) + responseObserver); default: throw new AssertionError(); } } } - private static abstract class PublisherServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class PublisherServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { PublisherServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -296,10 +342,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PublisherServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PublisherServiceFileDescriptorSupplier()) - .addMethod(getPublishMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PublisherServiceFileDescriptorSupplier()) + .addMethod(getPublishMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java similarity index 50% rename from owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java rename to grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java index 1fa3370b4..7a5477fee 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.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.cloud.pubsublite.proto; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The service that a subscriber client application uses to receive messages
  * from subscriptions.
@@ -19,121 +36,144 @@ private SubscriberServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.SubscriberService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getSubscribeMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.pubsublite.proto.SubscribeRequest,
+          com.google.cloud.pubsublite.proto.SubscribeResponse>
+      getSubscribeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Subscribe",
       requestType = com.google.cloud.pubsublite.proto.SubscribeRequest.class,
       responseType = com.google.cloud.pubsublite.proto.SubscribeResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor getSubscribeMethod() {
-    io.grpc.MethodDescriptor getSubscribeMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.pubsublite.proto.SubscribeRequest,
+          com.google.cloud.pubsublite.proto.SubscribeResponse>
+      getSubscribeMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.pubsublite.proto.SubscribeRequest,
+            com.google.cloud.pubsublite.proto.SubscribeResponse>
+        getSubscribeMethod;
     if ((getSubscribeMethod = SubscriberServiceGrpc.getSubscribeMethod) == null) {
       synchronized (SubscriberServiceGrpc.class) {
         if ((getSubscribeMethod = SubscriberServiceGrpc.getSubscribeMethod) == null) {
-          SubscriberServiceGrpc.getSubscribeMethod = getSubscribeMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Subscribe"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.pubsublite.proto.SubscribeRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.pubsublite.proto.SubscribeResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberServiceMethodDescriptorSupplier("Subscribe"))
-              .build();
+          SubscriberServiceGrpc.getSubscribeMethod =
+              getSubscribeMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Subscribe"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.pubsublite.proto.SubscribeRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.pubsublite.proto.SubscribeResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SubscriberServiceMethodDescriptorSupplier("Subscribe"))
+                      .build();
         }
       }
     }
     return getSubscribeMethod;
   }
 
-  /**
-   * 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 SubscriberServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public SubscriberServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new SubscriberServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public SubscriberServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new SubscriberServiceStub(channel, callOptions);
+          }
+        };
     return SubscriberServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static SubscriberServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static SubscriberServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public SubscriberServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new SubscriberServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public SubscriberServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new SubscriberServiceBlockingStub(channel, callOptions);
+          }
+        };
     return SubscriberServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static SubscriberServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static SubscriberServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public SubscriberServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new SubscriberServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public SubscriberServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new SubscriberServiceFutureStub(channel, callOptions);
+          }
+        };
     return SubscriberServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public static abstract class SubscriberServiceImplBase implements io.grpc.BindableService { + public abstract static class SubscriberServiceImplBase implements io.grpc.BindableService { /** + * + * *
      * Establishes a stream with the server for receiving messages.
      * 
*/ - public io.grpc.stub.StreamObserver subscribe( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getSubscribeMethod(), responseObserver); + public io.grpc.stub.StreamObserver + subscribe( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getSubscribeMethod(), 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( - getSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.SubscribeRequest, - com.google.cloud.pubsublite.proto.SubscribeResponse>( - this, METHODID_SUBSCRIBE))) + getSubscribeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.SubscribeRequest, + com.google.cloud.pubsublite.proto.SubscribeResponse>( + this, METHODID_SUBSCRIBE))) .build(); } } /** + * + * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public static final class SubscriberServiceStub extends io.grpc.stub.AbstractAsyncStub { - private SubscriberServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SubscriberServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -144,24 +184,31 @@ protected SubscriberServiceStub build( } /** + * + * *
      * Establishes a stream with the server for receiving messages.
      * 
*/ - public io.grpc.stub.StreamObserver subscribe( - io.grpc.stub.StreamObserver responseObserver) { + public io.grpc.stub.StreamObserver + subscribe( + io.grpc.stub.StreamObserver + responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getSubscribeMethod(), getCallOptions()), responseObserver); } } /** + * + * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public static final class SubscriberServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class SubscriberServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private SubscriberServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -175,14 +222,16 @@ protected SubscriberServiceBlockingStub build( } /** + * + * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public static final class SubscriberServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private SubscriberServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SubscriberServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -195,11 +244,11 @@ protected SubscriberServiceFutureStub build( private static final int METHODID_SUBSCRIBE = 0; - 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 SubscriberServiceImplBase serviceImpl; private final int methodId; @@ -223,16 +272,19 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SUBSCRIBE: - return (io.grpc.stub.StreamObserver) serviceImpl.subscribe( - (io.grpc.stub.StreamObserver) responseObserver); + return (io.grpc.stub.StreamObserver) + serviceImpl.subscribe( + (io.grpc.stub.StreamObserver) + responseObserver); default: throw new AssertionError(); } } } - private static abstract class SubscriberServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class SubscriberServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { SubscriberServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -274,10 +326,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SubscriberServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SubscriberServiceFileDescriptorSupplier()) - .addMethod(getSubscribeMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SubscriberServiceFileDescriptorSupplier()) + .addMethod(getSubscribeMethod()) + .build(); } } } diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java new file mode 100644 index 000000000..1e6bf1f45 --- /dev/null +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java @@ -0,0 +1,643 @@ +/* + * 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.cloud.pubsublite.proto; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * This service allows users to get stats about messages in their topic.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/pubsublite/v1/topic_stats.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TopicStatsServiceGrpc { + + private TopicStatsServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.TopicStatsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> + getComputeMessageStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeMessageStats", + requestType = com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> + getComputeMessageStatsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> + getComputeMessageStatsMethod; + if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) + == null) { + synchronized (TopicStatsServiceGrpc.class) { + if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) + == null) { + TopicStatsServiceGrpc.getComputeMessageStatsMethod = + getComputeMessageStatsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ComputeMessageStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TopicStatsServiceMethodDescriptorSupplier("ComputeMessageStats")) + .build(); + } + } + } + return getComputeMessageStatsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> + getComputeHeadCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeHeadCursor", + requestType = com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> + getComputeHeadCursorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> + getComputeHeadCursorMethod; + if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) == null) { + synchronized (TopicStatsServiceGrpc.class) { + if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) + == null) { + TopicStatsServiceGrpc.getComputeHeadCursorMethod = + getComputeHeadCursorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeHeadCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TopicStatsServiceMethodDescriptorSupplier("ComputeHeadCursor")) + .build(); + } + } + } + return getComputeHeadCursorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> + getComputeTimeCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeTimeCursor", + requestType = com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> + getComputeTimeCursorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> + getComputeTimeCursorMethod; + if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) == null) { + synchronized (TopicStatsServiceGrpc.class) { + if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) + == null) { + TopicStatsServiceGrpc.getComputeTimeCursorMethod = + getComputeTimeCursorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeTimeCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TopicStatsServiceMethodDescriptorSupplier("ComputeTimeCursor")) + .build(); + } + } + } + return getComputeTimeCursorMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TopicStatsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TopicStatsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceStub(channel, callOptions); + } + }; + return TopicStatsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TopicStatsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TopicStatsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceBlockingStub(channel, callOptions); + } + }; + return TopicStatsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TopicStatsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TopicStatsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceFutureStub(channel, callOptions); + } + }; + return TopicStatsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public abstract static class TopicStatsServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public void computeMessageStats( + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeMessageStatsMethod(), responseObserver); + } + + /** + * + * + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public void computeHeadCursor( + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeHeadCursorMethod(), responseObserver); + } + + /** + * + * + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public void computeTimeCursor( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeTimeCursorMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getComputeMessageStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse>( + this, METHODID_COMPUTE_MESSAGE_STATS))) + .addMethod( + getComputeHeadCursorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse>( + this, METHODID_COMPUTE_HEAD_CURSOR))) + .addMethod( + getComputeTimeCursorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse>( + this, METHODID_COMPUTE_TIME_CURSOR))) + .build(); + } + } + + /** + * + * + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static final class TopicStatsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TopicStatsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TopicStatsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public void computeMessageStats( + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public void computeHeadCursor( + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public void computeTimeCursor( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static final class TopicStatsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TopicStatsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TopicStatsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse computeMessageStats( + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeMessageStatsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse computeHeadCursor( + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeHeadCursorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse computeTimeCursor( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeTimeCursorMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static final class TopicStatsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TopicStatsServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TopicStatsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> + computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> + computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> + computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_COMPUTE_MESSAGE_STATS = 0; + private static final int METHODID_COMPUTE_HEAD_CURSOR = 1; + private static final int METHODID_COMPUTE_TIME_CURSOR = 2; + + 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 TopicStatsServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TopicStatsServiceImplBase 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_COMPUTE_MESSAGE_STATS: + serviceImpl.computeMessageStats( + (com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse>) + responseObserver); + break; + case METHODID_COMPUTE_HEAD_CURSOR: + serviceImpl.computeHeadCursor( + (com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse>) + responseObserver); + break; + case METHODID_COMPUTE_TIME_CURSOR: + serviceImpl.computeTimeCursor( + (com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse>) + 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 TopicStatsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TopicStatsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TopicStatsService"); + } + } + + private static final class TopicStatsServiceFileDescriptorSupplier + extends TopicStatsServiceBaseDescriptorSupplier { + TopicStatsServiceFileDescriptorSupplier() {} + } + + private static final class TopicStatsServiceMethodDescriptorSupplier + extends TopicStatsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TopicStatsServiceMethodDescriptorSupplier(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 (TopicStatsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TopicStatsServiceFileDescriptorSupplier()) + .addMethod(getComputeMessageStatsMethod()) + .addMethod(getComputeHeadCursorMethod()) + .addMethod(getComputeTimeCursorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java deleted file mode 100644 index a42b24cf2..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java +++ /dev/null @@ -1,1545 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListReservationTopicsPagedResponse; -import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListReservationsPagedResponse; -import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListSubscriptionsPagedResponse; -import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListTopicSubscriptionsPagedResponse; -import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListTopicsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.cloud.pubsublite.proto.CreateReservationRequest; -import com.google.cloud.pubsublite.proto.CreateSubscriptionRequest; -import com.google.cloud.pubsublite.proto.CreateTopicRequest; -import com.google.cloud.pubsublite.proto.DeleteReservationRequest; -import com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest; -import com.google.cloud.pubsublite.proto.DeleteTopicRequest; -import com.google.cloud.pubsublite.proto.ExportConfig; -import com.google.cloud.pubsublite.proto.GetReservationRequest; -import com.google.cloud.pubsublite.proto.GetSubscriptionRequest; -import com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest; -import com.google.cloud.pubsublite.proto.GetTopicRequest; -import com.google.cloud.pubsublite.proto.ListReservationTopicsRequest; -import com.google.cloud.pubsublite.proto.ListReservationTopicsResponse; -import com.google.cloud.pubsublite.proto.ListReservationsRequest; -import com.google.cloud.pubsublite.proto.ListReservationsResponse; -import com.google.cloud.pubsublite.proto.ListSubscriptionsRequest; -import com.google.cloud.pubsublite.proto.ListSubscriptionsResponse; -import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest; -import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse; -import com.google.cloud.pubsublite.proto.ListTopicsRequest; -import com.google.cloud.pubsublite.proto.ListTopicsResponse; -import com.google.cloud.pubsublite.proto.LocationName; -import com.google.cloud.pubsublite.proto.Reservation; -import com.google.cloud.pubsublite.proto.ReservationName; -import com.google.cloud.pubsublite.proto.SeekSubscriptionRequest; -import com.google.cloud.pubsublite.proto.SeekSubscriptionResponse; -import com.google.cloud.pubsublite.proto.Subscription; -import com.google.cloud.pubsublite.proto.SubscriptionName; -import com.google.cloud.pubsublite.proto.Topic; -import com.google.cloud.pubsublite.proto.TopicName; -import com.google.cloud.pubsublite.proto.TopicPartitions; -import com.google.cloud.pubsublite.proto.UpdateReservationRequest; -import com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest; -import com.google.cloud.pubsublite.proto.UpdateTopicRequest; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class AdminServiceClientTest { - private static MockAdminService mockAdminService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private AdminServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockAdminService = new MockAdminService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockAdminService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - AdminServiceSettings settings = - AdminServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AdminServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createTopicTest() throws Exception { - Topic expectedResponse = - Topic.newBuilder() - .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) - .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) - .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Topic topic = Topic.newBuilder().build(); - String topicId = "topicId-1139259734"; - - Topic actualResponse = client.createTopic(parent, topic, topicId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTopicRequest actualRequest = ((CreateTopicRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(topic, actualRequest.getTopic()); - Assert.assertEquals(topicId, actualRequest.getTopicId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTopicExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Topic topic = Topic.newBuilder().build(); - String topicId = "topicId-1139259734"; - client.createTopic(parent, topic, topicId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTopicTest2() throws Exception { - Topic expectedResponse = - Topic.newBuilder() - .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) - .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) - .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Topic topic = Topic.newBuilder().build(); - String topicId = "topicId-1139259734"; - - Topic actualResponse = client.createTopic(parent, topic, topicId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTopicRequest actualRequest = ((CreateTopicRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(topic, actualRequest.getTopic()); - Assert.assertEquals(topicId, actualRequest.getTopicId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTopicExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - Topic topic = Topic.newBuilder().build(); - String topicId = "topicId-1139259734"; - client.createTopic(parent, topic, topicId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTopicTest() throws Exception { - Topic expectedResponse = - Topic.newBuilder() - .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) - .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) - .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); - - Topic actualResponse = client.getTopic(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTopicRequest actualRequest = ((GetTopicRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTopicExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); - client.getTopic(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTopicTest2() throws Exception { - Topic expectedResponse = - Topic.newBuilder() - .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) - .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) - .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Topic actualResponse = client.getTopic(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTopicRequest actualRequest = ((GetTopicRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTopicExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getTopic(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTopicPartitionsTest() throws Exception { - TopicPartitions expectedResponse = - TopicPartitions.newBuilder().setPartitionCount(-1738969222).build(); - mockAdminService.addResponse(expectedResponse); - - TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); - - TopicPartitions actualResponse = client.getTopicPartitions(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTopicPartitionsRequest actualRequest = ((GetTopicPartitionsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTopicPartitionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); - client.getTopicPartitions(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTopicPartitionsTest2() throws Exception { - TopicPartitions expectedResponse = - TopicPartitions.newBuilder().setPartitionCount(-1738969222).build(); - mockAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - TopicPartitions actualResponse = client.getTopicPartitions(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTopicPartitionsRequest actualRequest = ((GetTopicPartitionsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTopicPartitionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getTopicPartitions(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTopicsTest() throws Exception { - Topic responsesElement = Topic.newBuilder().build(); - ListTopicsResponse expectedResponse = - ListTopicsResponse.newBuilder() - .setNextPageToken("") - .addAllTopics(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListTopicsPagedResponse pagedListResponse = client.listTopics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTopicsRequest actualRequest = ((ListTopicsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTopicsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listTopics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTopicsTest2() throws Exception { - Topic responsesElement = Topic.newBuilder().build(); - ListTopicsResponse expectedResponse = - ListTopicsResponse.newBuilder() - .setNextPageToken("") - .addAllTopics(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListTopicsPagedResponse pagedListResponse = client.listTopics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTopicsRequest actualRequest = ((ListTopicsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTopicsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listTopics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTopicTest() throws Exception { - Topic expectedResponse = - Topic.newBuilder() - .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) - .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) - .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - Topic topic = Topic.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Topic actualResponse = client.updateTopic(topic, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTopicRequest actualRequest = ((UpdateTopicRequest) actualRequests.get(0)); - - Assert.assertEquals(topic, actualRequest.getTopic()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTopicExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - Topic topic = Topic.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTopic(topic, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTopicTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAdminService.addResponse(expectedResponse); - - TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); - - client.deleteTopic(name); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTopicRequest actualRequest = ((DeleteTopicRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTopicExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); - client.deleteTopic(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTopicTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteTopic(name); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTopicRequest actualRequest = ((DeleteTopicRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTopicExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteTopic(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTopicSubscriptionsTest() throws Exception { - String responsesElement = "responsesElement-318365110"; - ListTopicSubscriptionsResponse expectedResponse = - ListTopicSubscriptionsResponse.newBuilder() - .setNextPageToken("") - .addAllSubscriptions(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); - - ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(name); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTopicSubscriptionsRequest actualRequest = - ((ListTopicSubscriptionsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTopicSubscriptionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); - client.listTopicSubscriptions(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTopicSubscriptionsTest2() throws Exception { - String responsesElement = "responsesElement-318365110"; - ListTopicSubscriptionsResponse expectedResponse = - ListTopicSubscriptionsResponse.newBuilder() - .setNextPageToken("") - .addAllSubscriptions(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(name); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTopicSubscriptionsRequest actualRequest = - ((ListTopicSubscriptionsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTopicSubscriptionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String name = "name3373707"; - client.listTopicSubscriptions(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createSubscriptionTest() throws Exception { - Subscription expectedResponse = - Subscription.newBuilder() - .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) - .setExportConfig(ExportConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Subscription subscription = Subscription.newBuilder().build(); - String subscriptionId = "subscriptionId1478790936"; - - Subscription actualResponse = client.createSubscription(parent, subscription, subscriptionId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateSubscriptionRequest actualRequest = ((CreateSubscriptionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(subscription, actualRequest.getSubscription()); - Assert.assertEquals(subscriptionId, actualRequest.getSubscriptionId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Subscription subscription = Subscription.newBuilder().build(); - String subscriptionId = "subscriptionId1478790936"; - client.createSubscription(parent, subscription, subscriptionId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createSubscriptionTest2() throws Exception { - Subscription expectedResponse = - Subscription.newBuilder() - .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) - .setExportConfig(ExportConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Subscription subscription = Subscription.newBuilder().build(); - String subscriptionId = "subscriptionId1478790936"; - - Subscription actualResponse = client.createSubscription(parent, subscription, subscriptionId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateSubscriptionRequest actualRequest = ((CreateSubscriptionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(subscription, actualRequest.getSubscription()); - Assert.assertEquals(subscriptionId, actualRequest.getSubscriptionId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createSubscriptionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - Subscription subscription = Subscription.newBuilder().build(); - String subscriptionId = "subscriptionId1478790936"; - client.createSubscription(parent, subscription, subscriptionId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSubscriptionTest() throws Exception { - Subscription expectedResponse = - Subscription.newBuilder() - .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) - .setExportConfig(ExportConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); - - Subscription actualResponse = client.getSubscription(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSubscriptionRequest actualRequest = ((GetSubscriptionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); - client.getSubscription(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSubscriptionTest2() throws Exception { - Subscription expectedResponse = - Subscription.newBuilder() - .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) - .setExportConfig(ExportConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Subscription actualResponse = client.getSubscription(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSubscriptionRequest actualRequest = ((GetSubscriptionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSubscriptionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getSubscription(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listSubscriptionsTest() throws Exception { - Subscription responsesElement = Subscription.newBuilder().build(); - ListSubscriptionsResponse expectedResponse = - ListSubscriptionsResponse.newBuilder() - .setNextPageToken("") - .addAllSubscriptions(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListSubscriptionsRequest actualRequest = ((ListSubscriptionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listSubscriptionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listSubscriptions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listSubscriptionsTest2() throws Exception { - Subscription responsesElement = Subscription.newBuilder().build(); - ListSubscriptionsResponse expectedResponse = - ListSubscriptionsResponse.newBuilder() - .setNextPageToken("") - .addAllSubscriptions(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListSubscriptionsRequest actualRequest = ((ListSubscriptionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listSubscriptionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listSubscriptions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateSubscriptionTest() throws Exception { - Subscription expectedResponse = - Subscription.newBuilder() - .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) - .setExportConfig(ExportConfig.newBuilder().build()) - .build(); - mockAdminService.addResponse(expectedResponse); - - Subscription subscription = Subscription.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Subscription actualResponse = client.updateSubscription(subscription, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateSubscriptionRequest actualRequest = ((UpdateSubscriptionRequest) actualRequests.get(0)); - - Assert.assertEquals(subscription, actualRequest.getSubscription()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - Subscription subscription = Subscription.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateSubscription(subscription, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteSubscriptionTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAdminService.addResponse(expectedResponse); - - SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); - - client.deleteSubscription(name); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteSubscriptionRequest actualRequest = ((DeleteSubscriptionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); - client.deleteSubscription(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteSubscriptionTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteSubscription(name); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteSubscriptionRequest actualRequest = ((DeleteSubscriptionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteSubscriptionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteSubscription(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void seekSubscriptionTest() throws Exception { - SeekSubscriptionResponse expectedResponse = SeekSubscriptionResponse.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("seekSubscriptionTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockAdminService.addResponse(resultOperation); - - SeekSubscriptionRequest request = - SeekSubscriptionRequest.newBuilder() - .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) - .build(); - - SeekSubscriptionResponse actualResponse = client.seekSubscriptionAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SeekSubscriptionRequest actualRequest = ((SeekSubscriptionRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getNamedTarget(), actualRequest.getNamedTarget()); - Assert.assertEquals(request.getTimeTarget(), actualRequest.getTimeTarget()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void seekSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - SeekSubscriptionRequest request = - SeekSubscriptionRequest.newBuilder() - .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) - .build(); - client.seekSubscriptionAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createReservationTest() throws Exception { - Reservation expectedResponse = - Reservation.newBuilder() - .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) - .setThroughputCapacity(-1174790353) - .build(); - mockAdminService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Reservation reservation = Reservation.newBuilder().build(); - String reservationId = "reservationId1116965383"; - - Reservation actualResponse = client.createReservation(parent, reservation, reservationId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateReservationRequest actualRequest = ((CreateReservationRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(reservation, actualRequest.getReservation()); - Assert.assertEquals(reservationId, actualRequest.getReservationId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createReservationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Reservation reservation = Reservation.newBuilder().build(); - String reservationId = "reservationId1116965383"; - client.createReservation(parent, reservation, reservationId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createReservationTest2() throws Exception { - Reservation expectedResponse = - Reservation.newBuilder() - .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) - .setThroughputCapacity(-1174790353) - .build(); - mockAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Reservation reservation = Reservation.newBuilder().build(); - String reservationId = "reservationId1116965383"; - - Reservation actualResponse = client.createReservation(parent, reservation, reservationId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateReservationRequest actualRequest = ((CreateReservationRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(reservation, actualRequest.getReservation()); - Assert.assertEquals(reservationId, actualRequest.getReservationId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createReservationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - Reservation reservation = Reservation.newBuilder().build(); - String reservationId = "reservationId1116965383"; - client.createReservation(parent, reservation, reservationId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getReservationTest() throws Exception { - Reservation expectedResponse = - Reservation.newBuilder() - .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) - .setThroughputCapacity(-1174790353) - .build(); - mockAdminService.addResponse(expectedResponse); - - ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); - - Reservation actualResponse = client.getReservation(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetReservationRequest actualRequest = ((GetReservationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getReservationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); - client.getReservation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getReservationTest2() throws Exception { - Reservation expectedResponse = - Reservation.newBuilder() - .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) - .setThroughputCapacity(-1174790353) - .build(); - mockAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Reservation actualResponse = client.getReservation(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetReservationRequest actualRequest = ((GetReservationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getReservationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getReservation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listReservationsTest() throws Exception { - Reservation responsesElement = Reservation.newBuilder().build(); - ListReservationsResponse expectedResponse = - ListReservationsResponse.newBuilder() - .setNextPageToken("") - .addAllReservations(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListReservationsPagedResponse pagedListResponse = client.listReservations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getReservationsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListReservationsRequest actualRequest = ((ListReservationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listReservationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listReservations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listReservationsTest2() throws Exception { - Reservation responsesElement = Reservation.newBuilder().build(); - ListReservationsResponse expectedResponse = - ListReservationsResponse.newBuilder() - .setNextPageToken("") - .addAllReservations(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListReservationsPagedResponse pagedListResponse = client.listReservations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getReservationsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListReservationsRequest actualRequest = ((ListReservationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listReservationsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listReservations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateReservationTest() throws Exception { - Reservation expectedResponse = - Reservation.newBuilder() - .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) - .setThroughputCapacity(-1174790353) - .build(); - mockAdminService.addResponse(expectedResponse); - - Reservation reservation = Reservation.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Reservation actualResponse = client.updateReservation(reservation, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateReservationRequest actualRequest = ((UpdateReservationRequest) actualRequests.get(0)); - - Assert.assertEquals(reservation, actualRequest.getReservation()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateReservationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - Reservation reservation = Reservation.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateReservation(reservation, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteReservationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAdminService.addResponse(expectedResponse); - - ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); - - client.deleteReservation(name); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteReservationRequest actualRequest = ((DeleteReservationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteReservationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); - client.deleteReservation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteReservationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteReservation(name); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteReservationRequest actualRequest = ((DeleteReservationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteReservationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteReservation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listReservationTopicsTest() throws Exception { - String responsesElement = "responsesElement-318365110"; - ListReservationTopicsResponse expectedResponse = - ListReservationTopicsResponse.newBuilder() - .setNextPageToken("") - .addAllTopics(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); - - ListReservationTopicsPagedResponse pagedListResponse = client.listReservationTopics(name); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListReservationTopicsRequest actualRequest = - ((ListReservationTopicsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listReservationTopicsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); - client.listReservationTopics(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listReservationTopicsTest2() throws Exception { - String responsesElement = "responsesElement-318365110"; - ListReservationTopicsResponse expectedResponse = - ListReservationTopicsResponse.newBuilder() - .setNextPageToken("") - .addAllTopics(Arrays.asList(responsesElement)) - .build(); - mockAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - ListReservationTopicsPagedResponse pagedListResponse = client.listReservationTopics(name); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); - - List actualRequests = mockAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListReservationTopicsRequest actualRequest = - ((ListReservationTopicsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listReservationTopicsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAdminService.addException(exception); - - try { - String name = "name3373707"; - client.listReservationTopics(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java deleted file mode 100644 index 808d060a7..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import static com.google.cloud.pubsublite.v1.CursorServiceClient.ListPartitionCursorsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.grpc.testing.MockStreamObserver; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiStreamObserver; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.cloud.pubsublite.proto.CommitCursorRequest; -import com.google.cloud.pubsublite.proto.CommitCursorResponse; -import com.google.cloud.pubsublite.proto.Cursor; -import com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest; -import com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse; -import com.google.cloud.pubsublite.proto.PartitionCursor; -import com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest; -import com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse; -import com.google.cloud.pubsublite.proto.SubscriptionName; -import com.google.common.collect.Lists; -import com.google.protobuf.AbstractMessage; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class CursorServiceClientTest { - private static MockCursorService mockCursorService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private CursorServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockCursorService = new MockCursorService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockCursorService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - CursorServiceSettings settings = - CursorServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CursorServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void streamingCommitCursorTest() throws Exception { - StreamingCommitCursorResponse expectedResponse = - StreamingCommitCursorResponse.newBuilder().build(); - mockCursorService.addResponse(expectedResponse); - StreamingCommitCursorRequest request = StreamingCommitCursorRequest.newBuilder().build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.streamingCommitCursorCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - requestObserver.onCompleted(); - - List actualResponses = responseObserver.future().get(); - Assert.assertEquals(1, actualResponses.size()); - Assert.assertEquals(expectedResponse, actualResponses.get(0)); - } - - @Test - public void streamingCommitCursorExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCursorService.addException(exception); - StreamingCommitCursorRequest request = StreamingCommitCursorRequest.newBuilder().build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.streamingCommitCursorCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - - try { - List actualResponses = responseObserver.future().get(); - Assert.fail("No exception thrown"); - } catch (ExecutionException e) { - Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void commitCursorTest() throws Exception { - CommitCursorResponse expectedResponse = CommitCursorResponse.newBuilder().build(); - mockCursorService.addResponse(expectedResponse); - - CommitCursorRequest request = - CommitCursorRequest.newBuilder() - .setSubscription("subscription341203229") - .setPartition(-1799810326) - .setCursor(Cursor.newBuilder().build()) - .build(); - - CommitCursorResponse actualResponse = client.commitCursor(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCursorService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CommitCursorRequest actualRequest = ((CommitCursorRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getSubscription(), actualRequest.getSubscription()); - Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); - Assert.assertEquals(request.getCursor(), actualRequest.getCursor()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void commitCursorExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCursorService.addException(exception); - - try { - CommitCursorRequest request = - CommitCursorRequest.newBuilder() - .setSubscription("subscription341203229") - .setPartition(-1799810326) - .setCursor(Cursor.newBuilder().build()) - .build(); - client.commitCursor(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPartitionCursorsTest() throws Exception { - PartitionCursor responsesElement = PartitionCursor.newBuilder().build(); - ListPartitionCursorsResponse expectedResponse = - ListPartitionCursorsResponse.newBuilder() - .setNextPageToken("") - .addAllPartitionCursors(Arrays.asList(responsesElement)) - .build(); - mockCursorService.addResponse(expectedResponse); - - SubscriptionName parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); - - ListPartitionCursorsPagedResponse pagedListResponse = client.listPartitionCursors(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPartitionCursorsList().get(0), resources.get(0)); - - List actualRequests = mockCursorService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPartitionCursorsRequest actualRequest = - ((ListPartitionCursorsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPartitionCursorsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCursorService.addException(exception); - - try { - SubscriptionName parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); - client.listPartitionCursors(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPartitionCursorsTest2() throws Exception { - PartitionCursor responsesElement = PartitionCursor.newBuilder().build(); - ListPartitionCursorsResponse expectedResponse = - ListPartitionCursorsResponse.newBuilder() - .setNextPageToken("") - .addAllPartitionCursors(Arrays.asList(responsesElement)) - .build(); - mockCursorService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListPartitionCursorsPagedResponse pagedListResponse = client.listPartitionCursors(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPartitionCursorsList().get(0), resources.get(0)); - - List actualRequests = mockCursorService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPartitionCursorsRequest actualRequest = - ((ListPartitionCursorsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPartitionCursorsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCursorService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listPartitionCursors(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java deleted file mode 100644 index e8f620e5f..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockAdminService implements MockGrpcService { - private final MockAdminServiceImpl serviceImpl; - - public MockAdminService() { - serviceImpl = new MockAdminServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java deleted file mode 100644 index 0c91ae213..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java +++ /dev/null @@ -1,488 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.pubsublite.proto.AdminServiceGrpc.AdminServiceImplBase; -import com.google.cloud.pubsublite.proto.CreateReservationRequest; -import com.google.cloud.pubsublite.proto.CreateSubscriptionRequest; -import com.google.cloud.pubsublite.proto.CreateTopicRequest; -import com.google.cloud.pubsublite.proto.DeleteReservationRequest; -import com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest; -import com.google.cloud.pubsublite.proto.DeleteTopicRequest; -import com.google.cloud.pubsublite.proto.GetReservationRequest; -import com.google.cloud.pubsublite.proto.GetSubscriptionRequest; -import com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest; -import com.google.cloud.pubsublite.proto.GetTopicRequest; -import com.google.cloud.pubsublite.proto.ListReservationTopicsRequest; -import com.google.cloud.pubsublite.proto.ListReservationTopicsResponse; -import com.google.cloud.pubsublite.proto.ListReservationsRequest; -import com.google.cloud.pubsublite.proto.ListReservationsResponse; -import com.google.cloud.pubsublite.proto.ListSubscriptionsRequest; -import com.google.cloud.pubsublite.proto.ListSubscriptionsResponse; -import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest; -import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse; -import com.google.cloud.pubsublite.proto.ListTopicsRequest; -import com.google.cloud.pubsublite.proto.ListTopicsResponse; -import com.google.cloud.pubsublite.proto.Reservation; -import com.google.cloud.pubsublite.proto.SeekSubscriptionRequest; -import com.google.cloud.pubsublite.proto.Subscription; -import com.google.cloud.pubsublite.proto.Topic; -import com.google.cloud.pubsublite.proto.TopicPartitions; -import com.google.cloud.pubsublite.proto.UpdateReservationRequest; -import com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest; -import com.google.cloud.pubsublite.proto.UpdateTopicRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockAdminServiceImpl extends AdminServiceImplBase { - private List requests; - private Queue responses; - - public MockAdminServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void createTopic(CreateTopicRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Topic) { - requests.add(request); - responseObserver.onNext(((Topic) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateTopic, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Topic.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTopic(GetTopicRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Topic) { - requests.add(request); - responseObserver.onNext(((Topic) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetTopic, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Topic.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTopicPartitions( - GetTopicPartitionsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TopicPartitions) { - requests.add(request); - responseObserver.onNext(((TopicPartitions) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetTopicPartitions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TopicPartitions.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTopics( - ListTopicsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTopicsResponse) { - requests.add(request); - responseObserver.onNext(((ListTopicsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListTopics, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTopicsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTopic(UpdateTopicRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Topic) { - requests.add(request); - responseObserver.onNext(((Topic) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateTopic, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Topic.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTopic(DeleteTopicRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteTopic, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTopicSubscriptions( - ListTopicSubscriptionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTopicSubscriptionsResponse) { - requests.add(request); - responseObserver.onNext(((ListTopicSubscriptionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListTopicSubscriptions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTopicSubscriptionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createSubscription( - CreateSubscriptionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Subscription) { - requests.add(request); - responseObserver.onNext(((Subscription) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateSubscription, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Subscription.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getSubscription( - GetSubscriptionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Subscription) { - requests.add(request); - responseObserver.onNext(((Subscription) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetSubscription, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Subscription.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listSubscriptions( - ListSubscriptionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListSubscriptionsResponse) { - requests.add(request); - responseObserver.onNext(((ListSubscriptionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListSubscriptions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListSubscriptionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateSubscription( - UpdateSubscriptionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Subscription) { - requests.add(request); - responseObserver.onNext(((Subscription) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateSubscription, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Subscription.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteSubscription( - DeleteSubscriptionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteSubscription, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void seekSubscription( - SeekSubscriptionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SeekSubscription, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createReservation( - CreateReservationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Reservation) { - requests.add(request); - responseObserver.onNext(((Reservation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateReservation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Reservation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getReservation( - GetReservationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Reservation) { - requests.add(request); - responseObserver.onNext(((Reservation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetReservation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Reservation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listReservations( - ListReservationsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListReservationsResponse) { - requests.add(request); - responseObserver.onNext(((ListReservationsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListReservations, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListReservationsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateReservation( - UpdateReservationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Reservation) { - requests.add(request); - responseObserver.onNext(((Reservation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateReservation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Reservation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteReservation( - DeleteReservationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteReservation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listReservationTopics( - ListReservationTopicsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListReservationTopicsResponse) { - requests.add(request); - responseObserver.onNext(((ListReservationTopicsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListReservationTopics, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListReservationTopicsResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java deleted file mode 100644 index ce15f46bb..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCursorService implements MockGrpcService { - private final MockCursorServiceImpl serviceImpl; - - public MockCursorService() { - serviceImpl = new MockCursorServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java deleted file mode 100644 index bf9528f5d..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.pubsublite.proto.CommitCursorRequest; -import com.google.cloud.pubsublite.proto.CommitCursorResponse; -import com.google.cloud.pubsublite.proto.CursorServiceGrpc.CursorServiceImplBase; -import com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest; -import com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse; -import com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest; -import com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCursorServiceImpl extends CursorServiceImplBase { - private List requests; - private Queue responses; - - public MockCursorServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public StreamObserver streamingCommitCursor( - final StreamObserver responseObserver) { - StreamObserver requestObserver = - new StreamObserver() { - @Override - public void onNext(StreamingCommitCursorRequest value) { - requests.add(value); - final Object response = responses.remove(); - if (response instanceof StreamingCommitCursorResponse) { - responseObserver.onNext(((StreamingCommitCursorResponse) response)); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method StreamingCommitCursor, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - StreamingCommitCursorResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void onError(Throwable t) { - responseObserver.onError(t); - } - - @Override - public void onCompleted() { - responseObserver.onCompleted(); - } - }; - return requestObserver; - } - - @Override - public void commitCursor( - CommitCursorRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CommitCursorResponse) { - requests.add(request); - responseObserver.onNext(((CommitCursorResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CommitCursor, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CommitCursorResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listPartitionCursors( - ListPartitionCursorsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListPartitionCursorsResponse) { - requests.add(request); - responseObserver.onNext(((ListPartitionCursorsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListPartitionCursors, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListPartitionCursorsResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java deleted file mode 100644 index d32b38637..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockPartitionAssignmentService implements MockGrpcService { - private final MockPartitionAssignmentServiceImpl serviceImpl; - - public MockPartitionAssignmentService() { - serviceImpl = new MockPartitionAssignmentServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java deleted file mode 100644 index 3835281b3..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.pubsublite.proto.PartitionAssignment; -import com.google.cloud.pubsublite.proto.PartitionAssignmentRequest; -import com.google.cloud.pubsublite.proto.PartitionAssignmentServiceGrpc.PartitionAssignmentServiceImplBase; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockPartitionAssignmentServiceImpl extends PartitionAssignmentServiceImplBase { - private List requests; - private Queue responses; - - public MockPartitionAssignmentServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public StreamObserver assignPartitions( - final StreamObserver responseObserver) { - StreamObserver requestObserver = - new StreamObserver() { - @Override - public void onNext(PartitionAssignmentRequest value) { - requests.add(value); - final Object response = responses.remove(); - if (response instanceof PartitionAssignment) { - responseObserver.onNext(((PartitionAssignment) response)); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method AssignPartitions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PartitionAssignment.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void onError(Throwable t) { - responseObserver.onError(t); - } - - @Override - public void onCompleted() { - responseObserver.onCompleted(); - } - }; - return requestObserver; - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java deleted file mode 100644 index cb02abcb5..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockPublisherService implements MockGrpcService { - private final MockPublisherServiceImpl serviceImpl; - - public MockPublisherService() { - serviceImpl = new MockPublisherServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java deleted file mode 100644 index 128744137..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.pubsublite.proto.PublishRequest; -import com.google.cloud.pubsublite.proto.PublishResponse; -import com.google.cloud.pubsublite.proto.PublisherServiceGrpc.PublisherServiceImplBase; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockPublisherServiceImpl extends PublisherServiceImplBase { - private List requests; - private Queue responses; - - public MockPublisherServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public StreamObserver publish( - final StreamObserver responseObserver) { - StreamObserver requestObserver = - new StreamObserver() { - @Override - public void onNext(PublishRequest value) { - requests.add(value); - final Object response = responses.remove(); - if (response instanceof PublishResponse) { - responseObserver.onNext(((PublishResponse) response)); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method Publish, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PublishResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void onError(Throwable t) { - responseObserver.onError(t); - } - - @Override - public void onCompleted() { - responseObserver.onCompleted(); - } - }; - return requestObserver; - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java deleted file mode 100644 index 8daf5018d..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockSubscriberService implements MockGrpcService { - private final MockSubscriberServiceImpl serviceImpl; - - public MockSubscriberService() { - serviceImpl = new MockSubscriberServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java deleted file mode 100644 index 92489cd69..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.pubsublite.proto.SubscribeRequest; -import com.google.cloud.pubsublite.proto.SubscribeResponse; -import com.google.cloud.pubsublite.proto.SubscriberServiceGrpc.SubscriberServiceImplBase; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockSubscriberServiceImpl extends SubscriberServiceImplBase { - private List requests; - private Queue responses; - - public MockSubscriberServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public StreamObserver subscribe( - final StreamObserver responseObserver) { - StreamObserver requestObserver = - new StreamObserver() { - @Override - public void onNext(SubscribeRequest value) { - requests.add(value); - final Object response = responses.remove(); - if (response instanceof SubscribeResponse) { - responseObserver.onNext(((SubscribeResponse) response)); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method Subscribe, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SubscribeResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void onError(Throwable t) { - responseObserver.onError(t); - } - - @Override - public void onCompleted() { - responseObserver.onCompleted(); - } - }; - return requestObserver; - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java deleted file mode 100644 index 049c5df1b..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTopicStatsService implements MockGrpcService { - private final MockTopicStatsServiceImpl serviceImpl; - - public MockTopicStatsService() { - serviceImpl = new MockTopicStatsServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java deleted file mode 100644 index dfd0f10e7..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest; -import com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse; -import com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest; -import com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse; -import com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest; -import com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse; -import com.google.cloud.pubsublite.proto.TopicStatsServiceGrpc.TopicStatsServiceImplBase; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTopicStatsServiceImpl extends TopicStatsServiceImplBase { - private List requests; - private Queue responses; - - public MockTopicStatsServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void computeMessageStats( - ComputeMessageStatsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ComputeMessageStatsResponse) { - requests.add(request); - responseObserver.onNext(((ComputeMessageStatsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ComputeMessageStats, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ComputeMessageStatsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void computeHeadCursor( - ComputeHeadCursorRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ComputeHeadCursorResponse) { - requests.add(request); - responseObserver.onNext(((ComputeHeadCursorResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ComputeHeadCursor, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ComputeHeadCursorResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void computeTimeCursor( - ComputeTimeCursorRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ComputeTimeCursorResponse) { - requests.add(request); - responseObserver.onNext(((ComputeTimeCursorResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ComputeTimeCursor, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ComputeTimeCursorResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java deleted file mode 100644 index 1877f4e18..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.grpc.testing.MockStreamObserver; -import com.google.api.gax.rpc.ApiStreamObserver; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.cloud.pubsublite.proto.PartitionAssignment; -import com.google.cloud.pubsublite.proto.PartitionAssignmentRequest; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class PartitionAssignmentServiceClientTest { - private static MockPartitionAssignmentService mockPartitionAssignmentService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private PartitionAssignmentServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockPartitionAssignmentService = new MockPartitionAssignmentService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockPartitionAssignmentService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - PartitionAssignmentServiceSettings settings = - PartitionAssignmentServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PartitionAssignmentServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void assignPartitionsTest() throws Exception { - PartitionAssignment expectedResponse = - PartitionAssignment.newBuilder().addAllPartitions(new ArrayList()).build(); - mockPartitionAssignmentService.addResponse(expectedResponse); - PartitionAssignmentRequest request = PartitionAssignmentRequest.newBuilder().build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.assignPartitionsCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - requestObserver.onCompleted(); - - List actualResponses = responseObserver.future().get(); - Assert.assertEquals(1, actualResponses.size()); - Assert.assertEquals(expectedResponse, actualResponses.get(0)); - } - - @Test - public void assignPartitionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPartitionAssignmentService.addException(exception); - PartitionAssignmentRequest request = PartitionAssignmentRequest.newBuilder().build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.assignPartitionsCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - - try { - List actualResponses = responseObserver.future().get(); - Assert.fail("No exception thrown"); - } catch (ExecutionException e) { - Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java deleted file mode 100644 index 261118f70..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.grpc.testing.MockStreamObserver; -import com.google.api.gax.rpc.ApiStreamObserver; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.cloud.pubsublite.proto.PublishRequest; -import com.google.cloud.pubsublite.proto.PublishResponse; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class PublisherServiceClientTest { - private static MockPublisherService mockPublisherService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private PublisherServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockPublisherService = new MockPublisherService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockPublisherService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - PublisherServiceSettings settings = - PublisherServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PublisherServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void publishTest() throws Exception { - PublishResponse expectedResponse = PublishResponse.newBuilder().build(); - mockPublisherService.addResponse(expectedResponse); - PublishRequest request = PublishRequest.newBuilder().build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = client.publishCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - requestObserver.onCompleted(); - - List actualResponses = responseObserver.future().get(); - Assert.assertEquals(1, actualResponses.size()); - Assert.assertEquals(expectedResponse, actualResponses.get(0)); - } - - @Test - public void publishExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPublisherService.addException(exception); - PublishRequest request = PublishRequest.newBuilder().build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = client.publishCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - - try { - List actualResponses = responseObserver.future().get(); - Assert.fail("No exception thrown"); - } catch (ExecutionException e) { - Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java deleted file mode 100644 index b97ede8d3..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.grpc.testing.MockStreamObserver; -import com.google.api.gax.rpc.ApiStreamObserver; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.cloud.pubsublite.proto.SubscribeRequest; -import com.google.cloud.pubsublite.proto.SubscribeResponse; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class SubscriberServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockSubscriberService mockSubscriberService; - private LocalChannelProvider channelProvider; - private SubscriberServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockSubscriberService = new MockSubscriberService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockSubscriberService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - SubscriberServiceSettings settings = - SubscriberServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = SubscriberServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void subscribeTest() throws Exception { - SubscribeResponse expectedResponse = SubscribeResponse.newBuilder().build(); - mockSubscriberService.addResponse(expectedResponse); - SubscribeRequest request = SubscribeRequest.newBuilder().build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.subscribeCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - requestObserver.onCompleted(); - - List actualResponses = responseObserver.future().get(); - Assert.assertEquals(1, actualResponses.size()); - Assert.assertEquals(expectedResponse, actualResponses.get(0)); - } - - @Test - public void subscribeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockSubscriberService.addException(exception); - SubscribeRequest request = SubscribeRequest.newBuilder().build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.subscribeCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - - try { - List actualResponses = responseObserver.future().get(); - Assert.fail("No exception thrown"); - } catch (ExecutionException e) { - Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java deleted file mode 100644 index f6f287fb9..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * 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. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.cloud.pubsublite.v1; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest; -import com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse; -import com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest; -import com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse; -import com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest; -import com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse; -import com.google.cloud.pubsublite.proto.Cursor; -import com.google.cloud.pubsublite.proto.TimeTarget; -import com.google.cloud.pubsublite.proto.TopicName; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TopicStatsServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockTopicStatsService mockTopicStatsService; - private LocalChannelProvider channelProvider; - private TopicStatsServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockTopicStatsService = new MockTopicStatsService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockTopicStatsService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - TopicStatsServiceSettings settings = - TopicStatsServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TopicStatsServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void computeMessageStatsTest() throws Exception { - ComputeMessageStatsResponse expectedResponse = - ComputeMessageStatsResponse.newBuilder() - .setMessageCount(-1229303081) - .setMessageBytes(-1229929933) - .setMinimumPublishTime(Timestamp.newBuilder().build()) - .setMinimumEventTime(Timestamp.newBuilder().build()) - .build(); - mockTopicStatsService.addResponse(expectedResponse); - - ComputeMessageStatsRequest request = - ComputeMessageStatsRequest.newBuilder() - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartition(-1799810326) - .setStartCursor(Cursor.newBuilder().build()) - .setEndCursor(Cursor.newBuilder().build()) - .build(); - - ComputeMessageStatsResponse actualResponse = client.computeMessageStats(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTopicStatsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ComputeMessageStatsRequest actualRequest = ((ComputeMessageStatsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); - Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); - Assert.assertEquals(request.getStartCursor(), actualRequest.getStartCursor()); - Assert.assertEquals(request.getEndCursor(), actualRequest.getEndCursor()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void computeMessageStatsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTopicStatsService.addException(exception); - - try { - ComputeMessageStatsRequest request = - ComputeMessageStatsRequest.newBuilder() - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartition(-1799810326) - .setStartCursor(Cursor.newBuilder().build()) - .setEndCursor(Cursor.newBuilder().build()) - .build(); - client.computeMessageStats(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void computeHeadCursorTest() throws Exception { - ComputeHeadCursorResponse expectedResponse = - ComputeHeadCursorResponse.newBuilder().setHeadCursor(Cursor.newBuilder().build()).build(); - mockTopicStatsService.addResponse(expectedResponse); - - ComputeHeadCursorRequest request = - ComputeHeadCursorRequest.newBuilder() - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartition(-1799810326) - .build(); - - ComputeHeadCursorResponse actualResponse = client.computeHeadCursor(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTopicStatsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ComputeHeadCursorRequest actualRequest = ((ComputeHeadCursorRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); - Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void computeHeadCursorExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTopicStatsService.addException(exception); - - try { - ComputeHeadCursorRequest request = - ComputeHeadCursorRequest.newBuilder() - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartition(-1799810326) - .build(); - client.computeHeadCursor(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void computeTimeCursorTest() throws Exception { - ComputeTimeCursorResponse expectedResponse = - ComputeTimeCursorResponse.newBuilder().setCursor(Cursor.newBuilder().build()).build(); - mockTopicStatsService.addResponse(expectedResponse); - - ComputeTimeCursorRequest request = - ComputeTimeCursorRequest.newBuilder() - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartition(-1799810326) - .setTarget(TimeTarget.newBuilder().build()) - .build(); - - ComputeTimeCursorResponse actualResponse = client.computeTimeCursor(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTopicStatsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ComputeTimeCursorRequest actualRequest = ((ComputeTimeCursorRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); - Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); - Assert.assertEquals(request.getTarget(), actualRequest.getTarget()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void computeTimeCursorExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTopicStatsService.addException(exception); - - try { - ComputeTimeCursorRequest request = - ComputeTimeCursorRequest.newBuilder() - .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) - .setPartition(-1799810326) - .setTarget(TimeTarget.newBuilder().build()) - .build(); - client.computeTimeCursor(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java deleted file mode 100644 index abb71b7e9..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java +++ /dev/null @@ -1,1924 +0,0 @@ -package com.google.cloud.pubsublite.proto; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The service that a client application uses to manage topics and
- * subscriptions, such creating, listing, and deleting topics and subscriptions.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/pubsublite/v1/admin.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdminServiceGrpc { - - private AdminServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.AdminService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTopic", - requestType = com.google.cloud.pubsublite.proto.CreateTopicRequest.class, - responseType = com.google.cloud.pubsublite.proto.Topic.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateTopicMethod() { - io.grpc.MethodDescriptor getCreateTopicMethod; - if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.CreateTopicRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateTopic")) - .build(); - } - } - } - return getCreateTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTopic", - requestType = com.google.cloud.pubsublite.proto.GetTopicRequest.class, - responseType = com.google.cloud.pubsublite.proto.Topic.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTopicMethod() { - io.grpc.MethodDescriptor getGetTopicMethod; - if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.GetTopicRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetTopic")) - .build(); - } - } - } - return getGetTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTopicPartitionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTopicPartitions", - requestType = com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, - responseType = com.google.cloud.pubsublite.proto.TopicPartitions.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTopicPartitionsMethod() { - io.grpc.MethodDescriptor getGetTopicPartitionsMethod; - if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { - AdminServiceGrpc.getGetTopicPartitionsMethod = getGetTopicPartitionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopicPartitions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.TopicPartitions.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetTopicPartitions")) - .build(); - } - } - } - return getGetTopicPartitionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTopicsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTopics", - requestType = com.google.cloud.pubsublite.proto.ListTopicsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListTopicsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTopicsMethod() { - io.grpc.MethodDescriptor getListTopicsMethod; - if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListTopicsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListTopics")) - .build(); - } - } - } - return getListTopicsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTopic", - requestType = com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, - responseType = com.google.cloud.pubsublite.proto.Topic.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateTopicMethod() { - io.grpc.MethodDescriptor getUpdateTopicMethod; - if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.UpdateTopicRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateTopic")) - .build(); - } - } - } - return getUpdateTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTopic", - requestType = com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteTopicMethod() { - io.grpc.MethodDescriptor getDeleteTopicMethod; - if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.DeleteTopicRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteTopic")) - .build(); - } - } - } - return getDeleteTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTopicSubscriptionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions", - requestType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTopicSubscriptionsMethod() { - io.grpc.MethodDescriptor getListTopicSubscriptionsMethod; - if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListTopicSubscriptions")) - .build(); - } - } - } - return getListTopicSubscriptionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSubscription", - requestType = com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, - responseType = com.google.cloud.pubsublite.proto.Subscription.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSubscriptionMethod() { - io.grpc.MethodDescriptor getCreateSubscriptionMethod; - if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.CreateSubscriptionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateSubscription")) - .build(); - } - } - } - return getCreateSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSubscription", - requestType = com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, - responseType = com.google.cloud.pubsublite.proto.Subscription.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSubscriptionMethod() { - io.grpc.MethodDescriptor getGetSubscriptionMethod; - if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.GetSubscriptionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetSubscription")) - .build(); - } - } - } - return getGetSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSubscriptionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSubscriptions", - requestType = com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSubscriptionsMethod() { - io.grpc.MethodDescriptor getListSubscriptionsMethod; - if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListSubscriptions")) - .build(); - } - } - } - return getListSubscriptionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSubscription", - requestType = com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, - responseType = com.google.cloud.pubsublite.proto.Subscription.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSubscriptionMethod() { - io.grpc.MethodDescriptor getUpdateSubscriptionMethod; - if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.UpdateSubscriptionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateSubscription")) - .build(); - } - } - } - return getUpdateSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSubscription", - requestType = com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSubscriptionMethod() { - io.grpc.MethodDescriptor getDeleteSubscriptionMethod; - if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { - AdminServiceGrpc.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.cloud.pubsublite.proto.DeleteSubscriptionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteSubscription")) - .build(); - } - } - } - return getDeleteSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor getSeekSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SeekSubscription", - requestType = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSeekSubscriptionMethod() { - io.grpc.MethodDescriptor getSeekSubscriptionMethod; - if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { - AdminServiceGrpc.getSeekSubscriptionMethod = getSeekSubscriptionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SeekSubscription")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("SeekSubscription")) - .build(); - } - } - } - return getSeekSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateReservation", - requestType = com.google.cloud.pubsublite.proto.CreateReservationRequest.class, - responseType = com.google.cloud.pubsublite.proto.Reservation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateReservationMethod() { - io.grpc.MethodDescriptor getCreateReservationMethod; - if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { - AdminServiceGrpc.getCreateReservationMethod = getCreateReservationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CreateReservationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateReservation")) - .build(); - } - } - } - return getCreateReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetReservation", - requestType = com.google.cloud.pubsublite.proto.GetReservationRequest.class, - responseType = com.google.cloud.pubsublite.proto.Reservation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetReservationMethod() { - io.grpc.MethodDescriptor getGetReservationMethod; - if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { - AdminServiceGrpc.getGetReservationMethod = getGetReservationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.GetReservationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetReservation")) - .build(); - } - } - } - return getGetReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor getListReservationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListReservations", - requestType = com.google.cloud.pubsublite.proto.ListReservationsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListReservationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListReservationsMethod() { - io.grpc.MethodDescriptor getListReservationsMethod; - if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { - AdminServiceGrpc.getListReservationsMethod = getListReservationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListReservations")) - .build(); - } - } - } - return getListReservationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateReservation", - requestType = com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, - responseType = com.google.cloud.pubsublite.proto.Reservation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateReservationMethod() { - io.grpc.MethodDescriptor getUpdateReservationMethod; - if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { - AdminServiceGrpc.getUpdateReservationMethod = getUpdateReservationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.UpdateReservationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateReservation")) - .build(); - } - } - } - return getUpdateReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteReservation", - requestType = com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteReservationMethod() { - io.grpc.MethodDescriptor getDeleteReservationMethod; - if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { - AdminServiceGrpc.getDeleteReservationMethod = getDeleteReservationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.DeleteReservationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteReservation")) - .build(); - } - } - } - return getDeleteReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor getListReservationTopicsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListReservationTopics", - requestType = com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListReservationTopicsMethod() { - io.grpc.MethodDescriptor getListReservationTopicsMethod; - if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) == null) { - AdminServiceGrpc.getListReservationTopicsMethod = getListReservationTopicsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservationTopics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListReservationTopics")) - .build(); - } - } - } - return getListReservationTopicsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AdminServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdminServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceStub(channel, callOptions); - } - }; - return AdminServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdminServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdminServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceBlockingStub(channel, callOptions); - } - }; - return AdminServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AdminServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdminServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceFutureStub(channel, callOptions); - } - }; - return AdminServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static abstract class AdminServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new topic.
-     * 
- */ - public void createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); - } - - /** - *
-     * Returns the topic configuration.
-     * 
- */ - public void getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); - } - - /** - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public void getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicPartitionsMethod(), responseObserver); - } - - /** - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public void listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); - } - - /** - *
-     * Updates properties of the specified topic.
-     * 
- */ - public void updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTopicMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified topic.
-     * 
- */ - public void deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTopicMethod(), responseObserver); - } - - /** - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public void listTopicSubscriptions(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethod(), responseObserver); - } - - /** - *
-     * Creates a new subscription.
-     * 
- */ - public void createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSubscriptionMethod(), responseObserver); - } - - /** - *
-     * Returns the subscription configuration.
-     * 
- */ - public void getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSubscriptionMethod(), responseObserver); - } - - /** - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public void listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSubscriptionsMethod(), responseObserver); - } - - /** - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public void updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSubscriptionMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified subscription.
-     * 
- */ - public void deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSubscriptionMethod(), responseObserver); - } - - /** - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public void seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSeekSubscriptionMethod(), responseObserver); - } - - /** - *
-     * Creates a new reservation.
-     * 
- */ - public void createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReservationMethod(), responseObserver); - } - - /** - *
-     * Returns the reservation configuration.
-     * 
- */ - public void getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReservationMethod(), responseObserver); - } - - /** - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public void listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReservationsMethod(), responseObserver); - } - - /** - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public void updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateReservationMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified reservation.
-     * 
- */ - public void deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteReservationMethod(), responseObserver); - } - - /** - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public void listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReservationTopicsMethod(), responseObserver); - } - - @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.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>( - this, METHODID_CREATE_TOPIC))) - .addMethod( - getGetTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic>( - this, METHODID_GET_TOPIC))) - .addMethod( - getGetTopicPartitionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions>( - this, METHODID_GET_TOPIC_PARTITIONS))) - .addMethod( - getListTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListTopicsRequest, - com.google.cloud.pubsublite.proto.ListTopicsResponse>( - this, METHODID_LIST_TOPICS))) - .addMethod( - getUpdateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>( - this, METHODID_UPDATE_TOPIC))) - .addMethod( - getDeleteTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_TOPIC))) - .addMethod( - getListTopicSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( - this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) - .addMethod( - getCreateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - this, METHODID_CREATE_SUBSCRIPTION))) - .addMethod( - getGetSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - this, METHODID_GET_SUBSCRIPTION))) - .addMethod( - getListSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( - this, METHODID_LIST_SUBSCRIPTIONS))) - .addMethod( - getUpdateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - this, METHODID_UPDATE_SUBSCRIPTION))) - .addMethod( - getDeleteSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SUBSCRIPTION))) - .addMethod( - getSeekSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation>( - this, METHODID_SEEK_SUBSCRIPTION))) - .addMethod( - getCreateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - this, METHODID_CREATE_RESERVATION))) - .addMethod( - getGetReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - this, METHODID_GET_RESERVATION))) - .addMethod( - getListReservationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse>( - this, METHODID_LIST_RESERVATIONS))) - .addMethod( - getUpdateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - this, METHODID_UPDATE_RESERVATION))) - .addMethod( - getDeleteReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_RESERVATION))) - .addMethod( - getListReservationTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( - this, METHODID_LIST_RESERVATION_TOPICS))) - .build(); - } - } - - /** - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static final class AdminServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AdminServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdminServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a new topic.
-     * 
- */ - public void createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the topic configuration.
-     * 
- */ - public void getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public void getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public void listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates properties of the specified topic.
-     * 
- */ - public void updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified topic.
-     * 
- */ - public void deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public void listTopicSubscriptions(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new subscription.
-     * 
- */ - public void createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the subscription configuration.
-     * 
- */ - public void getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public void listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public void updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified subscription.
-     * 
- */ - public void deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public void seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new reservation.
-     * 
- */ - public void createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReservationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the reservation configuration.
-     * 
- */ - public void getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReservationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public void listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReservationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public void updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified reservation.
-     * 
- */ - public void deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public void listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static final class AdminServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AdminServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdminServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Topic createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTopicMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the topic configuration.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Topic getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTopicMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.TopicPartitions getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTopicPartitionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListTopicsResponse listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTopicsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates properties of the specified topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Topic updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTopicMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified topic.
-     * 
- */ - public com.google.protobuf.Empty deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTopicMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new subscription.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Subscription createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the subscription configuration.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Subscription getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Subscription updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified subscription.
-     * 
- */ - public com.google.protobuf.Empty deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public com.google.longrunning.Operation seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSeekSubscriptionMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new reservation.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Reservation createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateReservationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the reservation configuration.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Reservation getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetReservationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListReservationsResponse listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReservationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Reservation updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateReservationMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified reservation.
-     * 
- */ - public com.google.protobuf.Empty deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteReservationMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReservationTopicsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static final class AdminServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AdminServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdminServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createTopic( - com.google.cloud.pubsublite.proto.CreateTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the topic configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTopic( - com.google.cloud.pubsublite.proto.GetTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTopicMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTopicPartitions( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTopics( - com.google.cloud.pubsublite.proto.ListTopicsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates properties of the specified topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateTopic( - com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteTopic( - com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSubscription( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the subscription configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSubscription( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSubscriptions( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSubscription( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSubscription( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request); - } - - /** - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture seekSubscription( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createReservation( - com.google.cloud.pubsublite.proto.CreateReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateReservationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the reservation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getReservation( - com.google.cloud.pubsublite.proto.GetReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetReservationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listReservations( - com.google.cloud.pubsublite.proto.ListReservationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListReservationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateReservation( - com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteReservation( - com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_TOPIC = 0; - private static final int METHODID_GET_TOPIC = 1; - private static final int METHODID_GET_TOPIC_PARTITIONS = 2; - private static final int METHODID_LIST_TOPICS = 3; - private static final int METHODID_UPDATE_TOPIC = 4; - private static final int METHODID_DELETE_TOPIC = 5; - private static final int METHODID_LIST_TOPIC_SUBSCRIPTIONS = 6; - private static final int METHODID_CREATE_SUBSCRIPTION = 7; - private static final int METHODID_GET_SUBSCRIPTION = 8; - private static final int METHODID_LIST_SUBSCRIPTIONS = 9; - private static final int METHODID_UPDATE_SUBSCRIPTION = 10; - private static final int METHODID_DELETE_SUBSCRIPTION = 11; - private static final int METHODID_SEEK_SUBSCRIPTION = 12; - private static final int METHODID_CREATE_RESERVATION = 13; - private static final int METHODID_GET_RESERVATION = 14; - private static final int METHODID_LIST_RESERVATIONS = 15; - private static final int METHODID_UPDATE_RESERVATION = 16; - private static final int METHODID_DELETE_RESERVATION = 17; - private static final int METHODID_LIST_RESERVATION_TOPICS = 18; - - 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 AdminServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdminServiceImplBase 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_TOPIC: - serviceImpl.createTopic((com.google.cloud.pubsublite.proto.CreateTopicRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TOPIC: - serviceImpl.getTopic((com.google.cloud.pubsublite.proto.GetTopicRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TOPIC_PARTITIONS: - serviceImpl.getTopicPartitions((com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TOPICS: - serviceImpl.listTopics((com.google.cloud.pubsublite.proto.ListTopicsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_TOPIC: - serviceImpl.updateTopic((com.google.cloud.pubsublite.proto.UpdateTopicRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_TOPIC: - serviceImpl.deleteTopic((com.google.cloud.pubsublite.proto.DeleteTopicRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TOPIC_SUBSCRIPTIONS: - serviceImpl.listTopicSubscriptions((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SUBSCRIPTION: - serviceImpl.createSubscription((com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SUBSCRIPTION: - serviceImpl.getSubscription((com.google.cloud.pubsublite.proto.GetSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SUBSCRIPTIONS: - serviceImpl.listSubscriptions((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SUBSCRIPTION: - serviceImpl.updateSubscription((com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SUBSCRIPTION: - serviceImpl.deleteSubscription((com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEEK_SUBSCRIPTION: - serviceImpl.seekSubscription((com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_RESERVATION: - serviceImpl.createReservation((com.google.cloud.pubsublite.proto.CreateReservationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RESERVATION: - serviceImpl.getReservation((com.google.cloud.pubsublite.proto.GetReservationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RESERVATIONS: - serviceImpl.listReservations((com.google.cloud.pubsublite.proto.ListReservationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_RESERVATION: - serviceImpl.updateReservation((com.google.cloud.pubsublite.proto.UpdateReservationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RESERVATION: - serviceImpl.deleteReservation((com.google.cloud.pubsublite.proto.DeleteReservationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RESERVATION_TOPICS: - serviceImpl.listReservationTopics((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) 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 AdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdminServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AdminService"); - } - } - - private static final class AdminServiceFileDescriptorSupplier - extends AdminServiceBaseDescriptorSupplier { - AdminServiceFileDescriptorSupplier() {} - } - - private static final class AdminServiceMethodDescriptorSupplier - extends AdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdminServiceMethodDescriptorSupplier(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 (AdminServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdminServiceFileDescriptorSupplier()) - .addMethod(getCreateTopicMethod()) - .addMethod(getGetTopicMethod()) - .addMethod(getGetTopicPartitionsMethod()) - .addMethod(getListTopicsMethod()) - .addMethod(getUpdateTopicMethod()) - .addMethod(getDeleteTopicMethod()) - .addMethod(getListTopicSubscriptionsMethod()) - .addMethod(getCreateSubscriptionMethod()) - .addMethod(getGetSubscriptionMethod()) - .addMethod(getListSubscriptionsMethod()) - .addMethod(getUpdateSubscriptionMethod()) - .addMethod(getDeleteSubscriptionMethod()) - .addMethod(getSeekSubscriptionMethod()) - .addMethod(getCreateReservationMethod()) - .addMethod(getGetReservationMethod()) - .addMethod(getListReservationsMethod()) - .addMethod(getUpdateReservationMethod()) - .addMethod(getDeleteReservationMethod()) - .addMethod(getListReservationTopicsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java deleted file mode 100644 index 25dd459e0..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java +++ /dev/null @@ -1,463 +0,0 @@ -package com.google.cloud.pubsublite.proto; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The service that a subscriber client application uses to manage committed
- * cursors while receiving messsages. A cursor represents a subscriber's
- * progress within a topic partition for a given subscription.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/pubsublite/v1/cursor.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CursorServiceGrpc { - - private CursorServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.CursorService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getStreamingCommitCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingCommitCursor", - requestType = com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamingCommitCursorMethod() { - io.grpc.MethodDescriptor getStreamingCommitCursorMethod; - if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) == null) { - synchronized (CursorServiceGrpc.class) { - if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) == null) { - CursorServiceGrpc.getStreamingCommitCursorMethod = getStreamingCommitCursorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingCommitCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance())) - .setSchemaDescriptor(new CursorServiceMethodDescriptorSupplier("StreamingCommitCursor")) - .build(); - } - } - } - return getStreamingCommitCursorMethod; - } - - private static volatile io.grpc.MethodDescriptor getCommitCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CommitCursor", - requestType = com.google.cloud.pubsublite.proto.CommitCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.CommitCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCommitCursorMethod() { - io.grpc.MethodDescriptor getCommitCursorMethod; - if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { - synchronized (CursorServiceGrpc.class) { - if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { - CursorServiceGrpc.getCommitCursorMethod = getCommitCursorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CommitCursorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CommitCursorResponse.getDefaultInstance())) - .setSchemaDescriptor(new CursorServiceMethodDescriptorSupplier("CommitCursor")) - .build(); - } - } - } - return getCommitCursorMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPartitionCursorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPartitionCursors", - requestType = com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPartitionCursorsMethod() { - io.grpc.MethodDescriptor getListPartitionCursorsMethod; - if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) == null) { - synchronized (CursorServiceGrpc.class) { - if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) == null) { - CursorServiceGrpc.getListPartitionCursorsMethod = getListPartitionCursorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPartitionCursors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CursorServiceMethodDescriptorSupplier("ListPartitionCursors")) - .build(); - } - } - } - return getListPartitionCursorsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CursorServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CursorServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceStub(channel, callOptions); - } - }; - return CursorServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CursorServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CursorServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceBlockingStub(channel, callOptions); - } - }; - return CursorServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CursorServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CursorServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceFutureStub(channel, callOptions); - } - }; - return CursorServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static abstract class CursorServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Establishes a stream with the server for managing committed cursors.
-     * 
- */ - public io.grpc.stub.StreamObserver streamingCommitCursor( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingCommitCursorMethod(), responseObserver); - } - - /** - *
-     * Updates the committed cursor.
-     * 
- */ - public void commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCommitCursorMethod(), responseObserver); - } - - /** - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public void listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPartitionCursorsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getStreamingCommitCursorMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse>( - this, METHODID_STREAMING_COMMIT_CURSOR))) - .addMethod( - getCommitCursorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CommitCursorRequest, - com.google.cloud.pubsublite.proto.CommitCursorResponse>( - this, METHODID_COMMIT_CURSOR))) - .addMethod( - getListPartitionCursorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( - this, METHODID_LIST_PARTITION_CURSORS))) - .build(); - } - } - - /** - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static final class CursorServiceStub extends io.grpc.stub.AbstractAsyncStub { - private CursorServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CursorServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceStub(channel, callOptions); - } - - /** - *
-     * Establishes a stream with the server for managing committed cursors.
-     * 
- */ - public io.grpc.stub.StreamObserver streamingCommitCursor( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingCommitCursorMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * Updates the committed cursor.
-     * 
- */ - public void commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCommitCursorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public void listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static final class CursorServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CursorServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CursorServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Updates the committed cursor.
-     * 
- */ - public com.google.cloud.pubsublite.proto.CommitCursorResponse commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCommitCursorMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPartitionCursorsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static final class CursorServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private CursorServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CursorServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Updates the committed cursor.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture commitCursor( - com.google.cloud.pubsublite.proto.CommitCursorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCommitCursorMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_COMMIT_CURSOR = 0; - private static final int METHODID_LIST_PARTITION_CURSORS = 1; - private static final int METHODID_STREAMING_COMMIT_CURSOR = 2; - - 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 CursorServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CursorServiceImplBase 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_COMMIT_CURSOR: - serviceImpl.commitCursor((com.google.cloud.pubsublite.proto.CommitCursorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PARTITION_CURSORS: - serviceImpl.listPartitionCursors((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) 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) { - case METHODID_STREAMING_COMMIT_CURSOR: - return (io.grpc.stub.StreamObserver) serviceImpl.streamingCommitCursor( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class CursorServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CursorServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CursorService"); - } - } - - private static final class CursorServiceFileDescriptorSupplier - extends CursorServiceBaseDescriptorSupplier { - CursorServiceFileDescriptorSupplier() {} - } - - private static final class CursorServiceMethodDescriptorSupplier - extends CursorServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CursorServiceMethodDescriptorSupplier(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 (CursorServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CursorServiceFileDescriptorSupplier()) - .addMethod(getStreamingCommitCursorMethod()) - .addMethod(getCommitCursorMethod()) - .addMethod(getListPartitionCursorsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java deleted file mode 100644 index 3cf4df969..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java +++ /dev/null @@ -1,503 +0,0 @@ -package com.google.cloud.pubsublite.proto; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * This service allows users to get stats about messages in their topic.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/pubsublite/v1/topic_stats.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TopicStatsServiceGrpc { - - private TopicStatsServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.pubsublite.v1.TopicStatsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getComputeMessageStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeMessageStats", - requestType = com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getComputeMessageStatsMethod() { - io.grpc.MethodDescriptor getComputeMessageStatsMethod; - if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) == null) { - synchronized (TopicStatsServiceGrpc.class) { - if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) == null) { - TopicStatsServiceGrpc.getComputeMessageStatsMethod = getComputeMessageStatsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeMessageStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TopicStatsServiceMethodDescriptorSupplier("ComputeMessageStats")) - .build(); - } - } - } - return getComputeMessageStatsMethod; - } - - private static volatile io.grpc.MethodDescriptor getComputeHeadCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeHeadCursor", - requestType = com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getComputeHeadCursorMethod() { - io.grpc.MethodDescriptor getComputeHeadCursorMethod; - if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) == null) { - synchronized (TopicStatsServiceGrpc.class) { - if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) == null) { - TopicStatsServiceGrpc.getComputeHeadCursorMethod = getComputeHeadCursorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeHeadCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.getDefaultInstance())) - .setSchemaDescriptor(new TopicStatsServiceMethodDescriptorSupplier("ComputeHeadCursor")) - .build(); - } - } - } - return getComputeHeadCursorMethod; - } - - private static volatile io.grpc.MethodDescriptor getComputeTimeCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeTimeCursor", - requestType = com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getComputeTimeCursorMethod() { - io.grpc.MethodDescriptor getComputeTimeCursorMethod; - if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) == null) { - synchronized (TopicStatsServiceGrpc.class) { - if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) == null) { - TopicStatsServiceGrpc.getComputeTimeCursorMethod = getComputeTimeCursorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeTimeCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.getDefaultInstance())) - .setSchemaDescriptor(new TopicStatsServiceMethodDescriptorSupplier("ComputeTimeCursor")) - .build(); - } - } - } - return getComputeTimeCursorMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TopicStatsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TopicStatsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceStub(channel, callOptions); - } - }; - return TopicStatsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TopicStatsServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TopicStatsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceBlockingStub(channel, callOptions); - } - }; - return TopicStatsServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TopicStatsServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TopicStatsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceFutureStub(channel, callOptions); - } - }; - return TopicStatsServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static abstract class TopicStatsServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public void computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeMessageStatsMethod(), responseObserver); - } - - /** - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public void computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeHeadCursorMethod(), responseObserver); - } - - /** - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public void computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeTimeCursorMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getComputeMessageStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse>( - this, METHODID_COMPUTE_MESSAGE_STATS))) - .addMethod( - getComputeHeadCursorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse>( - this, METHODID_COMPUTE_HEAD_CURSOR))) - .addMethod( - getComputeTimeCursorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse>( - this, METHODID_COMPUTE_TIME_CURSOR))) - .build(); - } - } - - /** - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static final class TopicStatsServiceStub extends io.grpc.stub.AbstractAsyncStub { - private TopicStatsServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TopicStatsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceStub(channel, callOptions); - } - - /** - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public void computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public void computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public void computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static final class TopicStatsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private TopicStatsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TopicStatsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeMessageStatsMethod(), getCallOptions(), request); - } - - /** - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeHeadCursorMethod(), getCallOptions(), request); - } - - /** - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeTimeCursorMethod(), getCallOptions(), request); - } - } - - /** - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static final class TopicStatsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private TopicStatsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TopicStatsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture computeMessageStats( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), request); - } - - /** - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture computeHeadCursor( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), request); - } - - /** - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture computeTimeCursor( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_COMPUTE_MESSAGE_STATS = 0; - private static final int METHODID_COMPUTE_HEAD_CURSOR = 1; - private static final int METHODID_COMPUTE_TIME_CURSOR = 2; - - 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 TopicStatsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TopicStatsServiceImplBase 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_COMPUTE_MESSAGE_STATS: - serviceImpl.computeMessageStats((com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMPUTE_HEAD_CURSOR: - serviceImpl.computeHeadCursor((com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMPUTE_TIME_CURSOR: - serviceImpl.computeTimeCursor((com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) 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 TopicStatsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TopicStatsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TopicStatsService"); - } - } - - private static final class TopicStatsServiceFileDescriptorSupplier - extends TopicStatsServiceBaseDescriptorSupplier { - TopicStatsServiceFileDescriptorSupplier() {} - } - - private static final class TopicStatsServiceMethodDescriptorSupplier - extends TopicStatsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TopicStatsServiceMethodDescriptorSupplier(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 (TopicStatsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TopicStatsServiceFileDescriptorSupplier()) - .addMethod(getComputeMessageStatsMethod()) - .addMethod(getComputeHeadCursorMethod()) - .addMethod(getComputeTimeCursorMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java deleted file mode 100644 index 0a1ac9a44..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java +++ /dev/null @@ -1,553 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public final class AdminProto { - private AdminProto() {} - 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_cloud_pubsublite_v1_CreateTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_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&google/cloud/pubsublite/v1/admin.proto" + - "\022\032google.cloud.pubsublite.v1\032\034google/api" + - "/annotations.proto\032\027google/api/client.pr" + - "oto\032\037google/api/field_behavior.proto\032\031go" + - "ogle/api/resource.proto\032\'google/cloud/pu" + - "bsublite/v1/common.proto\032#google/longrun" + - "ning/operations.proto\032\033google/protobuf/e" + - "mpty.proto\032 google/protobuf/field_mask.p" + - "roto\032\037google/protobuf/timestamp.proto\"\235\001" + - "\n\022CreateTopicRequest\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "5\n\005topic\030\002 \001(\0132!.google.cloud.pubsublite" + - ".v1.TopicB\003\340A\002\022\025\n\010topic_id\030\003 \001(\tB\003\340A\002\"H\n" + - "\017GetTopicRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" + - "pubsublite.googleapis.com/Topic\"R\n\031GetTo" + - "picPartitionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" + - "A!\n\037pubsublite.googleapis.com/Topic\"*\n\017T" + - "opicPartitions\022\027\n\017partition_count\030\001 \001(\003\"" + - "u\n\021ListTopicsRequest\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"`" + - "\n\022ListTopicsResponse\0221\n\006topics\030\001 \003(\0132!.g" + - "oogle.cloud.pubsublite.v1.Topic\022\027\n\017next_" + - "page_token\030\002 \001(\t\"\201\001\n\022UpdateTopicRequest\022" + - "5\n\005topic\030\001 \001(\0132!.google.cloud.pubsublite" + - ".v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + - "ogle.protobuf.FieldMaskB\003\340A\002\"K\n\022DeleteTo" + - "picRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037pubsub" + - "lite.googleapis.com/Topic\"}\n\035ListTopicSu" + - "bscriptionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" + - "\n\037pubsublite.googleapis.com/Topic\022\021\n\tpag" + - "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036List" + - "TopicSubscriptionsResponse\022\025\n\rsubscripti" + - "ons\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\317\001\n\031C" + - "reateSubscriptionRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022C\n\014subscription\030\002 \001(\0132(.google.cloud" + - ".pubsublite.v1.SubscriptionB\003\340A\002\022\034\n\017subs" + - "cription_id\030\003 \001(\tB\003\340A\002\022\024\n\014skip_backlog\030\004" + - " \001(\010\"V\n\026GetSubscriptionRequest\022<\n\004name\030\001" + - " \001(\tB.\340A\002\372A(\n&pubsublite.googleapis.com/" + - "Subscription\"|\n\030ListSubscriptionsRequest" + - "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + - "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + - "\n\npage_token\030\003 \001(\t\"u\n\031ListSubscriptionsR" + - "esponse\022?\n\rsubscriptions\030\001 \003(\0132(.google." + - "cloud.pubsublite.v1.Subscription\022\027\n\017next" + - "_page_token\030\002 \001(\t\"\226\001\n\031UpdateSubscription" + - "Request\022C\n\014subscription\030\001 \001(\0132(.google.c" + - "loud.pubsublite.v1.SubscriptionB\003\340A\002\0224\n\013" + - "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + - "dMaskB\003\340A\002\"Y\n\031DeleteSubscriptionRequest\022" + - "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.google" + - "apis.com/Subscription\"\272\002\n\027SeekSubscripti" + - "onRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsubl" + - "ite.googleapis.com/Subscription\022W\n\014named" + - "_target\030\002 \001(\0162?.google.cloud.pubsublite." + - "v1.SeekSubscriptionRequest.NamedTargetH\000" + - "\022=\n\013time_target\030\003 \001(\0132&.google.cloud.pub" + - "sublite.v1.TimeTargetH\000\"?\n\013NamedTarget\022\034" + - "\n\030NAMED_TARGET_UNSPECIFIED\020\000\022\010\n\004TAIL\020\001\022\010" + - "\n\004HEAD\020\002B\010\n\006target\"\032\n\030SeekSubscriptionRe" + - "sponse\"\220\001\n\021OperationMetadata\022/\n\013create_t" + - "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + - "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + - "amp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\"\265\001\n\030Cr" + - "eateReservationRequest\0229\n\006parent\030\001 \001(\tB)" + - "\340A\002\372A#\n!locations.googleapis.com/Locatio" + - "n\022A\n\013reservation\030\002 \001(\0132\'.google.cloud.pu" + - "bsublite.v1.ReservationB\003\340A\002\022\033\n\016reservat" + - "ion_id\030\003 \001(\tB\003\340A\002\"T\n\025GetReservationReque" + - "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + - "gleapis.com/Reservation\"{\n\027ListReservati" + - "onsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + - "tions.googleapis.com/Location\022\021\n\tpage_si" + - "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n\030ListRese" + - "rvationsResponse\022=\n\014reservations\030\001 \003(\0132\'" + - ".google.cloud.pubsublite.v1.Reservation\022" + - "\027\n\017next_page_token\030\002 \001(\t\"\223\001\n\030UpdateReser" + - "vationRequest\022A\n\013reservation\030\001 \001(\0132\'.goo" + - "gle.cloud.pubsublite.v1.ReservationB\003\340A\002" + - "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + - "FieldMaskB\003\340A\002\"W\n\030DeleteReservationReque" + - "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + - "gleapis.com/Reservation\"\202\001\n\034ListReservat" + - "ionTopicsRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + - "pubsublite.googleapis.com/Reservation\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035" + - "ListReservationTopicsResponse\022\016\n\006topics\030" + - "\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\257\036\n\014Admin" + - "Service\022\271\001\n\013CreateTopic\022..google.cloud.p" + - "ubsublite.v1.CreateTopicRequest\032!.google" + - ".cloud.pubsublite.v1.Topic\"W\202\323\344\223\0029\"0/v1/" + - "admin/{parent=projects/*/locations/*}/to" + - "pics:\005topic\332A\025parent,topic,topic_id\022\233\001\n\010" + - "GetTopic\022+.google.cloud.pubsublite.v1.Ge" + - "tTopicRequest\032!.google.cloud.pubsublite." + - "v1.Topic\"?\202\323\344\223\0022\0220/v1/admin/{name=projec" + - "ts/*/locations/*/topics/*}\332A\004name\022\304\001\n\022Ge" + - "tTopicPartitions\0225.google.cloud.pubsubli" + - "te.v1.GetTopicPartitionsRequest\032+.google" + - ".cloud.pubsublite.v1.TopicPartitions\"J\202\323" + - "\344\223\002=\022;/v1/admin/{name=projects/*/locatio" + - "ns/*/topics/*}/partitions\332A\004name\022\256\001\n\nLis" + - "tTopics\022-.google.cloud.pubsublite.v1.Lis" + - "tTopicsRequest\032..google.cloud.pubsublite" + - ".v1.ListTopicsResponse\"A\202\323\344\223\0022\0220/v1/admi" + - "n/{parent=projects/*/locations/*}/topics" + - "\332A\006parent\022\273\001\n\013UpdateTopic\022..google.cloud" + - ".pubsublite.v1.UpdateTopicRequest\032!.goog" + - "le.cloud.pubsublite.v1.Topic\"Y\202\323\344\223\002?26/v" + - "1/admin/{topic.name=projects/*/locations" + - "/*/topics/*}:\005topic\332A\021topic,update_mask\022" + - "\226\001\n\013DeleteTopic\022..google.cloud.pubsublit" + - "e.v1.DeleteTopicRequest\032\026.google.protobu" + - "f.Empty\"?\202\323\344\223\0022*0/v1/admin/{name=project" + - "s/*/locations/*/topics/*}\332A\004name\022\336\001\n\026Lis" + - "tTopicSubscriptions\0229.google.cloud.pubsu" + - "blite.v1.ListTopicSubscriptionsRequest\032:" + - ".google.cloud.pubsublite.v1.ListTopicSub" + - "scriptionsResponse\"M\202\323\344\223\002@\022>/v1/admin/{n" + - "ame=projects/*/locations/*/topics/*}/sub" + - "scriptions\332A\004name\022\352\001\n\022CreateSubscription" + - "\0225.google.cloud.pubsublite.v1.CreateSubs" + - "criptionRequest\032(.google.cloud.pubsublit" + - "e.v1.Subscription\"s\202\323\344\223\002G\"7/v1/admin/{pa" + - "rent=projects/*/locations/*}/subscriptio" + - "ns:\014subscription\332A#parent,subscription,s" + - "ubscription_id\022\267\001\n\017GetSubscription\0222.goo" + - "gle.cloud.pubsublite.v1.GetSubscriptionR" + - "equest\032(.google.cloud.pubsublite.v1.Subs" + - "cription\"F\202\323\344\223\0029\0227/v1/admin/{name=projec" + - "ts/*/locations/*/subscriptions/*}\332A\004name" + - "\022\312\001\n\021ListSubscriptions\0224.google.cloud.pu" + - "bsublite.v1.ListSubscriptionsRequest\0325.g" + - "oogle.cloud.pubsublite.v1.ListSubscripti" + - "onsResponse\"H\202\323\344\223\0029\0227/v1/admin/{parent=p" + - "rojects/*/locations/*}/subscriptions\332A\006p" + - "arent\022\354\001\n\022UpdateSubscription\0225.google.cl" + - "oud.pubsublite.v1.UpdateSubscriptionRequ" + - "est\032(.google.cloud.pubsublite.v1.Subscri" + - "ption\"u\202\323\344\223\002T2D/v1/admin/{subscription.n" + - "ame=projects/*/locations/*/subscriptions" + - "/*}:\014subscription\332A\030subscription,update_" + - "mask\022\253\001\n\022DeleteSubscription\0225.google.clo" + - "ud.pubsublite.v1.DeleteSubscriptionReque" + - "st\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v1/" + - "admin/{name=projects/*/locations/*/subsc" + - "riptions/*}\332A\004name\022\337\001\n\020SeekSubscription\022" + - "3.google.cloud.pubsublite.v1.SeekSubscri" + - "ptionRequest\032\035.google.longrunning.Operat" + - "ion\"w\202\323\344\223\002A\"cloud.google.com/go/pubsub" + - "lite/apiv1/pubsublitepb;pubsublitepb\252\002\032G" + - "oogle.Cloud.PubSubLite.V1\312\002\032Google\\Cloud" + - "\\PubSubLite\\V1\352\002\035Google::Cloud::PubSubLi" + - "te::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor, - new java.lang.String[] { "Parent", "Topic", "TopicId", }); - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor, - new java.lang.String[] { "PartitionCount", }); - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor, - new java.lang.String[] { "Topics", "NextPageToken", }); - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor, - new java.lang.String[] { "Topic", "UpdateMask", }); - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor, - new java.lang.String[] { "Name", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor, - new java.lang.String[] { "Subscriptions", "NextPageToken", }); - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor, - new java.lang.String[] { "Parent", "Subscription", "SubscriptionId", "SkipBacklog", }); - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor, - new java.lang.String[] { "Subscriptions", "NextPageToken", }); - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor, - new java.lang.String[] { "Subscription", "UpdateMask", }); - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor, - new java.lang.String[] { "Name", "NamedTarget", "TimeTarget", "Target", }); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", }); - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor, - new java.lang.String[] { "Parent", "Reservation", "ReservationId", }); - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor, - new java.lang.String[] { "Reservations", "NextPageToken", }); - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor, - new java.lang.String[] { "Reservation", "UpdateMask", }); - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor, - new java.lang.String[] { "Name", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor, - new java.lang.String[] { "Topics", "NextPageToken", }); - 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.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java deleted file mode 100644 index aa3ec1ed8..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -package com.google.cloud.pubsublite.proto; - -public interface CommitCursorResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CommitCursorResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java deleted file mode 100644 index da2600b69..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java +++ /dev/null @@ -1,301 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/common.proto - -package com.google.cloud.pubsublite.proto; - -public final class CommonProto { - private CommonProto() {} - 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_cloud_pubsublite_v1_AttributeValues_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_TimeTarget_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\'google/cloud/pubsublite/v1/common.prot" + - "o\022\032google.cloud.pubsublite.v1\032\037google/ap" + - "i/field_behavior.proto\032\031google/api/resou" + - "rce.proto\032\036google/protobuf/duration.prot" + - "o\032\037google/protobuf/timestamp.proto\"!\n\017At" + - "tributeValues\022\016\n\006values\030\001 \003(\014\"\211\002\n\rPubSub" + - "Message\022\013\n\003key\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022M\n\nat" + - "tributes\030\003 \003(\01329.google.cloud.pubsublite" + - ".v1.PubSubMessage.AttributesEntry\022.\n\neve" + - "nt_time\030\004 \001(\0132\032.google.protobuf.Timestam" + - "p\032^\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005val" + - "ue\030\002 \001(\0132+.google.cloud.pubsublite.v1.At" + - "tributeValues:\0028\001\"\030\n\006Cursor\022\016\n\006offset\030\001 " + - "\001(\003\"\310\001\n\020SequencedMessage\0222\n\006cursor\030\001 \001(\013" + - "2\".google.cloud.pubsublite.v1.Cursor\0220\n\014" + - "publish_time\030\002 \001(\0132\032.google.protobuf.Tim" + - "estamp\022:\n\007message\030\003 \001(\0132).google.cloud.p" + - "ubsublite.v1.PubSubMessage\022\022\n\nsize_bytes" + - "\030\004 \001(\003\"\250\001\n\013Reservation\022\014\n\004name\030\001 \001(\t\022\033\n\023" + - "throughput_capacity\030\002 \001(\003:n\352Ak\n%pubsubli" + - "te.googleapis.com/Reservation\022Bprojects/" + - "{project}/locations/{location}/reservati" + - "ons/{reservation}\"\367\005\n\005Topic\022\014\n\004name\030\001 \001(" + - "\t\022K\n\020partition_config\030\002 \001(\01321.google.clo" + - "ud.pubsublite.v1.Topic.PartitionConfig\022K" + - "\n\020retention_config\030\003 \001(\01321.google.cloud." + - "pubsublite.v1.Topic.RetentionConfig\022O\n\022r" + - "eservation_config\030\004 \001(\01323.google.cloud.p" + - "ubsublite.v1.Topic.ReservationConfig\032\332\001\n" + - "\017PartitionConfig\022\r\n\005count\030\001 \001(\003\022\023\n\005scale" + - "\030\002 \001(\005B\002\030\001H\000\022N\n\010capacity\030\003 \001(\0132:.google." + - "cloud.pubsublite.v1.Topic.PartitionConfi" + - "g.CapacityH\000\032F\n\010Capacity\022\033\n\023publish_mib_" + - "per_sec\030\001 \001(\005\022\035\n\025subscribe_mib_per_sec\030\002" + - " \001(\005B\013\n\tdimension\032Y\n\017RetentionConfig\022\033\n\023" + - "per_partition_bytes\030\001 \001(\003\022)\n\006period\030\002 \001(" + - "\0132\031.google.protobuf.Duration\032_\n\021Reservat" + - "ionConfig\022J\n\026throughput_reservation\030\001 \001(" + - "\tB*\372A\'\n%pubsublite.googleapis.com/Reserv" + - "ation:\\\352AY\n\037pubsublite.googleapis.com/To" + - "pic\0226projects/{project}/locations/{locat" + - "ion}/topics/{topic}\"\305\004\n\014Subscription\022\014\n\004" + - "name\030\001 \001(\t\0223\n\005topic\030\002 \001(\tB$\372A!\n\037pubsubli" + - "te.googleapis.com/Topic\022P\n\017delivery_conf" + - "ig\030\003 \001(\01327.google.cloud.pubsublite.v1.Su" + - "bscription.DeliveryConfig\022?\n\rexport_conf" + - "ig\030\004 \001(\0132(.google.cloud.pubsublite.v1.Ex" + - "portConfig\032\353\001\n\016DeliveryConfig\022i\n\024deliver" + - "y_requirement\030\003 \001(\0162K.google.cloud.pubsu" + - "blite.v1.Subscription.DeliveryConfig.Del" + - "iveryRequirement\"n\n\023DeliveryRequirement\022" + - "$\n DELIVERY_REQUIREMENT_UNSPECIFIED\020\000\022\027\n" + - "\023DELIVER_IMMEDIATELY\020\001\022\030\n\024DELIVER_AFTER_" + - "STORED\020\002:q\352An\n&pubsublite.googleapis.com" + - "/Subscription\022Dprojects/{project}/locati" + - "ons/{location}/subscriptions/{subscripti" + - "on}\"\301\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " + - "\001(\0162..google.cloud.pubsublite.v1.ExportC" + - "onfig.State\022J\n\rcurrent_state\030\006 \001(\0162..goo" + - "gle.cloud.pubsublite.v1.ExportConfig.Sta" + - "teB\003\340A\003\022B\n\021dead_letter_topic\030\005 \001(\tB\'\340A\001\372" + - "A!\n\037pubsublite.googleapis.com/Topic\022N\n\rp" + - "ubsub_config\030\003 \001(\01325.google.cloud.pubsub" + - "lite.v1.ExportConfig.PubSubConfigH\000\032\035\n\014P" + - "ubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n\021S" + - "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUSED" + - "\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND\020\004" + - "B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publish" + - "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" + - "\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobuf." + - "TimestampH\000B\006\n\004timeB\317\001\n!com.google.cloud" + - ".pubsublite.protoB\013CommonProtoP\001Z>cloud." + - "google.com/go/pubsublite/apiv1/pubsublit" + - "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + - "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + - "Google::Cloud::PubSubLite::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor, - new java.lang.String[] { "Values", }); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor, - new java.lang.String[] { "Key", "Data", "Attributes", "EventTime", }); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor = - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor, - new java.lang.String[] { "Offset", }); - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor, - new java.lang.String[] { "Cursor", "PublishTime", "Message", "SizeBytes", }); - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor, - new java.lang.String[] { "Name", "ThroughputCapacity", }); - internal_static_google_cloud_pubsublite_v1_Topic_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_descriptor, - new java.lang.String[] { "Name", "PartitionConfig", "RetentionConfig", "ReservationConfig", }); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor, - new java.lang.String[] { "Count", "Scale", "Capacity", "Dimension", }); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor, - new java.lang.String[] { "PublishMibPerSec", "SubscribeMibPerSec", }); - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor, - new java.lang.String[] { "PerPartitionBytes", "Period", }); - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor, - new java.lang.String[] { "ThroughputReservation", }); - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor, - new java.lang.String[] { "Name", "Topic", "DeliveryConfig", "ExportConfig", }); - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor, - new java.lang.String[] { "DeliveryRequirement", }); - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor, - new java.lang.String[] { "DesiredState", "CurrentState", "DeadLetterTopic", "PubsubConfig", "Destination", }); - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor, - new java.lang.String[] { "Topic", }); - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor, - new java.lang.String[] { "PublishTime", "EventTime", "Time", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - 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.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java deleted file mode 100644 index 20bd159bf..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/topic_stats.proto - -package com.google.cloud.pubsublite.proto; - -public interface ComputeHeadCursorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The topic for which we should compute the head cursor.
-   * 
- * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The topic. - */ - java.lang.String getTopic(); - /** - *
-   * Required. The topic for which we should compute the head cursor.
-   * 
- * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for topic. - */ - com.google.protobuf.ByteString - getTopicBytes(); - - /** - *
-   * Required. The partition for which we should compute the head cursor.
-   * 
- * - * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The partition. - */ - long getPartition(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java deleted file mode 100644 index 54313bba0..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/common.proto - -package com.google.cloud.pubsublite.proto; - -public interface CursorOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Cursor) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The offset of a message within a topic partition. Must be greater than or
-   * equal 0.
-   * 
- * - * int64 offset = 1; - * @return The offset. - */ - long getOffset(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java deleted file mode 100644 index 77dece10b..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java +++ /dev/null @@ -1,232 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -package com.google.cloud.pubsublite.proto; - -public final class CursorProto { - private CursorProto() {} - 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_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_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\'google/cloud/pubsublite/v1/cursor.prot" + - "o\022\032google.cloud.pubsublite.v1\032\034google/ap" + - "i/annotations.proto\032\027google/api/client.p" + - "roto\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\032\'google/cloud/p" + - "ubsublite/v1/common.proto\"E\n\032InitialComm" + - "itCursorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n" + - "\tpartition\030\002 \001(\003\"\035\n\033InitialCommitCursorR" + - "esponse\"R\n\034SequencedCommitCursorRequest\022" + - "2\n\006cursor\030\001 \001(\0132\".google.cloud.pubsublit" + - "e.v1.Cursor\"=\n\035SequencedCommitCursorResp" + - "onse\022\034\n\024acknowledged_commits\030\001 \001(\003\"\300\001\n\034S" + - "treamingCommitCursorRequest\022I\n\007initial\030\001" + - " \001(\01326.google.cloud.pubsublite.v1.Initia" + - "lCommitCursorRequestH\000\022J\n\006commit\030\002 \001(\01328" + - ".google.cloud.pubsublite.v1.SequencedCom" + - "mitCursorRequestH\000B\t\n\007request\"\303\001\n\035Stream" + - "ingCommitCursorResponse\022J\n\007initial\030\001 \001(\013" + - "27.google.cloud.pubsublite.v1.InitialCom" + - "mitCursorResponseH\000\022K\n\006commit\030\002 \001(\01329.go" + - "ogle.cloud.pubsublite.v1.SequencedCommit" + - "CursorResponseH\000B\t\n\007request\"r\n\023CommitCur" + - "sorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n\tpart" + - "ition\030\002 \001(\003\0222\n\006cursor\030\003 \001(\0132\".google.clo" + - "ud.pubsublite.v1.Cursor\"\026\n\024CommitCursorR" + - "esponse\"\204\001\n\033ListPartitionCursorsRequest\022" + - ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.goog" + - "leapis.com/Subscription\022\021\n\tpage_size\030\002 \001" + - "(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurso" + - "r\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\".g" + - "oogle.cloud.pubsublite.v1.Cursor\"\177\n\034List" + - "PartitionCursorsResponse\022F\n\021partition_cu" + - "rsors\030\001 \003(\0132+.google.cloud.pubsublite.v1" + - ".PartitionCursor\022\027\n\017next_page_token\030\002 \001(" + - "\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommitC" + - "ursor\0228.google.cloud.pubsublite.v1.Strea" + - "mingCommitCursorRequest\0329.google.cloud.p" + - "ubsublite.v1.StreamingCommitCursorRespon" + - "se\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.cloud" + - ".pubsublite.v1.CommitCursorRequest\0320.goo" + - "gle.cloud.pubsublite.v1.CommitCursorResp" + - "onse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=p" + - "rojects/*/locations/*/subscriptions/*}:c" + - "ommitCursor:\001*\022\336\001\n\024ListPartitionCursors\022" + - "7.google.cloud.pubsublite.v1.ListPartiti" + - "onCursorsRequest\0328.google.cloud.pubsubli" + - "te.v1.ListPartitionCursorsResponse\"S\202\323\344\223" + - "\002D\022B/v1/cursor/{parent=projects/*/locati" + - "ons/*/subscriptions/*}/cursors\332A\006parent\032" + - "M\312A\031pubsublite.googleapis.com\322A.https://" + - "www.googleapis.com/auth/cloud-platformB\317" + - "\001\n!com.google.cloud.pubsublite.protoB\013Cu" + - "rsorProtoP\001Z>cloud.google.com/go/pubsubl" + - "ite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252\002" + - "\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Clo" + - "ud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSub" + - "Lite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor, - new java.lang.String[] { "Subscription", "Partition", }); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor, - new java.lang.String[] { "Cursor", }); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor, - new java.lang.String[] { "AcknowledgedCommits", }); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor, - new java.lang.String[] { "Initial", "Commit", "Request", }); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor, - new java.lang.String[] { "Initial", "Commit", "Request", }); - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor, - new java.lang.String[] { "Subscription", "Partition", "Cursor", }); - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor, - new java.lang.String[] { "Partition", "Cursor", }); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor, - new java.lang.String[] { "PartitionCursors", "NextPageToken", }); - 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.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.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java deleted file mode 100644 index 34666da4c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface DeleteReservationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteReservationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the reservation to delete.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the reservation to delete.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java deleted file mode 100644 index d5c1dc161..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface DeleteSubscriptionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the subscription to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the subscription to delete.
-   * 
- * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java deleted file mode 100644 index 816174b34..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface DeleteTopicRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the topic to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the topic to delete.
-   * 
- * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java deleted file mode 100644 index c98702f65..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface GetReservationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetReservationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the reservation whose configuration to return.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the reservation whose configuration to return.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java deleted file mode 100644 index ee73972c2..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface GetSubscriptionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the subscription whose configuration to return.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the subscription whose configuration to return.
-   * 
- * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java deleted file mode 100644 index 89d39e040..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface GetTopicPartitionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The topic whose partition information to return.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The topic whose partition information to return.
-   * 
- * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java deleted file mode 100644 index 3bb977418..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface GetTopicRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the topic whose configuration to return.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the topic whose configuration to return.
-   * 
- * - * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java deleted file mode 100644 index 5d47df1a2..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -package com.google.cloud.pubsublite.proto; - -public interface InitialCommitCursorResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialCommitCursorResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java deleted file mode 100644 index 5660753c1..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/publisher.proto - -package com.google.cloud.pubsublite.proto; - -public interface InitialPublishResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPublishResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java deleted file mode 100644 index 63b843f1e..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/subscriber.proto - -package com.google.cloud.pubsublite.proto; - -public interface PartitionAssignmentAckOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignmentAck) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java deleted file mode 100644 index b736e35ff..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java +++ /dev/null @@ -1,161 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/publisher.proto - -package com.google.cloud.pubsublite.proto; - -public final class PublisherProto { - private PublisherProto() {} - 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_cloud_pubsublite_v1_InitialPublishRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PublishResponse_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*google/cloud/pubsublite/v1/publisher.p" + - "roto\022\032google.cloud.pubsublite.v1\032\034google" + - "/api/annotations.proto\032\027google/api/clien" + - "t.proto\032\'google/cloud/pubsublite/v1/comm" + - "on.proto\"L\n\025InitialPublishRequest\022\r\n\005top" + - "ic\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022\021\n\tclient_id" + - "\030\003 \001(\014\"\030\n\026InitialPublishResponse\"s\n\025Mess" + - "agePublishRequest\022;\n\010messages\030\001 \003(\0132).go" + - "ogle.cloud.pubsublite.v1.PubSubMessage\022\035" + - "\n\025first_sequence_number\030\002 \001(\003\"\232\002\n\026Messag" + - "ePublishResponse\0228\n\014start_cursor\030\001 \001(\0132\"" + - ".google.cloud.pubsublite.v1.Cursor\022U\n\rcu" + - "rsor_ranges\030\002 \003(\0132>.google.cloud.pubsubl" + - "ite.v1.MessagePublishResponse.CursorRang" + - "e\032o\n\013CursorRange\0228\n\014start_cursor\030\001 \001(\0132\"" + - ".google.cloud.pubsublite.v1.Cursor\022\023\n\013st" + - "art_index\030\002 \001(\005\022\021\n\tend_index\030\003 \001(\005\"\304\001\n\016P" + - "ublishRequest\022L\n\017initial_request\030\001 \001(\01321" + - ".google.cloud.pubsublite.v1.InitialPubli" + - "shRequestH\000\022T\n\027message_publish_request\030\002" + - " \001(\01321.google.cloud.pubsublite.v1.Messag" + - "ePublishRequestH\000B\016\n\014request_type\"\302\001\n\017Pu" + - "blishResponse\022N\n\020initial_response\030\001 \001(\0132" + - "2.google.cloud.pubsublite.v1.InitialPubl" + - "ishResponseH\000\022N\n\020message_response\030\002 \001(\0132" + - "2.google.cloud.pubsublite.v1.MessagePubl" + - "ishResponseH\000B\017\n\rresponse_type2\313\001\n\020Publi" + - "sherService\022h\n\007Publish\022*.google.cloud.pu" + - "bsublite.v1.PublishRequest\032+.google.clou" + - "d.pubsublite.v1.PublishResponse\"\000(\0010\001\032M\312" + - "A\031pubsublite.googleapis.com\322A.https://ww" + - "w.googleapis.com/auth/cloud-platformB\322\001\n" + - "!com.google.cloud.pubsublite.protoB\016Publ" + - "isherProtoP\001Z>cloud.google.com/go/pubsub" + - "lite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252" + - "\002\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Cl" + - "oud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSu" + - "bLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor, - new java.lang.String[] { "Topic", "Partition", "ClientId", }); - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor, - new java.lang.String[] { "Messages", "FirstSequenceNumber", }); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor, - new java.lang.String[] { "StartCursor", "CursorRanges", }); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor = - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor, - new java.lang.String[] { "StartCursor", "StartIndex", "EndIndex", }); - internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor, - new java.lang.String[] { "InitialRequest", "MessagePublishRequest", "RequestType", }); - internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor, - new java.lang.String[] { "InitialResponse", "MessageResponse", "ResponseType", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java deleted file mode 100644 index fa9772211..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface SeekSubscriptionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekSubscriptionResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java deleted file mode 100644 index 600da8ea9..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -package com.google.cloud.pubsublite.proto; - -public interface SequencedCommitCursorResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The number of outstanding SequencedCommitCursorRequests acknowledged by
-   * this response. Note that SequencedCommitCursorRequests are acknowledged in
-   * the order that they are received.
-   * 
- * - * int64 acknowledged_commits = 1; - * @return The acknowledgedCommits. - */ - long getAcknowledgedCommits(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java deleted file mode 100644 index 1a12e6d72..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java +++ /dev/null @@ -1,240 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/subscriber.proto - -package com.google.cloud.pubsublite.proto; - -public final class SubscriberProto { - private SubscriberProto() {} - 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_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_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+google/cloud/pubsublite/v1/subscriber." + - "proto\022\032google.cloud.pubsublite.v1\032\034googl" + - "e/api/annotations.proto\032\027google/api/clie" + - "nt.proto\032\037google/api/field_behavior.prot" + - "o\032\'google/cloud/pubsublite/v1/common.pro" + - "to\"\212\001\n\027InitialSubscribeRequest\022\024\n\014subscr" + - "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022F\n\020initi" + - "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" + - "ite.v1.SeekRequestB\003\340A\001\"N\n\030InitialSubscr" + - "ibeResponse\0222\n\006cursor\030\001 \001(\0132\".google.clo" + - "ud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest\022" + - "K\n\014named_target\030\001 \001(\01623.google.cloud.pub" + - "sublite.v1.SeekRequest.NamedTargetH\000\0224\n\006" + - "cursor\030\002 \001(\0132\".google.cloud.pubsublite.v" + - "1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARGE" + - "T_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_C" + - "URSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cur" + - "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + - "ursor\"E\n\022FlowControlRequest\022\030\n\020allowed_m" + - "essages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001\n" + - "\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.goo" + - "gle.cloud.pubsublite.v1.InitialSubscribe" + - "RequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud.p" + - "ubsublite.v1.SeekRequestH\000\022F\n\014flow_contr" + - "ol\030\003 \001(\0132..google.cloud.pubsublite.v1.Fl" + - "owControlRequestH\000B\t\n\007request\"Q\n\017Message" + - "Response\022>\n\010messages\030\001 \003(\0132,.google.clou" + - "d.pubsublite.v1.SequencedMessage\"\343\001\n\021Sub" + - "scribeResponse\022G\n\007initial\030\001 \001(\01324.google" + - ".cloud.pubsublite.v1.InitialSubscribeRes" + - "ponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pub" + - "sublite.v1.SeekResponseH\000\022?\n\010messages\030\003 " + - "\001(\0132+.google.cloud.pubsublite.v1.Message" + - "ResponseH\000B\n\n\010response\"L\n!InitialPartiti" + - "onAssignmentRequest\022\024\n\014subscription\030\001 \001(" + - "\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssignm" + - "ent\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAssi" + - "gnmentAck\"\274\001\n\032PartitionAssignmentRequest" + - "\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsubl" + - "ite.v1.InitialPartitionAssignmentRequest" + - "H\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsublit" + - "e.v1.PartitionAssignmentAckH\000B\t\n\007request" + - "2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.go" + - "ogle.cloud.pubsublite.v1.SubscribeReques" + - "t\032-.google.cloud.pubsublite.v1.Subscribe" + - "Response\"\000(\0010\001\032M\312A\031pubsublite.googleapis" + - ".com\322A.https://www.googleapis.com/auth/c" + - "loud-platform2\357\001\n\032PartitionAssignmentSer" + - "vice\022\201\001\n\020AssignPartitions\0226.google.cloud" + - ".pubsublite.v1.PartitionAssignmentReques" + - "t\032/.google.cloud.pubsublite.v1.Partition" + - "Assignment\"\000(\0010\001\032M\312A\031pubsublite.googleap" + - "is.com\322A.https://www.googleapis.com/auth" + - "/cloud-platformB\323\001\n!com.google.cloud.pub" + - "sublite.protoB\017SubscriberProtoP\001Z>cloud." + - "google.com/go/pubsublite/apiv1/pubsublit" + - "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + - "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + - "Google::Cloud::PubSubLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor, - new java.lang.String[] { "Subscription", "Partition", "InitialLocation", }); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor, - new java.lang.String[] { "Cursor", }); - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor, - new java.lang.String[] { "NamedTarget", "Cursor", "Target", }); - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor, - new java.lang.String[] { "Cursor", }); - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor, - new java.lang.String[] { "AllowedMessages", "AllowedBytes", }); - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor, - new java.lang.String[] { "Initial", "Seek", "FlowControl", "Request", }); - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor, - new java.lang.String[] { "Messages", }); - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor, - new java.lang.String[] { "Initial", "Seek", "Messages", "Response", }); - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor, - new java.lang.String[] { "Subscription", "ClientId", }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor, - new java.lang.String[] { "Partitions", }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor, - new java.lang.String[] { "Initial", "Ack", "Request", }); - 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.ClientProto.oauthScopes); - 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java deleted file mode 100644 index c0b4deda2..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -package com.google.cloud.pubsublite.proto; - -public interface TopicPartitionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.TopicPartitions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The number of partitions in the topic.
-   * 
- * - * int64 partition_count = 1; - * @return The partitionCount. - */ - long getPartitionCount(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java deleted file mode 100644 index 081a728c2..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java +++ /dev/null @@ -1,174 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/topic_stats.proto - -package com.google.cloud.pubsublite.proto; - -public final class TopicStatsProto { - private TopicStatsProto() {} - 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_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_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,google/cloud/pubsublite/v1/topic_stats" + - ".proto\022\032google.cloud.pubsublite.v1\032\034goog" + - "le/api/annotations.proto\032\027google/api/cli" + - "ent.proto\032\037google/api/field_behavior.pro" + - "to\032\031google/api/resource.proto\032\'google/cl" + - "oud/pubsublite/v1/common.proto\032\037google/p" + - "rotobuf/timestamp.proto\"\336\001\n\032ComputeMessa" + - "geStatsRequest\0226\n\005topic\030\001 \001(\tB\'\340A\002\372A!\n\037p" + - "ubsublite.googleapis.com/Topic\022\026\n\tpartit" + - "ion\030\002 \001(\003B\003\340A\002\0228\n\014start_cursor\030\003 \001(\0132\".g" + - "oogle.cloud.pubsublite.v1.Cursor\0226\n\nend_" + - "cursor\030\004 \001(\0132\".google.cloud.pubsublite.v" + - "1.Cursor\"\275\001\n\033ComputeMessageStatsResponse" + - "\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_bytes" + - "\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032.g" + - "oogle.protobuf.Timestamp\0226\n\022minimum_even" + - "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + - "\"j\n\030ComputeHeadCursorRequest\0226\n\005topic\030\001 " + - "\001(\tB\'\340A\002\372A!\n\037pubsublite.googleapis.com/T" + - "opic\022\026\n\tpartition\030\002 \001(\003B\003\340A\002\"T\n\031ComputeH" + - "eadCursorResponse\0227\n\013head_cursor\030\001 \001(\0132\"" + - ".google.cloud.pubsublite.v1.Cursor\"\247\001\n\030C" + - "omputeTimeCursorRequest\0226\n\005topic\030\001 \001(\tB\'" + - "\340A\002\372A!\n\037pubsublite.googleapis.com/Topic\022" + - "\026\n\tpartition\030\002 \001(\003B\003\340A\002\022;\n\006target\030\003 \001(\0132" + - "&.google.cloud.pubsublite.v1.TimeTargetB" + - "\003\340A\002\"O\n\031ComputeTimeCursorResponse\0222\n\006cur" + - "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + - "ursor2\362\005\n\021TopicStatsService\022\335\001\n\023ComputeM" + - "essageStats\0226.google.cloud.pubsublite.v1" + - ".ComputeMessageStatsRequest\0327.google.clo" + - "ud.pubsublite.v1.ComputeMessageStatsResp" + - "onse\"U\202\323\344\223\002O\"J/v1/topicStats/{topic=proj" + - "ects/*/locations/*/topics/*}:computeMess" + - "ageStats:\001*\022\325\001\n\021ComputeHeadCursor\0224.goog" + - "le.cloud.pubsublite.v1.ComputeHeadCursor" + - "Request\0325.google.cloud.pubsublite.v1.Com" + - "puteHeadCursorResponse\"S\202\323\344\223\002M\"H/v1/topi" + - "cStats/{topic=projects/*/locations/*/top" + - "ics/*}:computeHeadCursor:\001*\022\325\001\n\021ComputeT" + - "imeCursor\0224.google.cloud.pubsublite.v1.C" + - "omputeTimeCursorRequest\0325.google.cloud.p" + - "ubsublite.v1.ComputeTimeCursorResponse\"S" + - "\202\323\344\223\002M\"H/v1/topicStats/{topic=projects/*" + - "/locations/*/topics/*}:computeTimeCursor" + - ":\001*\032M\312A\031pubsublite.googleapis.com\322A.http" + - "s://www.googleapis.com/auth/cloud-platfo" + - "rmB\320\001\n!com.google.cloud.pubsublite.proto" + - "B\017TopicStatsProtoP\001Z>cloud.google.com/go" + - "/pubsublite/apiv1/pubsublitepb;pubsublit" + - "epb\252\002\032Google.Cloud.PubSubLite.V1\312\002\032Googl" + - "e\\Cloud\\PubSubLite\\V1\352\002\035Google::Cloud::P" + - "ubSubLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor, - new java.lang.String[] { "Topic", "Partition", "StartCursor", "EndCursor", }); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor, - new java.lang.String[] { "MessageCount", "MessageBytes", "MinimumPublishTime", "MinimumEventTime", }); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor, - new java.lang.String[] { "Topic", "Partition", }); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor, - new java.lang.String[] { "HeadCursor", }); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor, - new java.lang.String[] { "Topic", "Partition", "Target", }); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor, - new java.lang.String[] { "Cursor", }); - 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.oauthScopes); - 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java new file mode 100644 index 000000000..db349d390 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java @@ -0,0 +1,592 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public final class AdminProto { + private AdminProto() {} + + 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_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_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&google/cloud/pubsublite/v1/admin.proto" + + "\022\032google.cloud.pubsublite.v1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\'google/cloud/pu" + + "bsublite/v1/common.proto\032#google/longrun" + + "ning/operations.proto\032\033google/protobuf/e" + + "mpty.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"\235\001" + + "\n\022CreateTopicRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "5\n\005topic\030\002 \001(\0132!.google.cloud.pubsublite" + + ".v1.TopicB\003\340A\002\022\025\n\010topic_id\030\003 \001(\tB\003\340A\002\"H\n" + + "\017GetTopicRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" + + "pubsublite.googleapis.com/Topic\"R\n\031GetTo" + + "picPartitionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" + + "A!\n\037pubsublite.googleapis.com/Topic\"*\n\017T" + + "opicPartitions\022\027\n\017partition_count\030\001 \001(\003\"" + + "u\n\021ListTopicsRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"`" + + "\n\022ListTopicsResponse\0221\n\006topics\030\001 \003(\0132!.g" + + "oogle.cloud.pubsublite.v1.Topic\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\201\001\n\022UpdateTopicRequest\022" + + "5\n\005topic\030\001 \001(\0132!.google.cloud.pubsublite" + + ".v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"K\n\022DeleteTo" + + "picRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037pubsub" + + "lite.googleapis.com/Topic\"}\n\035ListTopicSu" + + "bscriptionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" + + "\n\037pubsublite.googleapis.com/Topic\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036List" + + "TopicSubscriptionsResponse\022\025\n\rsubscripti" + + "ons\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\317\001\n\031C" + + "reateSubscriptionRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022C\n\014subscription\030\002 \001(\0132(.google.cloud" + + ".pubsublite.v1.SubscriptionB\003\340A\002\022\034\n\017subs" + + "cription_id\030\003 \001(\tB\003\340A\002\022\024\n\014skip_backlog\030\004" + + " \001(\010\"V\n\026GetSubscriptionRequest\022<\n\004name\030\001" + + " \001(\tB.\340A\002\372A(\n&pubsublite.googleapis.com/" + + "Subscription\"|\n\030ListSubscriptionsRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"u\n\031ListSubscriptionsR" + + "esponse\022?\n\rsubscriptions\030\001 \003(\0132(.google." + + "cloud.pubsublite.v1.Subscription\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\226\001\n\031UpdateSubscription" + + "Request\022C\n\014subscription\030\001 \001(\0132(.google.c" + + "loud.pubsublite.v1.SubscriptionB\003\340A\002\0224\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\"Y\n\031DeleteSubscriptionRequest\022" + + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.google" + + "apis.com/Subscription\"\272\002\n\027SeekSubscripti" + + "onRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsubl" + + "ite.googleapis.com/Subscription\022W\n\014named" + + "_target\030\002 \001(\0162?.google.cloud.pubsublite." + + "v1.SeekSubscriptionRequest.NamedTargetH\000" + + "\022=\n\013time_target\030\003 \001(\0132&.google.cloud.pub" + + "sublite.v1.TimeTargetH\000\"?\n\013NamedTarget\022\034" + + "\n\030NAMED_TARGET_UNSPECIFIED\020\000\022\010\n\004TAIL\020\001\022\010" + + "\n\004HEAD\020\002B\010\n\006target\"\032\n\030SeekSubscriptionRe" + + "sponse\"\220\001\n\021OperationMetadata\022/\n\013create_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\"\265\001\n\030Cr" + + "eateReservationRequest\0229\n\006parent\030\001 \001(\tB)" + + "\340A\002\372A#\n!locations.googleapis.com/Locatio" + + "n\022A\n\013reservation\030\002 \001(\0132\'.google.cloud.pu" + + "bsublite.v1.ReservationB\003\340A\002\022\033\n\016reservat" + + "ion_id\030\003 \001(\tB\003\340A\002\"T\n\025GetReservationReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + + "gleapis.com/Reservation\"{\n\027ListReservati" + + "onsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + + "tions.googleapis.com/Location\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n\030ListRese" + + "rvationsResponse\022=\n\014reservations\030\001 \003(\0132\'" + + ".google.cloud.pubsublite.v1.Reservation\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\223\001\n\030UpdateReser" + + "vationRequest\022A\n\013reservation\030\001 \001(\0132\'.goo" + + "gle.cloud.pubsublite.v1.ReservationB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"W\n\030DeleteReservationReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + + "gleapis.com/Reservation\"\202\001\n\034ListReservat" + + "ionTopicsRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + + "pubsublite.googleapis.com/Reservation\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035" + + "ListReservationTopicsResponse\022\016\n\006topics\030" + + "\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\257\036\n\014Admin" + + "Service\022\271\001\n\013CreateTopic\022..google.cloud.p" + + "ubsublite.v1.CreateTopicRequest\032!.google" + + ".cloud.pubsublite.v1.Topic\"W\202\323\344\223\0029\"0/v1/" + + "admin/{parent=projects/*/locations/*}/to" + + "pics:\005topic\332A\025parent,topic,topic_id\022\233\001\n\010" + + "GetTopic\022+.google.cloud.pubsublite.v1.Ge" + + "tTopicRequest\032!.google.cloud.pubsublite." + + "v1.Topic\"?\202\323\344\223\0022\0220/v1/admin/{name=projec" + + "ts/*/locations/*/topics/*}\332A\004name\022\304\001\n\022Ge" + + "tTopicPartitions\0225.google.cloud.pubsubli" + + "te.v1.GetTopicPartitionsRequest\032+.google" + + ".cloud.pubsublite.v1.TopicPartitions\"J\202\323" + + "\344\223\002=\022;/v1/admin/{name=projects/*/locatio" + + "ns/*/topics/*}/partitions\332A\004name\022\256\001\n\nLis" + + "tTopics\022-.google.cloud.pubsublite.v1.Lis" + + "tTopicsRequest\032..google.cloud.pubsublite" + + ".v1.ListTopicsResponse\"A\202\323\344\223\0022\0220/v1/admi" + + "n/{parent=projects/*/locations/*}/topics" + + "\332A\006parent\022\273\001\n\013UpdateTopic\022..google.cloud" + + ".pubsublite.v1.UpdateTopicRequest\032!.goog" + + "le.cloud.pubsublite.v1.Topic\"Y\202\323\344\223\002?26/v" + + "1/admin/{topic.name=projects/*/locations" + + "/*/topics/*}:\005topic\332A\021topic,update_mask\022" + + "\226\001\n\013DeleteTopic\022..google.cloud.pubsublit" + + "e.v1.DeleteTopicRequest\032\026.google.protobu" + + "f.Empty\"?\202\323\344\223\0022*0/v1/admin/{name=project" + + "s/*/locations/*/topics/*}\332A\004name\022\336\001\n\026Lis" + + "tTopicSubscriptions\0229.google.cloud.pubsu" + + "blite.v1.ListTopicSubscriptionsRequest\032:" + + ".google.cloud.pubsublite.v1.ListTopicSub" + + "scriptionsResponse\"M\202\323\344\223\002@\022>/v1/admin/{n" + + "ame=projects/*/locations/*/topics/*}/sub" + + "scriptions\332A\004name\022\352\001\n\022CreateSubscription" + + "\0225.google.cloud.pubsublite.v1.CreateSubs" + + "criptionRequest\032(.google.cloud.pubsublit" + + "e.v1.Subscription\"s\202\323\344\223\002G\"7/v1/admin/{pa" + + "rent=projects/*/locations/*}/subscriptio" + + "ns:\014subscription\332A#parent,subscription,s" + + "ubscription_id\022\267\001\n\017GetSubscription\0222.goo" + + "gle.cloud.pubsublite.v1.GetSubscriptionR" + + "equest\032(.google.cloud.pubsublite.v1.Subs" + + "cription\"F\202\323\344\223\0029\0227/v1/admin/{name=projec" + + "ts/*/locations/*/subscriptions/*}\332A\004name" + + "\022\312\001\n\021ListSubscriptions\0224.google.cloud.pu" + + "bsublite.v1.ListSubscriptionsRequest\0325.g" + + "oogle.cloud.pubsublite.v1.ListSubscripti" + + "onsResponse\"H\202\323\344\223\0029\0227/v1/admin/{parent=p" + + "rojects/*/locations/*}/subscriptions\332A\006p" + + "arent\022\354\001\n\022UpdateSubscription\0225.google.cl" + + "oud.pubsublite.v1.UpdateSubscriptionRequ" + + "est\032(.google.cloud.pubsublite.v1.Subscri" + + "ption\"u\202\323\344\223\002T2D/v1/admin/{subscription.n" + + "ame=projects/*/locations/*/subscriptions" + + "/*}:\014subscription\332A\030subscription,update_" + + "mask\022\253\001\n\022DeleteSubscription\0225.google.clo" + + "ud.pubsublite.v1.DeleteSubscriptionReque" + + "st\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v1/" + + "admin/{name=projects/*/locations/*/subsc" + + "riptions/*}\332A\004name\022\337\001\n\020SeekSubscription\022" + + "3.google.cloud.pubsublite.v1.SeekSubscri" + + "ptionRequest\032\035.google.longrunning.Operat" + + "ion\"w\202\323\344\223\002A\"cloud.google.com/go/pubsub" + + "lite/apiv1/pubsublitepb;pubsublitepb\252\002\032G" + + "oogle.Cloud.PubSubLite.V1\312\002\032Google\\Cloud" + + "\\PubSubLite\\V1\352\002\035Google::Cloud::PubSubLi" + + "te::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor, + new java.lang.String[] { + "Parent", "Topic", "TopicId", + }); + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor, + new java.lang.String[] { + "PartitionCount", + }); + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor, + new java.lang.String[] { + "Topics", "NextPageToken", + }); + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor, + new java.lang.String[] { + "Topic", "UpdateMask", + }); + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor, + new java.lang.String[] { + "Subscriptions", "NextPageToken", + }); + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor, + new java.lang.String[] { + "Parent", "Subscription", "SubscriptionId", "SkipBacklog", + }); + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor, + new java.lang.String[] { + "Subscriptions", "NextPageToken", + }); + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor, + new java.lang.String[] { + "Subscription", "UpdateMask", + }); + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor, + new java.lang.String[] { + "Name", "NamedTarget", "TimeTarget", "Target", + }); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "Target", "Verb", + }); + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor, + new java.lang.String[] { + "Parent", "Reservation", "ReservationId", + }); + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor, + new java.lang.String[] { + "Reservations", "NextPageToken", + }); + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor, + new java.lang.String[] { + "Reservation", "UpdateMask", + }); + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor, + new java.lang.String[] { + "Topics", "NextPageToken", + }); + 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.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java index 3b97d9e13..f23fb4edd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java @@ -1,86 +1,114 @@ +/* + * 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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * The values associated with a key of an attribute.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.AttributeValues} */ -public final class AttributeValues extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AttributeValues extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.AttributeValues) AttributeValuesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AttributeValues.newBuilder() to construct. private AttributeValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AttributeValues() { values_ = 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 AttributeValues(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.AttributeValues.class, com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); + com.google.cloud.pubsublite.proto.AttributeValues.class, + com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List values_; /** + * + * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; + * * @return A list containing the values. */ @java.lang.Override - public java.util.List - getValuesList() { + public java.util.List getValuesList() { return values_; } /** + * + * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -89,6 +117,7 @@ public com.google.protobuf.ByteString getValues(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -100,8 +129,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 < values_.size(); i++) { output.writeBytes(1, values_.get(i)); } @@ -117,8 +145,7 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(values_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); @@ -131,15 +158,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.cloud.pubsublite.proto.AttributeValues)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.AttributeValues other = (com.google.cloud.pubsublite.proto.AttributeValues) obj; + com.google.cloud.pubsublite.proto.AttributeValues other = + (com.google.cloud.pubsublite.proto.AttributeValues) obj; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +188,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.AttributeValues parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues 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.cloud.pubsublite.proto.AttributeValues 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; } /** + * + * *
    * The values associated with a key of an attribute.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.AttributeValues} */ - 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.cloud.pubsublite.v1.AttributeValues) com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.AttributeValues.class, com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); + com.google.cloud.pubsublite.proto.AttributeValues.class, + com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.AttributeValues.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; } @java.lang.Override @@ -314,14 +347,18 @@ public com.google.cloud.pubsublite.proto.AttributeValues build() { @java.lang.Override public com.google.cloud.pubsublite.proto.AttributeValues buildPartial() { - com.google.cloud.pubsublite.proto.AttributeValues result = new com.google.cloud.pubsublite.proto.AttributeValues(this); + com.google.cloud.pubsublite.proto.AttributeValues result = + new com.google.cloud.pubsublite.proto.AttributeValues(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.AttributeValues result) { + private void buildPartialRepeatedFields( + com.google.cloud.pubsublite.proto.AttributeValues result) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000001); @@ -337,38 +374,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.AttributeValues res 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.cloud.pubsublite.proto.AttributeValues) { - return mergeFrom((com.google.cloud.pubsublite.proto.AttributeValues)other); + return mergeFrom((com.google.cloud.pubsublite.proto.AttributeValues) other); } else { super.mergeFrom(other); return this; @@ -376,7 +414,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.AttributeValues other) { - if (other == com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()) + return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; @@ -413,18 +452,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureValuesIsMutable(); - values_.add(v); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureValuesIsMutable(); + values_.add(v); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -434,9 +475,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List values_ = java.util.Collections.emptyList(); + private java.util.List values_ = + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new java.util.ArrayList(values_); @@ -444,35 +488,44 @@ private void ensureValuesIsMutable() { } } /** + * + * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; + * * @return A list containing the values. */ - public java.util.List - getValuesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(values_) : values_; + public java.util.List getValuesList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(values_) + : values_; } /** + * + * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -480,62 +533,76 @@ public com.google.protobuf.ByteString getValues(int index) { return values_.get(index); } /** + * + * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; + * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setValues(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; + * * @param value The values to add. * @return This builder for chaining. */ public Builder addValues(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** + * + * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; + * * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); return this; } /** + * + * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -544,9 +611,9 @@ public Builder clearValues() { 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); } @@ -556,12 +623,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.AttributeValues) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.AttributeValues) private static final com.google.cloud.pubsublite.proto.AttributeValues DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.AttributeValues(); } @@ -570,27 +637,27 @@ public static com.google.cloud.pubsublite.proto.AttributeValues getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttributeValues parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttributeValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -605,6 +672,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.AttributeValues getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java index d71b1f020..5cb54cbde 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java @@ -1,36 +1,61 @@ +/* + * 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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface AttributeValuesOrBuilder extends +public interface AttributeValuesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.AttributeValues) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; + * * @return A list containing the values. */ java.util.List getValuesList(); /** + * + * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; + * * @return The count of values. */ int getValuesCount(); /** + * + * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java index c3d39798d..8c46e3aa7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java @@ -1,62 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for CommitCursor.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorRequest} */ -public final class CommitCursorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommitCursorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CommitCursorRequest) CommitCursorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommitCursorRequest.newBuilder() to construct. private CommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CommitCursorRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommitCursorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorRequest.class, com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorRequest.class, + com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; + * * @return The subscription. */ @java.lang.Override @@ -65,29 +88,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; } } /** + * + * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; + * * @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 { @@ -98,12 +121,15 @@ public java.lang.String getSubscription() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** + * + * *
    * The partition for which to update the cursor. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -114,11 +140,14 @@ public long getPartition() { public static final int CURSOR_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** + * + * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -126,18 +155,25 @@ public boolean hasCursor() { return cursor_ != null; } /** + * + * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; + * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } /** + * + * *
    * The new value for the committed cursor.
    * 
@@ -146,10 +182,13 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -185,12 +223,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); } if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -200,21 +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.cloud.pubsublite.proto.CommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CommitCursorRequest other = (com.google.cloud.pubsublite.proto.CommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.CommitCursorRequest other = + (com.google.cloud.pubsublite.proto.CommitCursorRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; - if (getPartition() - != other.getPartition()) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (getPartition() != other.getPartition()) return false; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor() - .equals(other.getCursor())) return false; + if (!getCursor().equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -230,8 +264,7 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); @@ -242,129 +275,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.CommitCursorRequest 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 CommitCursor.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorRequest} */ - 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.cloud.pubsublite.v1.CommitCursorRequest) com.google.cloud.pubsublite.proto.CommitCursorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorRequest.class, com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorRequest.class, + com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CommitCursorRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; } @java.lang.Override @@ -401,8 +441,11 @@ public com.google.cloud.pubsublite.proto.CommitCursorRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CommitCursorRequest buildPartial() { - com.google.cloud.pubsublite.proto.CommitCursorRequest result = new com.google.cloud.pubsublite.proto.CommitCursorRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.CommitCursorRequest result = + new com.google.cloud.pubsublite.proto.CommitCursorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -416,9 +459,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CommitCursorRequest result.partition_ = partition_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); } } @@ -426,38 +467,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CommitCursorRequest 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.cloud.pubsublite.proto.CommitCursorRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CommitCursorRequest other) { - if (other == com.google.cloud.pubsublite.proto.CommitCursorRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.CommitCursorRequest.getDefaultInstance()) + return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; bitField0_ |= 0x00000001; @@ -503,29 +546,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,22 +580,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; + * * @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; @@ -559,20 +607,21 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; + * * @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 { @@ -580,28 +629,35 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -611,17 +667,21 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -629,14 +689,17 @@ public Builder setSubscriptionBytes( return this; } - private long partition_ ; + private long partition_; /** + * + * *
      * The partition for which to update the cursor. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -644,29 +707,35 @@ public long getPartition() { return partition_; } /** + * + * *
      * The partition for which to update the cursor. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; + * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The partition for which to update the cursor. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -678,34 +747,47 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + cursorBuilder_; /** + * + * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; + * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; + * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } else { return cursorBuilder_.getMessage(); } } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -726,14 +808,15 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; */ - public Builder setCursor( - com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -744,6 +827,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -752,9 +837,9 @@ public Builder setCursor( */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - cursor_ != null && - cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && cursor_ != null + && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -767,6 +852,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -784,6 +871,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -796,6 +885,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -806,11 +897,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null ? - com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -818,21 +912,24 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), - getParentForChildren(), - isClean()); + cursorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), getParentForChildren(), isClean()); cursor_ = null; } return cursorBuilder_; } + @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 +939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CommitCursorRequest) private static final com.google.cloud.pubsublite.proto.CommitCursorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CommitCursorRequest(); } @@ -856,27 +953,27 @@ public static com.google.cloud.pubsublite.proto.CommitCursorRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -891,6 +988,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java index 65194529b..1be88c418 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java @@ -1,62 +1,94 @@ +/* + * 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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface CommitCursorRequestOrBuilder extends +public interface CommitCursorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * The partition for which to update the cursor. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; + * * @return The partition. */ long getPartition(); /** + * + * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; + * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** + * + * *
    * The new value for the committed cursor.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java index 387e5978f..2246df767 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java @@ -1,53 +1,72 @@ +/* + * 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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response for CommitCursor.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorResponse} */ -public final class CommitCursorResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CommitCursorResponse) CommitCursorResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommitCursorResponse.newBuilder() to construct. private CommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommitCursorResponse() { - } + + private CommitCursorResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommitCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorResponse.class, com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorResponse.class, + com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.cloud.pubsublite.proto.CommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CommitCursorResponse other = (com.google.cloud.pubsublite.proto.CommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.CommitCursorResponse other = + (com.google.cloud.pubsublite.proto.CommitCursorResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.CommitCursorResponse 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 CommitCursor.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorResponse} */ - 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.cloud.pubsublite.v1.CommitCursorResponse) com.google.cloud.pubsublite.proto.CommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorResponse.class, com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorResponse.class, + com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CommitCursorResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.pubsublite.proto.CommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.CommitCursorResponse result = new com.google.cloud.pubsublite.proto.CommitCursorResponse(this); + com.google.cloud.pubsublite.proto.CommitCursorResponse result = + new com.google.cloud.pubsublite.proto.CommitCursorResponse(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.pubsublite.proto.CommitCursorResponse 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.cloud.pubsublite.proto.CommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorResponse) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CommitCursorResponse other) { - if (other == com.google.cloud.pubsublite.proto.CommitCursorResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.CommitCursorResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CommitCursorResponse) private static final com.google.cloud.pubsublite.proto.CommitCursorResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CommitCursorResponse(); } @@ -369,27 +399,27 @@ public static com.google.cloud.pubsublite.proto.CommitCursorResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java new file mode 100644 index 000000000..1f56f7090 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.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/cloud/pubsublite/v1/cursor.proto + +package com.google.cloud.pubsublite.proto; + +public interface CommitCursorResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CommitCursorResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java new file mode 100644 index 000000000..46b454511 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java @@ -0,0 +1,333 @@ +/* + * 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/cloud/pubsublite/v1/common.proto + +package com.google.cloud.pubsublite.proto; + +public final class CommonProto { + private CommonProto() {} + + 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_cloud_pubsublite_v1_AttributeValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_TimeTarget_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\'google/cloud/pubsublite/v1/common.prot" + + "o\022\032google.cloud.pubsublite.v1\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\032\036google/protobuf/duration.prot" + + "o\032\037google/protobuf/timestamp.proto\"!\n\017At" + + "tributeValues\022\016\n\006values\030\001 \003(\014\"\211\002\n\rPubSub" + + "Message\022\013\n\003key\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022M\n\nat" + + "tributes\030\003 \003(\01329.google.cloud.pubsublite" + + ".v1.PubSubMessage.AttributesEntry\022.\n\neve" + + "nt_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\032^\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005val" + + "ue\030\002 \001(\0132+.google.cloud.pubsublite.v1.At" + + "tributeValues:\0028\001\"\030\n\006Cursor\022\016\n\006offset\030\001 " + + "\001(\003\"\310\001\n\020SequencedMessage\0222\n\006cursor\030\001 \001(\013" + + "2\".google.cloud.pubsublite.v1.Cursor\0220\n\014" + + "publish_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022:\n\007message\030\003 \001(\0132).google.cloud.p" + + "ubsublite.v1.PubSubMessage\022\022\n\nsize_bytes" + + "\030\004 \001(\003\"\250\001\n\013Reservation\022\014\n\004name\030\001 \001(\t\022\033\n\023" + + "throughput_capacity\030\002 \001(\003:n\352Ak\n%pubsubli" + + "te.googleapis.com/Reservation\022Bprojects/" + + "{project}/locations/{location}/reservati" + + "ons/{reservation}\"\367\005\n\005Topic\022\014\n\004name\030\001 \001(" + + "\t\022K\n\020partition_config\030\002 \001(\01321.google.clo" + + "ud.pubsublite.v1.Topic.PartitionConfig\022K" + + "\n\020retention_config\030\003 \001(\01321.google.cloud." + + "pubsublite.v1.Topic.RetentionConfig\022O\n\022r" + + "eservation_config\030\004 \001(\01323.google.cloud.p" + + "ubsublite.v1.Topic.ReservationConfig\032\332\001\n" + + "\017PartitionConfig\022\r\n\005count\030\001 \001(\003\022\023\n\005scale" + + "\030\002 \001(\005B\002\030\001H\000\022N\n\010capacity\030\003 \001(\0132:.google." + + "cloud.pubsublite.v1.Topic.PartitionConfi" + + "g.CapacityH\000\032F\n\010Capacity\022\033\n\023publish_mib_" + + "per_sec\030\001 \001(\005\022\035\n\025subscribe_mib_per_sec\030\002" + + " \001(\005B\013\n\tdimension\032Y\n\017RetentionConfig\022\033\n\023" + + "per_partition_bytes\030\001 \001(\003\022)\n\006period\030\002 \001(" + + "\0132\031.google.protobuf.Duration\032_\n\021Reservat" + + "ionConfig\022J\n\026throughput_reservation\030\001 \001(" + + "\tB*\372A\'\n%pubsublite.googleapis.com/Reserv" + + "ation:\\\352AY\n\037pubsublite.googleapis.com/To" + + "pic\0226projects/{project}/locations/{locat" + + "ion}/topics/{topic}\"\305\004\n\014Subscription\022\014\n\004" + + "name\030\001 \001(\t\0223\n\005topic\030\002 \001(\tB$\372A!\n\037pubsubli" + + "te.googleapis.com/Topic\022P\n\017delivery_conf" + + "ig\030\003 \001(\01327.google.cloud.pubsublite.v1.Su" + + "bscription.DeliveryConfig\022?\n\rexport_conf" + + "ig\030\004 \001(\0132(.google.cloud.pubsublite.v1.Ex" + + "portConfig\032\353\001\n\016DeliveryConfig\022i\n\024deliver" + + "y_requirement\030\003 \001(\0162K.google.cloud.pubsu" + + "blite.v1.Subscription.DeliveryConfig.Del" + + "iveryRequirement\"n\n\023DeliveryRequirement\022" + + "$\n DELIVERY_REQUIREMENT_UNSPECIFIED\020\000\022\027\n" + + "\023DELIVER_IMMEDIATELY\020\001\022\030\n\024DELIVER_AFTER_" + + "STORED\020\002:q\352An\n&pubsublite.googleapis.com" + + "/Subscription\022Dprojects/{project}/locati" + + "ons/{location}/subscriptions/{subscripti" + + "on}\"\301\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " + + "\001(\0162..google.cloud.pubsublite.v1.ExportC" + + "onfig.State\022J\n\rcurrent_state\030\006 \001(\0162..goo" + + "gle.cloud.pubsublite.v1.ExportConfig.Sta" + + "teB\003\340A\003\022B\n\021dead_letter_topic\030\005 \001(\tB\'\340A\001\372" + + "A!\n\037pubsublite.googleapis.com/Topic\022N\n\rp" + + "ubsub_config\030\003 \001(\01325.google.cloud.pubsub" + + "lite.v1.ExportConfig.PubSubConfigH\000\032\035\n\014P" + + "ubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUSED" + + "\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND\020\004" + + "B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publish" + + "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" + + "\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobuf." + + "TimestampH\000B\006\n\004timeB\317\001\n!com.google.cloud" + + ".pubsublite.protoB\013CommonProtoP\001Z>cloud." + + "google.com/go/pubsublite/apiv1/pubsublit" + + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + + "Google::Cloud::PubSubLite::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor, + new java.lang.String[] { + "Key", "Data", "Attributes", "EventTime", + }); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor = + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor, + new java.lang.String[] { + "Offset", + }); + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor, + new java.lang.String[] { + "Cursor", "PublishTime", "Message", "SizeBytes", + }); + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor, + new java.lang.String[] { + "Name", "ThroughputCapacity", + }); + internal_static_google_cloud_pubsublite_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_descriptor, + new java.lang.String[] { + "Name", "PartitionConfig", "RetentionConfig", "ReservationConfig", + }); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor, + new java.lang.String[] { + "Count", "Scale", "Capacity", "Dimension", + }); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor, + new java.lang.String[] { + "PublishMibPerSec", "SubscribeMibPerSec", + }); + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor, + new java.lang.String[] { + "PerPartitionBytes", "Period", + }); + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor, + new java.lang.String[] { + "ThroughputReservation", + }); + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor, + new java.lang.String[] { + "Name", "Topic", "DeliveryConfig", "ExportConfig", + }); + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor, + new java.lang.String[] { + "DeliveryRequirement", + }); + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor, + new java.lang.String[] { + "DesiredState", "CurrentState", "DeadLetterTopic", "PubsubConfig", "Destination", + }); + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor, + new java.lang.String[] { + "Topic", + }); + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor, + new java.lang.String[] { + "PublishTime", "EventTime", "Time", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java index 3f3b77424..4060c7f4e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java @@ -1,62 +1,87 @@ +/* + * 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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Compute the current head cursor for a partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorRequest} */ -public final class ComputeHeadCursorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ComputeHeadCursorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) ComputeHeadCursorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ComputeHeadCursorRequest.newBuilder() to construct. private ComputeHeadCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ComputeHeadCursorRequest() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComputeHeadCursorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * Required. The topic for which we should compute the head cursor.
    * 
* - * 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 @@ -65,29 +90,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 topic for which we should compute the head cursor.
    * 
* - * 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 { @@ -98,11 +125,14 @@ public java.lang.String getTopic() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** + * + * *
    * Required. The partition for which we should compute the head cursor.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The partition. */ @java.lang.Override @@ -111,6 +141,7 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,8 +153,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_); } @@ -143,8 +173,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -154,17 +183,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.cloud.pubsublite.proto.ComputeHeadCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest other = (com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) obj; + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest other = + (com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) obj; - if (!getTopic() - .equals(other.getTopic())) return false; - if (getPartition() - != other.getPartition()) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (getPartition() != other.getPartition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,137 +207,143 @@ public int hashCode() { hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest 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.cloud.pubsublite.proto.ComputeHeadCursorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest 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; } /** + * + * *
    * Compute the current head cursor for a partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorRequest} */ - 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.cloud.pubsublite.v1.ComputeHeadCursorRequest) com.google.cloud.pubsublite.proto.ComputeHeadCursorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; } @java.lang.Override @@ -341,8 +375,11 @@ public com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest buildPartial() { - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest result = new com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest result = + new com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -361,38 +398,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorRe 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.cloud.pubsublite.proto.ComputeHeadCursorRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) other); } else { super.mergeFrom(other); return this; @@ -400,7 +438,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest other) { - if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.getDefaultInstance()) + return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -435,22 +474,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,22 +502,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * 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; @@ -484,20 +531,23 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * 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 { @@ -505,28 +555,39 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * 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() { @@ -536,17 +597,23 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -554,13 +621,16 @@ public Builder setTopicBytes( return this; } - private long partition_ ; + private long partition_; /** + * + * *
      * Required. The partition for which we should compute the head cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The partition. */ @java.lang.Override @@ -568,27 +638,33 @@ public long getPartition() { return partition_; } /** + * + * *
      * Required. The partition for which we should compute the head cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The partition for which we should compute the head cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -597,9 +673,9 @@ public Builder clearPartition() { 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); } @@ -609,12 +685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) private static final com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest(); } @@ -623,27 +699,27 @@ public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeHeadCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeHeadCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -658,6 +734,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java new file mode 100644 index 000000000..e3222ea0f --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java @@ -0,0 +1,67 @@ +/* + * 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/cloud/pubsublite/v1/topic_stats.proto + +package com.google.cloud.pubsublite.proto; + +public interface ComputeHeadCursorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The topic for which we should compute the head cursor.
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+   * Required. The topic for which we should compute the head cursor.
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
+   * Required. The partition for which we should compute the head cursor.
+   * 
+ * + * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The partition. + */ + long getPartition(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java index 74defe649..7835d74ad 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java @@ -1,60 +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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response containing the head cursor for the requested topic and partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorResponse} */ -public final class ComputeHeadCursorResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ComputeHeadCursorResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) ComputeHeadCursorResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ComputeHeadCursorResponse.newBuilder() to construct. private ComputeHeadCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeHeadCursorResponse() { - } + + private ComputeHeadCursorResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComputeHeadCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); } public static final int HEAD_CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor headCursor_; /** + * + * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; + * * @return Whether the headCursor field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasHeadCursor() { return headCursor_ != null; } /** + * + * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; + * * @return The headCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getHeadCursor() { - return headCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; + return headCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : headCursor_; } /** + * + * *
    * The head cursor.
    * 
@@ -82,10 +110,13 @@ public com.google.cloud.pubsublite.proto.Cursor getHeadCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getHeadCursorOrBuilder() { - return headCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; + return headCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : headCursor_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +128,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 (headCursor_ != null) { output.writeMessage(1, getHeadCursor()); } @@ -112,8 +142,7 @@ public int getSerializedSize() { size = 0; if (headCursor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHeadCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeadCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +152,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.cloud.pubsublite.proto.ComputeHeadCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse other = (com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) obj; + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse other = + (com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) obj; if (hasHeadCursor() != other.hasHeadCursor()) return false; if (hasHeadCursor()) { - if (!getHeadCursor() - .equals(other.getHeadCursor())) return false; + if (!getHeadCursor().equals(other.getHeadCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +185,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse 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.cloud.pubsublite.proto.ComputeHeadCursorResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse 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 containing the head cursor for the requested topic and partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorResponse} */ - 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.cloud.pubsublite.v1.ComputeHeadCursorResponse) com.google.cloud.pubsublite.proto.ComputeHeadCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; } @java.lang.Override @@ -313,8 +349,11 @@ public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse result = new com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse result = + new com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,9 +361,7 @@ public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse buildPartial( private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.headCursor_ = headCursorBuilder_ == null - ? headCursor_ - : headCursorBuilder_.build(); + result.headCursor_ = headCursorBuilder_ == null ? headCursor_ : headCursorBuilder_.build(); } } @@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorRe 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.cloud.pubsublite.proto.ComputeHeadCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) other); } else { super.mergeFrom(other); return this; @@ -371,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse other) { - if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.getDefaultInstance()) + return this; if (other.hasHeadCursor()) { mergeHeadCursor(other.getHeadCursor()); } @@ -401,19 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getHeadCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getHeadCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,38 +462,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor headCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> headCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + headCursorBuilder_; /** + * + * *
      * The head cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; + * * @return Whether the headCursor field is set. */ public boolean hasHeadCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The head cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; + * * @return The headCursor. */ public com.google.cloud.pubsublite.proto.Cursor getHeadCursor() { if (headCursorBuilder_ == null) { - return headCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; + return headCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : headCursor_; } else { return headCursorBuilder_.getMessage(); } } /** + * + * *
      * The head cursor.
      * 
@@ -475,14 +528,15 @@ public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The head cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; */ - public Builder setHeadCursor( - com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (headCursorBuilder_ == null) { headCursor_ = builderForValue.build(); } else { @@ -493,6 +547,8 @@ public Builder setHeadCursor( return this; } /** + * + * *
      * The head cursor.
      * 
@@ -501,9 +557,9 @@ public Builder setHeadCursor( */ public Builder mergeHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (headCursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - headCursor_ != null && - headCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && headCursor_ != null + && headCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getHeadCursorBuilder().mergeFrom(value); } else { headCursor_ = value; @@ -516,6 +572,8 @@ public Builder mergeHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The head cursor.
      * 
@@ -533,6 +591,8 @@ public Builder clearHeadCursor() { return this; } /** + * + * *
      * The head cursor.
      * 
@@ -545,6 +605,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getHeadCursorBuilder() { return getHeadCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The head cursor.
      * 
@@ -555,11 +617,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getHeadCursorOrBuilder( if (headCursorBuilder_ != null) { return headCursorBuilder_.getMessageOrBuilder(); } else { - return headCursor_ == null ? - com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; + return headCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : headCursor_; } } /** + * + * *
      * The head cursor.
      * 
@@ -567,21 +632,24 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getHeadCursorOrBuilder( * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> getHeadCursorFieldBuilder() { if (headCursorBuilder_ == null) { - headCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getHeadCursor(), - getParentForChildren(), - isClean()); + headCursorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getHeadCursor(), getParentForChildren(), isClean()); headCursor_ = null; } return headCursorBuilder_; } + @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); } @@ -591,12 +659,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) private static final com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse(); } @@ -605,27 +673,27 @@ public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeHeadCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeHeadCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +708,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java index 282dc2f36..6ad52175f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; -public interface ComputeHeadCursorResponseOrBuilder extends +public interface ComputeHeadCursorResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; + * * @return Whether the headCursor field is set. */ boolean hasHeadCursor(); /** + * + * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; + * * @return The headCursor. */ com.google.cloud.pubsublite.proto.Cursor getHeadCursor(); /** + * + * *
    * The head cursor.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java index e7fc226ed..eb61af457 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java @@ -1,62 +1,87 @@ +/* + * 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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Compute statistics about a range of messages in a given topic and partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsRequest} */ -public final class ComputeMessageStatsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ComputeMessageStatsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeMessageStatsRequest) ComputeMessageStatsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ComputeMessageStatsRequest.newBuilder() to construct. private ComputeMessageStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ComputeMessageStatsRequest() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComputeMessageStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * Required. The topic for which we should compute message stats.
    * 
* - * 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 @@ -65,29 +90,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 topic for which we should compute message stats.
    * 
* - * 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 { @@ -98,11 +125,14 @@ public java.lang.String getTopic() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** + * + * *
    * Required. The partition for which we should compute message stats.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The partition. */ @java.lang.Override @@ -113,11 +143,14 @@ public long getPartition() { public static final int START_CURSOR_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Cursor startCursor_; /** + * + * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; + * * @return Whether the startCursor field is set. */ @java.lang.Override @@ -125,18 +158,25 @@ public boolean hasStartCursor() { return startCursor_ != null; } /** + * + * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; + * * @return The startCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { - return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + return startCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : startCursor_; } /** + * + * *
    * The inclusive start of the range.
    * 
@@ -145,12 +185,16 @@ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() { - return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + return startCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : startCursor_; } public static final int END_CURSOR_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.Cursor endCursor_; /** + * + * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -158,6 +202,7 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; + * * @return Whether the endCursor field is set. */ @java.lang.Override @@ -165,6 +210,8 @@ public boolean hasEndCursor() { return endCursor_ != null; } /** + * + * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -172,13 +219,18 @@ public boolean hasEndCursor() {
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; + * * @return The endCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getEndCursor() { - return endCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_; + return endCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : endCursor_; } /** + * + * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -189,10 +241,13 @@ public com.google.cloud.pubsublite.proto.Cursor getEndCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getEndCursorOrBuilder() {
-    return endCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_;
+    return endCursor_ == null
+        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+        : endCursor_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -204,8 +259,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_);
     }
@@ -231,16 +285,13 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
     }
     if (partition_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, partition_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_);
     }
     if (startCursor_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getStartCursor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartCursor());
     }
     if (endCursor_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getEndCursor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -250,26 +301,23 @@ 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.cloud.pubsublite.proto.ComputeMessageStatsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest other = (com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) obj;
+    com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest other =
+        (com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) obj;
 
-    if (!getTopic()
-        .equals(other.getTopic())) return false;
-    if (getPartition()
-        != other.getPartition()) return false;
+    if (!getTopic().equals(other.getTopic())) return false;
+    if (getPartition() != other.getPartition()) return false;
     if (hasStartCursor() != other.hasStartCursor()) return false;
     if (hasStartCursor()) {
-      if (!getStartCursor()
-          .equals(other.getStartCursor())) return false;
+      if (!getStartCursor().equals(other.getStartCursor())) return false;
     }
     if (hasEndCursor() != other.hasEndCursor()) return false;
     if (hasEndCursor()) {
-      if (!getEndCursor()
-          .equals(other.getEndCursor())) return false;
+      if (!getEndCursor().equals(other.getEndCursor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -285,8 +333,7 @@ public int hashCode() {
     hash = (37 * hash) + TOPIC_FIELD_NUMBER;
     hash = (53 * hash) + getTopic().hashCode();
     hash = (37 * hash) + PARTITION_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getPartition());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition());
     if (hasStartCursor()) {
       hash = (37 * hash) + START_CURSOR_FIELD_NUMBER;
       hash = (53 * hash) + getStartCursor().hashCode();
@@ -301,129 +348,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest 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.cloud.pubsublite.proto.ComputeMessageStatsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest 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;
   }
   /**
+   *
+   *
    * 
    * Compute statistics about a range of messages in a given topic and partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsRequest} */ - 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.cloud.pubsublite.v1.ComputeMessageStatsRequest) com.google.cloud.pubsublite.proto.ComputeMessageStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,13 +498,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance(); } @@ -465,13 +520,17 @@ public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result = new com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result = + new com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.topic_ = topic_; @@ -480,14 +539,11 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStats result.partition_ = partition_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.startCursor_ = startCursorBuilder_ == null - ? startCursor_ - : startCursorBuilder_.build(); + result.startCursor_ = + startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.endCursor_ = endCursorBuilder_ == null - ? endCursor_ - : endCursorBuilder_.build(); + result.endCursor_ = endCursorBuilder_ == null ? endCursor_ : endCursorBuilder_.build(); } } @@ -495,38 +551,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStats 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.cloud.pubsublite.proto.ComputeMessageStatsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) other); } else { super.mergeFrom(other); return this; @@ -534,7 +591,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance()) + return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -575,36 +634,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getStartCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getEndCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getStartCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getEndCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,22 +674,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
      * Required. The topic for which we should compute message stats.
      * 
* - * 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; @@ -638,20 +703,23 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The topic for which we should compute message stats.
      * 
* - * 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 { @@ -659,28 +727,39 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The topic for which we should compute message stats.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The topic for which we should compute message stats.
      * 
* - * 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() { @@ -690,17 +769,23 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The topic for which we should compute message stats.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -708,13 +793,16 @@ public Builder setTopicBytes( return this; } - private long partition_ ; + private long partition_; /** + * + * *
      * Required. The partition for which we should compute message stats.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The partition. */ @java.lang.Override @@ -722,27 +810,33 @@ public long getPartition() { return partition_; } /** + * + * *
      * Required. The partition for which we should compute message stats.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The partition for which we should compute message stats.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -754,34 +848,47 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.Cursor startCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> startCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + startCursorBuilder_; /** + * + * *
      * The inclusive start of the range.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; + * * @return Whether the startCursor field is set. */ public boolean hasStartCursor() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The inclusive start of the range.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; + * * @return The startCursor. */ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { if (startCursorBuilder_ == null) { - return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + return startCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : startCursor_; } else { return startCursorBuilder_.getMessage(); } } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -802,6 +909,8 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -820,6 +929,8 @@ public Builder setStartCursor( return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -828,9 +939,9 @@ public Builder setStartCursor( */ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (startCursorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - startCursor_ != null && - startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && startCursor_ != null + && startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getStartCursorBuilder().mergeFrom(value); } else { startCursor_ = value; @@ -843,6 +954,8 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -860,6 +973,8 @@ public Builder clearStartCursor() { return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -872,6 +987,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder() return getStartCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -882,11 +999,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder if (startCursorBuilder_ != null) { return startCursorBuilder_.getMessageOrBuilder(); } else { - return startCursor_ == null ? - com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + return startCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : startCursor_; } } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -894,14 +1014,17 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> getStartCursorFieldBuilder() { if (startCursorBuilder_ == null) { - startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getStartCursor(), - getParentForChildren(), - isClean()); + startCursorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getStartCursor(), getParentForChildren(), isClean()); startCursor_ = null; } return startCursorBuilder_; @@ -909,8 +1032,13 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder private com.google.cloud.pubsublite.proto.Cursor endCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> endCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + endCursorBuilder_; /** + * + * *
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -918,12 +1046,15 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
      * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; + * * @return Whether the endCursor field is set. */ public boolean hasEndCursor() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -931,16 +1062,21 @@ public boolean hasEndCursor() {
      * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; + * * @return The endCursor. */ public com.google.cloud.pubsublite.proto.Cursor getEndCursor() { if (endCursorBuilder_ == null) { - return endCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_; + return endCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : endCursor_; } else { return endCursorBuilder_.getMessage(); } } /** + * + * *
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -963,6 +1099,8 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -971,8 +1109,7 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      */
-    public Builder setEndCursor(
-        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (endCursorBuilder_ == null) {
         endCursor_ = builderForValue.build();
       } else {
@@ -983,6 +1120,8 @@ public Builder setEndCursor(
       return this;
     }
     /**
+     *
+     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -993,9 +1132,9 @@ public Builder setEndCursor(
      */
     public Builder mergeEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (endCursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          endCursor_ != null &&
-          endCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && endCursor_ != null
+            && endCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getEndCursorBuilder().mergeFrom(value);
         } else {
           endCursor_ = value;
@@ -1008,6 +1147,8 @@ public Builder mergeEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1027,6 +1168,8 @@ public Builder clearEndCursor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1041,6 +1184,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getEndCursorBuilder() {
       return getEndCursorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1053,11 +1198,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getEndCursorOrBuilder()
       if (endCursorBuilder_ != null) {
         return endCursorBuilder_.getMessageOrBuilder();
       } else {
-        return endCursor_ == null ?
-            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_;
+        return endCursor_ == null
+            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+            : endCursor_;
       }
     }
     /**
+     *
+     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1067,21 +1215,24 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getEndCursorOrBuilder()
      * .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
+            com.google.cloud.pubsublite.proto.Cursor,
+            com.google.cloud.pubsublite.proto.Cursor.Builder,
+            com.google.cloud.pubsublite.proto.CursorOrBuilder>
         getEndCursorFieldBuilder() {
       if (endCursorBuilder_ == null) {
-        endCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getEndCursor(),
-                getParentForChildren(),
-                isClean());
+        endCursorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.Cursor,
+                com.google.cloud.pubsublite.proto.Cursor.Builder,
+                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getEndCursor(), getParentForChildren(), isClean());
         endCursor_ = null;
       }
       return endCursorBuilder_;
     }
+
     @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);
     }
 
@@ -1091,12 +1242,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeMessageStatsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeMessageStatsRequest)
-  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest();
   }
@@ -1105,27 +1257,27 @@ public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ComputeMessageStatsRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ComputeMessageStatsRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1140,6 +1292,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
index ed0e537f3..871f1734d 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
@@ -1,61 +1,97 @@
+/*
+ * 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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface ComputeMessageStatsRequestOrBuilder extends
+public interface ComputeMessageStatsRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeMessageStatsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The topic for which we should compute message stats.
    * 
* - * 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 topic for which we should compute message stats.
    * 
* - * 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(); /** + * + * *
    * Required. The partition for which we should compute message stats.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The partition. */ long getPartition(); /** + * + * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; + * * @return Whether the startCursor field is set. */ boolean hasStartCursor(); /** + * + * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; + * * @return The startCursor. */ com.google.cloud.pubsublite.proto.Cursor getStartCursor(); /** + * + * *
    * The inclusive start of the range.
    * 
@@ -65,6 +101,8 @@ public interface ComputeMessageStatsRequestOrBuilder extends com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder(); /** + * + * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -72,10 +110,13 @@ public interface ComputeMessageStatsRequestOrBuilder extends
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; + * * @return Whether the endCursor field is set. */ boolean hasEndCursor(); /** + * + * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -83,10 +124,13 @@ public interface ComputeMessageStatsRequestOrBuilder extends
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; + * * @return The endCursor. */ com.google.cloud.pubsublite.proto.Cursor getEndCursor(); /** + * + * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
index f8a92d3c2..31a9aea5e 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
@@ -1,60 +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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Response containing stats for messages in the requested topic and partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsResponse} */ -public final class ComputeMessageStatsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ComputeMessageStatsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeMessageStatsResponse) ComputeMessageStatsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ComputeMessageStatsResponse.newBuilder() to construct. private ComputeMessageStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeMessageStatsResponse() { - } + + private ComputeMessageStatsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComputeMessageStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); } public static final int MESSAGE_COUNT_FIELD_NUMBER = 1; private long messageCount_ = 0L; /** + * + * *
    * The count of messages.
    * 
* * int64 message_count = 1; + * * @return The messageCount. */ @java.lang.Override @@ -65,11 +86,14 @@ public long getMessageCount() { public static final int MESSAGE_BYTES_FIELD_NUMBER = 2; private long messageBytes_ = 0L; /** + * + * *
    * The number of quota bytes accounted to these messages.
    * 
* * int64 message_bytes = 2; + * * @return The messageBytes. */ @java.lang.Override @@ -80,6 +104,8 @@ public long getMessageBytes() { public static final int MINIMUM_PUBLISH_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp minimumPublishTime_; /** + * + * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -87,6 +113,7 @@ public long getMessageBytes() {
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; + * * @return Whether the minimumPublishTime field is set. */ @java.lang.Override @@ -94,6 +121,8 @@ public boolean hasMinimumPublishTime() { return minimumPublishTime_ != null; } /** + * + * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -101,13 +130,18 @@ public boolean hasMinimumPublishTime() {
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; + * * @return The minimumPublishTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMinimumPublishTime() { - return minimumPublishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_; + return minimumPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumPublishTime_; } /** + * + * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -118,12 +152,16 @@ public com.google.protobuf.Timestamp getMinimumPublishTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
-    return minimumPublishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_;
+    return minimumPublishTime_ == null
+        ? com.google.protobuf.Timestamp.getDefaultInstance()
+        : minimumPublishTime_;
   }
 
   public static final int MINIMUM_EVENT_TIME_FIELD_NUMBER = 4;
   private com.google.protobuf.Timestamp minimumEventTime_;
   /**
+   *
+   *
    * 
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -131,6 +169,7 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; + * * @return Whether the minimumEventTime field is set. */ @java.lang.Override @@ -138,6 +177,8 @@ public boolean hasMinimumEventTime() { return minimumEventTime_ != null; } /** + * + * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -145,13 +186,18 @@ public boolean hasMinimumEventTime() {
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; + * * @return The minimumEventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMinimumEventTime() { - return minimumEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_; + return minimumEventTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumEventTime_; } /** + * + * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -162,10 +208,13 @@ public com.google.protobuf.Timestamp getMinimumEventTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder() {
-    return minimumEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_;
+    return minimumEventTime_ == null
+        ? com.google.protobuf.Timestamp.getDefaultInstance()
+        : minimumEventTime_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +226,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 (messageCount_ != 0L) {
       output.writeInt64(1, messageCount_);
     }
@@ -201,20 +249,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (messageCount_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(1, messageCount_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, messageCount_);
     }
     if (messageBytes_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, messageBytes_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, messageBytes_);
     }
     if (minimumPublishTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getMinimumPublishTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinimumPublishTime());
     }
     if (minimumEventTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getMinimumEventTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMinimumEventTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -224,26 +268,23 @@ 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.cloud.pubsublite.proto.ComputeMessageStatsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse other = (com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) obj;
+    com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse other =
+        (com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) obj;
 
-    if (getMessageCount()
-        != other.getMessageCount()) return false;
-    if (getMessageBytes()
-        != other.getMessageBytes()) return false;
+    if (getMessageCount() != other.getMessageCount()) return false;
+    if (getMessageBytes() != other.getMessageBytes()) return false;
     if (hasMinimumPublishTime() != other.hasMinimumPublishTime()) return false;
     if (hasMinimumPublishTime()) {
-      if (!getMinimumPublishTime()
-          .equals(other.getMinimumPublishTime())) return false;
+      if (!getMinimumPublishTime().equals(other.getMinimumPublishTime())) return false;
     }
     if (hasMinimumEventTime() != other.hasMinimumEventTime()) return false;
     if (hasMinimumEventTime()) {
-      if (!getMinimumEventTime()
-          .equals(other.getMinimumEventTime())) return false;
+      if (!getMinimumEventTime().equals(other.getMinimumEventTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -257,11 +298,9 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + MESSAGE_COUNT_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getMessageCount());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMessageCount());
     hash = (37 * hash) + MESSAGE_BYTES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getMessageBytes());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMessageBytes());
     if (hasMinimumPublishTime()) {
       hash = (37 * hash) + MINIMUM_PUBLISH_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getMinimumPublishTime().hashCode();
@@ -276,129 +315,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse 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.cloud.pubsublite.proto.ComputeMessageStatsResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse 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 containing stats for messages in the requested topic and partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsResponse} */ - 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.cloud.pubsublite.v1.ComputeMessageStatsResponse) com.google.cloud.pubsublite.proto.ComputeMessageStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,13 +465,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto + .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance(); } @@ -440,13 +487,17 @@ public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result = new com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result = + new com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.messageCount_ = messageCount_; @@ -455,14 +506,14 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStats result.messageBytes_ = messageBytes_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.minimumPublishTime_ = minimumPublishTimeBuilder_ == null - ? minimumPublishTime_ - : minimumPublishTimeBuilder_.build(); + result.minimumPublishTime_ = + minimumPublishTimeBuilder_ == null + ? minimumPublishTime_ + : minimumPublishTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.minimumEventTime_ = minimumEventTimeBuilder_ == null - ? minimumEventTime_ - : minimumEventTimeBuilder_.build(); + result.minimumEventTime_ = + minimumEventTimeBuilder_ == null ? minimumEventTime_ : minimumEventTimeBuilder_.build(); } } @@ -470,38 +521,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStats 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.cloud.pubsublite.proto.ComputeMessageStatsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) other); } else { super.mergeFrom(other); return this; @@ -509,7 +561,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance()) + return this; if (other.getMessageCount() != 0L) { setMessageCount(other.getMessageCount()); } @@ -548,36 +602,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - messageCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - messageBytes_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getMinimumPublishTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getMinimumEventTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + messageCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + messageBytes_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getMinimumPublishTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getMinimumEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,15 +644,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long messageCount_ ; + private long messageCount_; /** + * + * *
      * The count of messages.
      * 
* * int64 message_count = 1; + * * @return The messageCount. */ @java.lang.Override @@ -603,27 +664,33 @@ public long getMessageCount() { return messageCount_; } /** + * + * *
      * The count of messages.
      * 
* * int64 message_count = 1; + * * @param value The messageCount to set. * @return This builder for chaining. */ public Builder setMessageCount(long value) { - + messageCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The count of messages.
      * 
* * int64 message_count = 1; + * * @return This builder for chaining. */ public Builder clearMessageCount() { @@ -633,13 +700,16 @@ public Builder clearMessageCount() { return this; } - private long messageBytes_ ; + private long messageBytes_; /** + * + * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; + * * @return The messageBytes. */ @java.lang.Override @@ -647,27 +717,33 @@ public long getMessageBytes() { return messageBytes_; } /** + * + * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; + * * @param value The messageBytes to set. * @return This builder for chaining. */ public Builder setMessageBytes(long value) { - + messageBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; + * * @return This builder for chaining. */ public Builder clearMessageBytes() { @@ -679,8 +755,13 @@ public Builder clearMessageBytes() { private com.google.protobuf.Timestamp minimumPublishTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minimumPublishTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + minimumPublishTimeBuilder_; /** + * + * *
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -688,12 +769,15 @@ public Builder clearMessageBytes() {
      * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; + * * @return Whether the minimumPublishTime field is set. */ public boolean hasMinimumPublishTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -701,16 +785,21 @@ public boolean hasMinimumPublishTime() {
      * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; + * * @return The minimumPublishTime. */ public com.google.protobuf.Timestamp getMinimumPublishTime() { if (minimumPublishTimeBuilder_ == null) { - return minimumPublishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_; + return minimumPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumPublishTime_; } else { return minimumPublishTimeBuilder_.getMessage(); } } /** + * + * *
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -733,6 +822,8 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -741,8 +832,7 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp minimum_publish_time = 3;
      */
-    public Builder setMinimumPublishTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setMinimumPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (minimumPublishTimeBuilder_ == null) {
         minimumPublishTime_ = builderForValue.build();
       } else {
@@ -753,6 +843,8 @@ public Builder setMinimumPublishTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -763,9 +855,9 @@ public Builder setMinimumPublishTime(
      */
     public Builder mergeMinimumPublishTime(com.google.protobuf.Timestamp value) {
       if (minimumPublishTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          minimumPublishTime_ != null &&
-          minimumPublishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && minimumPublishTime_ != null
+            && minimumPublishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getMinimumPublishTimeBuilder().mergeFrom(value);
         } else {
           minimumPublishTime_ = value;
@@ -778,6 +870,8 @@ public Builder mergeMinimumPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -797,6 +891,8 @@ public Builder clearMinimumPublishTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -811,6 +907,8 @@ public com.google.protobuf.Timestamp.Builder getMinimumPublishTimeBuilder() {
       return getMinimumPublishTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -823,11 +921,14 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
       if (minimumPublishTimeBuilder_ != null) {
         return minimumPublishTimeBuilder_.getMessageOrBuilder();
       } else {
-        return minimumPublishTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_;
+        return minimumPublishTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : minimumPublishTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -837,14 +938,17 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp minimum_publish_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>
         getMinimumPublishTimeFieldBuilder() {
       if (minimumPublishTimeBuilder_ == null) {
-        minimumPublishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getMinimumPublishTime(),
-                getParentForChildren(),
-                isClean());
+        minimumPublishTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getMinimumPublishTime(), getParentForChildren(), isClean());
         minimumPublishTime_ = null;
       }
       return minimumPublishTimeBuilder_;
@@ -852,8 +956,13 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp minimumEventTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minimumEventTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        minimumEventTimeBuilder_;
     /**
+     *
+     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -861,12 +970,15 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp minimum_event_time = 4; + * * @return Whether the minimumEventTime field is set. */ public boolean hasMinimumEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -874,16 +986,21 @@ public boolean hasMinimumEventTime() {
      * 
* * .google.protobuf.Timestamp minimum_event_time = 4; + * * @return The minimumEventTime. */ public com.google.protobuf.Timestamp getMinimumEventTime() { if (minimumEventTimeBuilder_ == null) { - return minimumEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_; + return minimumEventTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumEventTime_; } else { return minimumEventTimeBuilder_.getMessage(); } } /** + * + * *
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -906,6 +1023,8 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -914,8 +1033,7 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp minimum_event_time = 4;
      */
-    public Builder setMinimumEventTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setMinimumEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (minimumEventTimeBuilder_ == null) {
         minimumEventTime_ = builderForValue.build();
       } else {
@@ -926,6 +1044,8 @@ public Builder setMinimumEventTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -936,9 +1056,9 @@ public Builder setMinimumEventTime(
      */
     public Builder mergeMinimumEventTime(com.google.protobuf.Timestamp value) {
       if (minimumEventTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          minimumEventTime_ != null &&
-          minimumEventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && minimumEventTime_ != null
+            && minimumEventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getMinimumEventTimeBuilder().mergeFrom(value);
         } else {
           minimumEventTime_ = value;
@@ -951,6 +1071,8 @@ public Builder mergeMinimumEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -970,6 +1092,8 @@ public Builder clearMinimumEventTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -984,6 +1108,8 @@ public com.google.protobuf.Timestamp.Builder getMinimumEventTimeBuilder() {
       return getMinimumEventTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -996,11 +1122,14 @@ public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder() {
       if (minimumEventTimeBuilder_ != null) {
         return minimumEventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return minimumEventTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_;
+        return minimumEventTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : minimumEventTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1010,21 +1139,24 @@ public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder() {
      * .google.protobuf.Timestamp minimum_event_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>
         getMinimumEventTimeFieldBuilder() {
       if (minimumEventTimeBuilder_ == null) {
-        minimumEventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getMinimumEventTime(),
-                getParentForChildren(),
-                isClean());
+        minimumEventTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getMinimumEventTime(), getParentForChildren(), isClean());
         minimumEventTime_ = null;
       }
       return minimumEventTimeBuilder_;
     }
+
     @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);
     }
 
@@ -1034,12 +1166,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeMessageStatsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeMessageStatsResponse)
-  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse();
   }
@@ -1048,27 +1181,27 @@ public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ComputeMessageStatsResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ComputeMessageStatsResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1083,6 +1216,4 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
index 790c6ff59..90b31aba7 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface ComputeMessageStatsResponseOrBuilder extends
+public interface ComputeMessageStatsResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeMessageStatsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The count of messages.
    * 
* * int64 message_count = 1; + * * @return The messageCount. */ long getMessageCount(); /** + * + * *
    * The number of quota bytes accounted to these messages.
    * 
* * int64 message_bytes = 2; + * * @return The messageBytes. */ long getMessageBytes(); /** + * + * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -35,10 +59,13 @@ public interface ComputeMessageStatsResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; + * * @return Whether the minimumPublishTime field is set. */ boolean hasMinimumPublishTime(); /** + * + * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -46,10 +73,13 @@ public interface ComputeMessageStatsResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; + * * @return The minimumPublishTime. */ com.google.protobuf.Timestamp getMinimumPublishTime(); /** + * + * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -61,6 +91,8 @@ public interface ComputeMessageStatsResponseOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -68,10 +100,13 @@ public interface ComputeMessageStatsResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; + * * @return Whether the minimumEventTime field is set. */ boolean hasMinimumEventTime(); /** + * + * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -79,10 +114,13 @@ public interface ComputeMessageStatsResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; + * * @return The minimumEventTime. */ com.google.protobuf.Timestamp getMinimumEventTime(); /** + * + * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
similarity index 62%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
index ad51cebf7..9d0090161 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Compute the corresponding cursor for a publish or event time in a topic
  * partition.
@@ -11,53 +28,61 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorRequest}
  */
-public final class ComputeTimeCursorRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ComputeTimeCursorRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeTimeCursorRequest)
     ComputeTimeCursorRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ComputeTimeCursorRequest.newBuilder() to construct.
   private ComputeTimeCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ComputeTimeCursorRequest() {
     topic_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ComputeTimeCursorRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.TopicStatsProto
+        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.TopicStatsProto
+        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class,
+            com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
   }
 
   public static final int TOPIC_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object topic_ = "";
   /**
+   *
+   *
    * 
    * Required. The topic for which we should compute the cursor.
    * 
* - * 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 @@ -66,29 +91,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 topic for which we should compute the cursor.
    * 
* - * 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 { @@ -99,11 +126,14 @@ public java.lang.String getTopic() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** + * + * *
    * Required. The partition for which we should compute the cursor.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The partition. */ @java.lang.Override @@ -114,12 +144,17 @@ public long getPartition() { public static final int TARGET_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.TimeTarget target_; /** + * + * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the target field is set. */ @java.lang.Override @@ -127,32 +162,46 @@ public boolean hasTarget() { return target_ != null; } /** + * + * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The target. */ @java.lang.Override public com.google.cloud.pubsublite.proto.TimeTarget getTarget() { - return target_ == null ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; + return target_ == null + ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() + : target_; } /** + * + * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder() { - return target_ == null ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; + return target_ == null + ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() + : target_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -188,12 +236,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); } if (target_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTarget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTarget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,21 +249,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.cloud.pubsublite.proto.ComputeTimeCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest other = (com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) obj; + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest other = + (com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) obj; - if (!getTopic() - .equals(other.getTopic())) return false; - if (getPartition() - != other.getPartition()) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (getPartition() != other.getPartition()) return false; if (hasTarget() != other.hasTarget()) return false; if (hasTarget()) { - if (!getTarget() - .equals(other.getTarget())) return false; + if (!getTarget().equals(other.getTarget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -233,8 +277,7 @@ public int hashCode() { hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); @@ -245,96 +288,104 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest 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.cloud.pubsublite.proto.ComputeTimeCursorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest 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; } /** + * + * *
    * Compute the corresponding cursor for a publish or event time in a topic
    * partition.
@@ -342,33 +393,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorRequest}
    */
-  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.cloud.pubsublite.v1.ComputeTimeCursorRequest)
       com.google.cloud.pubsublite.proto.ComputeTimeCursorRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto
+          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.TopicStatsProto
+          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class,
+              com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -384,9 +434,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto
+          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
     }
 
     @java.lang.Override
@@ -405,8 +455,11 @@ public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest result = new com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest result =
+          new com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -420,9 +473,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
         result.partition_ = partition_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.target_ = targetBuilder_ == null
-            ? target_
-            : targetBuilder_.build();
+        result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build();
       }
     }
 
@@ -430,38 +481,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
     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.cloud.pubsublite.proto.ComputeTimeCursorRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -469,7 +521,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.getDefaultInstance())
+        return this;
       if (!other.getTopic().isEmpty()) {
         topic_ = other.topic_;
         bitField0_ |= 0x00000001;
@@ -507,29 +560,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              topic_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              partition_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getTargetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                topic_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                partition_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -539,22 +594,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object topic_ = "";
     /**
+     *
+     *
      * 
      * Required. The topic for which we should compute the cursor.
      * 
* - * 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; @@ -563,20 +623,23 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * 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 { @@ -584,28 +647,39 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -615,17 +689,23 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -633,13 +713,16 @@ public Builder setTopicBytes( return this; } - private long partition_ ; + private long partition_; /** + * + * *
      * Required. The partition for which we should compute the cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The partition. */ @java.lang.Override @@ -647,27 +730,33 @@ public long getPartition() { return partition_; } /** + * + * *
      * Required. The partition for which we should compute the cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The partition for which we should compute the cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -679,42 +768,61 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.TimeTarget target_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> targetBuilder_; + com.google.cloud.pubsublite.proto.TimeTarget, + com.google.cloud.pubsublite.proto.TimeTarget.Builder, + com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> + targetBuilder_; /** + * + * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the target field is set. */ public boolean hasTarget() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The target. */ public com.google.cloud.pubsublite.proto.TimeTarget getTarget() { if (targetBuilder_ == null) { - return target_ == null ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; + return target_ == null + ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() + : target_; } else { return targetBuilder_.getMessage(); } } /** + * + * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { if (targetBuilder_ == null) { @@ -730,15 +838,18 @@ public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { return this; } /** + * + * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTarget( - com.google.cloud.pubsublite.proto.TimeTarget.Builder builderForValue) { + public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); } else { @@ -749,18 +860,22 @@ public Builder setTarget( return this; } /** + * + * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { if (targetBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - target_ != null && - target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && target_ != null + && target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) { getTargetBuilder().mergeFrom(value); } else { target_ = value; @@ -773,12 +888,16 @@ public Builder mergeTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { return this; } /** + * + * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTarget() { bitField0_ = (bitField0_ & ~0x00000004); @@ -791,12 +910,16 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.TimeTarget.Builder getTargetBuilder() { bitField0_ |= 0x00000004; @@ -804,45 +927,57 @@ public com.google.cloud.pubsublite.proto.TimeTarget.Builder getTargetBuilder() { return getTargetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { - return target_ == null ? - com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; + return target_ == null + ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() + : target_; } } /** + * + * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> + com.google.cloud.pubsublite.proto.TimeTarget, + com.google.cloud.pubsublite.proto.TimeTarget.Builder, + com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { - targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>( - getTarget(), - getParentForChildren(), - isClean()); + targetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.TimeTarget, + com.google.cloud.pubsublite.proto.TimeTarget.Builder, + com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>( + getTarget(), getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } + @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); } @@ -852,12 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) private static final com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest(); } @@ -866,27 +1001,27 @@ public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeTimeCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeTimeCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -901,6 +1036,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java index 7fb4006e7..410548f67 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java @@ -1,69 +1,111 @@ +/* + * 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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; -public interface ComputeTimeCursorRequestOrBuilder extends +public interface ComputeTimeCursorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The topic for which we should compute the cursor.
    * 
* - * 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 topic for which we should compute the cursor.
    * 
* - * 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(); /** + * + * *
    * Required. The partition for which we should compute the cursor.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The partition. */ long getPartition(); /** + * + * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the target field is set. */ boolean hasTarget(); /** + * + * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The target. */ com.google.cloud.pubsublite.proto.TimeTarget getTarget(); /** + * + * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java index ef4719126..a05ca0b77 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.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/cloud/pubsublite/v1/topic_stats.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response containing the cursor corresponding to a publish or event time in a
  * topic partition.
@@ -11,46 +28,49 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorResponse}
  */
-public final class ComputeTimeCursorResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ComputeTimeCursorResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
     ComputeTimeCursorResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ComputeTimeCursorResponse.newBuilder() to construct.
   private ComputeTimeCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ComputeTimeCursorResponse() {
-  }
+
+  private ComputeTimeCursorResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ComputeTimeCursorResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.TopicStatsProto
+        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.TopicStatsProto
+        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
+            com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class,
+            com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
   }
 
   public static final int CURSOR_FIELD_NUMBER = 1;
   private com.google.cloud.pubsublite.proto.Cursor cursor_;
   /**
+   *
+   *
    * 
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -58,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -65,6 +86,8 @@ public boolean hasCursor() { return cursor_ != null; } /** + * + * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -72,13 +95,18 @@ public boolean hasCursor() {
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } /** + * + * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -89,10 +117,13 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
-    return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
+    return cursor_ == null
+        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+        : cursor_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -104,8 +135,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 (cursor_ != null) {
       output.writeMessage(1, getCursor());
     }
@@ -119,8 +149,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (cursor_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getCursor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -130,17 +159,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.cloud.pubsublite.proto.ComputeTimeCursorResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse other = (com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) obj;
+    com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse other =
+        (com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) obj;
 
     if (hasCursor() != other.hasCursor()) return false;
     if (hasCursor()) {
-      if (!getCursor()
-          .equals(other.getCursor())) return false;
+      if (!getCursor().equals(other.getCursor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -163,96 +192,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse 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.cloud.pubsublite.proto.ComputeTimeCursorResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse 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 containing the cursor corresponding to a publish or event time in a
    * topic partition.
@@ -260,33 +297,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorResponse}
    */
-  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.cloud.pubsublite.v1.ComputeTimeCursorResponse)
       com.google.cloud.pubsublite.proto.ComputeTimeCursorResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto
+          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.TopicStatsProto
+          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
+              com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class,
+              com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -300,9 +336,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto
+          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
     }
 
     @java.lang.Override
@@ -321,8 +357,11 @@ public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse buildPartial() {
-      com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse result = new com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse result =
+          new com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,9 +369,7 @@ public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse buildPartial(
     private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.cursor_ = cursorBuilder_ == null
-            ? cursor_
-            : cursorBuilder_.build();
+        result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build();
       }
     }
 
@@ -340,38 +377,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
     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.cloud.pubsublite.proto.ComputeTimeCursorResponse) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -379,7 +417,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse other) {
-      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.getDefaultInstance())
+        return this;
       if (other.hasCursor()) {
         mergeCursor(other.getCursor());
       }
@@ -409,19 +448,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getCursorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -431,12 +470,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.pubsublite.proto.Cursor cursor_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_;
+            com.google.cloud.pubsublite.proto.Cursor,
+            com.google.cloud.pubsublite.proto.Cursor.Builder,
+            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        cursorBuilder_;
     /**
+     *
+     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -444,12 +489,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -457,16 +505,21 @@ public boolean hasCursor() {
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } else { return cursorBuilder_.getMessage(); } } /** + * + * *
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -489,6 +542,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -497,8 +552,7 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
-    public Builder setCursor(
-        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         cursor_ = builderForValue.build();
       } else {
@@ -509,6 +563,8 @@ public Builder setCursor(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -519,9 +575,9 @@ public Builder setCursor(
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          cursor_ != null &&
-          cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && cursor_ != null
+            && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getCursorBuilder().mergeFrom(value);
         } else {
           cursor_ = value;
@@ -534,6 +590,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -553,6 +611,8 @@ public Builder clearCursor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -567,6 +627,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -579,11 +641,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       if (cursorBuilder_ != null) {
         return cursorBuilder_.getMessageOrBuilder();
       } else {
-        return cursor_ == null ?
-            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
+        return cursor_ == null
+            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+            : cursor_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -593,21 +658,24 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
+            com.google.cloud.pubsublite.proto.Cursor,
+            com.google.cloud.pubsublite.proto.Cursor.Builder,
+            com.google.cloud.pubsublite.proto.CursorOrBuilder>
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
-        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getCursor(),
-                getParentForChildren(),
-                isClean());
+        cursorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.Cursor,
+                com.google.cloud.pubsublite.proto.Cursor.Builder,
+                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getCursor(), getParentForChildren(), isClean());
         cursor_ = null;
       }
       return cursorBuilder_;
     }
+
     @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);
     }
 
@@ -617,12 +685,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
   private static final com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse();
   }
@@ -631,27 +699,27 @@ public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ComputeTimeCursorResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ComputeTimeCursorResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -666,6 +734,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
similarity index 68%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
index f0e5e4bd7..2ec1cd897 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.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/cloud/pubsublite/v1/topic_stats.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface ComputeTimeCursorResponseOrBuilder extends
+public interface ComputeTimeCursorResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -15,10 +33,13 @@ public interface ComputeTimeCursorResponseOrBuilder extends
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -26,10 +47,13 @@ public interface ComputeTimeCursorResponseOrBuilder extends
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** + * + * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
similarity index 64%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
index a048272c1..c81203d41 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.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/cloud/pubsublite/v1/admin.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Request for CreateReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateReservationRequest} */ -public final class CreateReservationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateReservationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CreateReservationRequest) CreateReservationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateReservationRequest.newBuilder() to construct. private CreateReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateReservationRequest() { parent_ = ""; reservationId_ = ""; @@ -26,39 +44,46 @@ private CreateReservationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateReservationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateReservationRequest.class, com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateReservationRequest.class, + com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 @@ -67,30 +92,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 parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 { @@ -101,12 +128,17 @@ public java.lang.String getParent() { public static final int RESERVATION_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Reservation reservation_; /** + * + * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reservation field is set. */ @java.lang.Override @@ -114,35 +146,51 @@ public boolean hasReservation() { return reservation_ != null; } /** + * + * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reservation. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Reservation getReservation() { - return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; + return reservation_ == null + ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() + : reservation_; } /** + * + * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { - return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; + return reservation_ == null + ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() + : reservation_; } public static final int RESERVATION_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object reservationId_ = ""; /** + * + * *
    * Required. The ID to use for the reservation, which will become the final
    * component of the reservation's name.
@@ -150,6 +198,7 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The reservationId. */ @java.lang.Override @@ -158,14 +207,15 @@ public java.lang.String getReservationId() { 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(); reservationId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the reservation, which will become the final
    * component of the reservation's name.
@@ -173,16 +223,15 @@ public java.lang.String getReservationId() {
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for reservationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getReservationIdBytes() { + public com.google.protobuf.ByteString getReservationIdBytes() { java.lang.Object ref = reservationId_; 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); reservationId_ = b; return b; } else { @@ -191,6 +240,7 @@ public java.lang.String getReservationId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -226,8 +275,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (reservation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReservation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReservation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reservationId_); @@ -240,22 +288,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.cloud.pubsublite.proto.CreateReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CreateReservationRequest other = (com.google.cloud.pubsublite.proto.CreateReservationRequest) obj; + com.google.cloud.pubsublite.proto.CreateReservationRequest other = + (com.google.cloud.pubsublite.proto.CreateReservationRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReservation() != other.hasReservation()) return false; if (hasReservation()) { - if (!getReservation() - .equals(other.getReservation())) return false; + if (!getReservation().equals(other.getReservation())) return false; } - if (!getReservationId() - .equals(other.getReservationId())) return false; + if (!getReservationId().equals(other.getReservationId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -281,129 +327,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest 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.cloud.pubsublite.proto.CreateReservationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.CreateReservationRequest 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 CreateReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateReservationRequest} */ - 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.cloud.pubsublite.v1.CreateReservationRequest) com.google.cloud.pubsublite.proto.CreateReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateReservationRequest.class, com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateReservationRequest.class, + com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CreateReservationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; } @java.lang.Override @@ -440,8 +493,11 @@ public com.google.cloud.pubsublite.proto.CreateReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CreateReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.CreateReservationRequest result = new com.google.cloud.pubsublite.proto.CreateReservationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.CreateReservationRequest result = + new com.google.cloud.pubsublite.proto.CreateReservationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -452,9 +508,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateReservationRe result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.reservation_ = reservationBuilder_ == null - ? reservation_ - : reservationBuilder_.build(); + result.reservation_ = + reservationBuilder_ == null ? reservation_ : reservationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.reservationId_ = reservationId_; @@ -465,38 +520,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateReservationRe 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.cloud.pubsublite.proto.CreateReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CreateReservationRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.CreateReservationRequest) other); } else { super.mergeFrom(other); return this; @@ -504,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CreateReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.CreateReservationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.CreateReservationRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -544,29 +601,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReservationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - reservationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReservationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + reservationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,23 +635,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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; @@ -601,21 +665,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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 { @@ -623,30 +690,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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() { @@ -656,18 +734,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -677,42 +761,61 @@ public Builder setParentBytes( private com.google.cloud.pubsublite.proto.Reservation reservation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> reservationBuilder_; + com.google.cloud.pubsublite.proto.Reservation, + com.google.cloud.pubsublite.proto.Reservation.Builder, + com.google.cloud.pubsublite.proto.ReservationOrBuilder> + reservationBuilder_; /** + * + * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reservation field is set. */ public boolean hasReservation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reservation. */ public com.google.cloud.pubsublite.proto.Reservation getReservation() { if (reservationBuilder_ == null) { - return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; + return reservation_ == null + ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() + : reservation_; } else { return reservationBuilder_.getMessage(); } } /** + * + * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { @@ -728,12 +831,16 @@ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation valu return this; } /** + * + * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReservation( com.google.cloud.pubsublite.proto.Reservation.Builder builderForValue) { @@ -747,18 +854,22 @@ public Builder setReservation( return this; } /** + * + * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - reservation_ != null && - reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && reservation_ != null + && reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { getReservationBuilder().mergeFrom(value); } else { reservation_ = value; @@ -771,12 +882,16 @@ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation va return this; } /** + * + * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReservation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -789,12 +904,16 @@ public Builder clearReservation() { return this; } /** + * + * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuilder() { bitField0_ |= 0x00000002; @@ -802,38 +921,50 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuild return getReservationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { if (reservationBuilder_ != null) { return reservationBuilder_.getMessageOrBuilder(); } else { - return reservation_ == null ? - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; + return reservation_ == null + ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() + : reservation_; } } /** + * + * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> + com.google.cloud.pubsublite.proto.Reservation, + com.google.cloud.pubsublite.proto.Reservation.Builder, + com.google.cloud.pubsublite.proto.ReservationOrBuilder> getReservationFieldBuilder() { if (reservationBuilder_ == null) { - reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder>( - getReservation(), - getParentForChildren(), - isClean()); + reservationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Reservation, + com.google.cloud.pubsublite.proto.Reservation.Builder, + com.google.cloud.pubsublite.proto.ReservationOrBuilder>( + getReservation(), getParentForChildren(), isClean()); reservation_ = null; } return reservationBuilder_; @@ -841,6 +972,8 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu private java.lang.Object reservationId_ = ""; /** + * + * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -848,13 +981,13 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The reservationId. */ public java.lang.String getReservationId() { java.lang.Object ref = reservationId_; 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(); reservationId_ = s; return s; @@ -863,6 +996,8 @@ public java.lang.String getReservationId() { } } /** + * + * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -870,15 +1005,14 @@ public java.lang.String getReservationId() {
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for reservationId. */ - public com.google.protobuf.ByteString - getReservationIdBytes() { + public com.google.protobuf.ByteString getReservationIdBytes() { java.lang.Object ref = reservationId_; 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); reservationId_ = b; return b; } else { @@ -886,6 +1020,8 @@ public java.lang.String getReservationId() { } } /** + * + * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -893,18 +1029,22 @@ public java.lang.String getReservationId() {
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The reservationId to set. * @return This builder for chaining. */ - public Builder setReservationId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReservationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } reservationId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -912,6 +1052,7 @@ public Builder setReservationId(
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearReservationId() { @@ -921,6 +1062,8 @@ public Builder clearReservationId() { return this; } /** + * + * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -928,21 +1071,23 @@ public Builder clearReservationId() {
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for reservationId to set. * @return This builder for chaining. */ - public Builder setReservationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReservationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); reservationId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -952,12 +1097,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CreateReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CreateReservationRequest) private static final com.google.cloud.pubsublite.proto.CreateReservationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CreateReservationRequest(); } @@ -966,27 +1111,27 @@ public static com.google.cloud.pubsublite.proto.CreateReservationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1001,6 +1146,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CreateReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java index dcc2113fc..6270e8377 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java @@ -1,65 +1,106 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface CreateReservationRequestOrBuilder extends +public interface CreateReservationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CreateReservationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reservation field is set. */ boolean hasReservation(); /** + * + * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reservation. */ com.google.cloud.pubsublite.proto.Reservation getReservation(); /** + * + * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder(); /** + * + * *
    * Required. The ID to use for the reservation, which will become the final
    * component of the reservation's name.
@@ -67,10 +108,13 @@ public interface CreateReservationRequestOrBuilder extends
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The reservationId. */ java.lang.String getReservationId(); /** + * + * *
    * Required. The ID to use for the reservation, which will become the final
    * component of the reservation's name.
@@ -78,8 +122,8 @@ public interface CreateReservationRequestOrBuilder extends
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for reservationId. */ - com.google.protobuf.ByteString - getReservationIdBytes(); + com.google.protobuf.ByteString getReservationIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java index dface03af..0df5efbca 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for CreateSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateSubscriptionRequest} */ -public final class CreateSubscriptionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CreateSubscriptionRequest) CreateSubscriptionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSubscriptionRequest.newBuilder() to construct. private CreateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSubscriptionRequest() { parent_ = ""; subscriptionId_ = ""; @@ -26,39 +44,46 @@ private CreateSubscriptionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSubscriptionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 @@ -67,30 +92,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 parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 { @@ -101,12 +128,17 @@ public java.lang.String getParent() { public static final int SUBSCRIPTION_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Subscription subscription_; /** + * + * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subscription field is set. */ @java.lang.Override @@ -114,35 +146,51 @@ public boolean hasSubscription() { return subscription_ != null; } /** + * + * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subscription. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription getSubscription() { - return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() + : subscription_; } /** + * + * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() + : subscription_; } public static final int SUBSCRIPTION_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object subscriptionId_ = ""; /** + * + * *
    * Required. The ID to use for the subscription, which will become the final
    * component of the subscription's name.
@@ -150,6 +198,7 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subscriptionId. */ @java.lang.Override @@ -158,14 +207,15 @@ public java.lang.String getSubscriptionId() { 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(); subscriptionId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the subscription, which will become the final
    * component of the subscription's name.
@@ -173,16 +223,15 @@ public java.lang.String getSubscriptionId() {
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for subscriptionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionIdBytes() { + public com.google.protobuf.ByteString getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; 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); subscriptionId_ = b; return b; } else { @@ -193,6 +242,8 @@ public java.lang.String getSubscriptionId() { public static final int SKIP_BACKLOG_FIELD_NUMBER = 4; private boolean skipBacklog_ = false; /** + * + * *
    * If true, the newly created subscription will only receive messages
    * published after the subscription was created. Otherwise, the entire
@@ -200,6 +251,7 @@ public java.lang.String getSubscriptionId() {
    * 
* * bool skip_backlog = 4; + * * @return The skipBacklog. */ @java.lang.Override @@ -208,6 +260,7 @@ public boolean getSkipBacklog() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +272,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_); } @@ -246,15 +298,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (subscription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSubscription()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubscription()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subscriptionId_); } if (skipBacklog_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, skipBacklog_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipBacklog_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,24 +314,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.cloud.pubsublite.proto.CreateSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest other = (com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest other = + (com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSubscription() != other.hasSubscription()) return false; if (hasSubscription()) { - if (!getSubscription() - .equals(other.getSubscription())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; } - if (!getSubscriptionId() - .equals(other.getSubscriptionId())) return false; - if (getSkipBacklog() - != other.getSkipBacklog()) return false; + if (!getSubscriptionId().equals(other.getSubscriptionId())) return false; + if (getSkipBacklog() != other.getSkipBacklog()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,137 +349,143 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_ID_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionId().hashCode(); hash = (37 * hash) + SKIP_BACKLOG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipBacklog()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipBacklog()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest 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.cloud.pubsublite.proto.CreateSubscriptionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest 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 CreateSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateSubscriptionRequest} */ - 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.cloud.pubsublite.v1.CreateSubscriptionRequest) com.google.cloud.pubsublite.proto.CreateSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; } @java.lang.Override @@ -470,8 +523,11 @@ public com.google.cloud.pubsublite.proto.CreateSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CreateSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest result = new com.google.cloud.pubsublite.proto.CreateSubscriptionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest result = + new com.google.cloud.pubsublite.proto.CreateSubscriptionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -482,9 +538,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateSubscriptionR result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.subscription_ = subscriptionBuilder_ == null - ? subscription_ - : subscriptionBuilder_.build(); + result.subscription_ = + subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.subscriptionId_ = subscriptionId_; @@ -498,38 +553,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateSubscriptionR 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.cloud.pubsublite.proto.CreateSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CreateSubscriptionRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -537,7 +593,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -580,34 +637,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSubscriptionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - subscriptionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - skipBacklog_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + subscriptionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + skipBacklog_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,23 +677,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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; @@ -642,21 +707,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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 { @@ -664,30 +732,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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() { @@ -697,18 +776,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,42 +803,61 @@ public Builder setParentBytes( private com.google.cloud.pubsublite.proto.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> subscriptionBuilder_; + com.google.cloud.pubsublite.proto.Subscription, + com.google.cloud.pubsublite.proto.Subscription.Builder, + com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> + subscriptionBuilder_; /** + * + * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subscription field is set. */ public boolean hasSubscription() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subscription. */ public com.google.cloud.pubsublite.proto.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() + : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** + * + * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { @@ -769,12 +873,16 @@ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription va return this; } /** + * + * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubscription( com.google.cloud.pubsublite.proto.Subscription.Builder builderForValue) { @@ -788,18 +896,23 @@ public Builder setSubscription( return this; } /** + * + * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - subscription_ != null && - subscription_ != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && subscription_ != null + && subscription_ + != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; @@ -812,12 +925,16 @@ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription return this; } /** + * + * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubscription() { bitField0_ = (bitField0_ & ~0x00000002); @@ -830,12 +947,16 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBuilder() { bitField0_ |= 0x00000002; @@ -843,38 +964,50 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBui return getSubscriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null ? - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() + : subscription_; } } /** + * + * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> + com.google.cloud.pubsublite.proto.Subscription, + com.google.cloud.pubsublite.proto.Subscription.Builder, + com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( - getSubscription(), - getParentForChildren(), - isClean()); + subscriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Subscription, + com.google.cloud.pubsublite.proto.Subscription.Builder, + com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( + getSubscription(), getParentForChildren(), isClean()); subscription_ = null; } return subscriptionBuilder_; @@ -882,6 +1015,8 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr private java.lang.Object subscriptionId_ = ""; /** + * + * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -889,13 +1024,13 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subscriptionId. */ public java.lang.String getSubscriptionId() { java.lang.Object ref = subscriptionId_; 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(); subscriptionId_ = s; return s; @@ -904,6 +1039,8 @@ public java.lang.String getSubscriptionId() { } } /** + * + * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -911,15 +1048,14 @@ public java.lang.String getSubscriptionId() {
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for subscriptionId. */ - public com.google.protobuf.ByteString - getSubscriptionIdBytes() { + public com.google.protobuf.ByteString getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; 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); subscriptionId_ = b; return b; } else { @@ -927,6 +1063,8 @@ public java.lang.String getSubscriptionId() { } } /** + * + * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -934,18 +1072,22 @@ public java.lang.String getSubscriptionId() {
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The subscriptionId to set. * @return This builder for chaining. */ - public Builder setSubscriptionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscriptionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -953,6 +1095,7 @@ public Builder setSubscriptionId(
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSubscriptionId() { @@ -962,6 +1105,8 @@ public Builder clearSubscriptionId() { return this; } /** + * + * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -969,12 +1114,14 @@ public Builder clearSubscriptionId() {
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for subscriptionId to set. * @return This builder for chaining. */ - public Builder setSubscriptionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscriptionId_ = value; bitField0_ |= 0x00000004; @@ -982,8 +1129,10 @@ public Builder setSubscriptionIdBytes( return this; } - private boolean skipBacklog_ ; + private boolean skipBacklog_; /** + * + * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -991,6 +1140,7 @@ public Builder setSubscriptionIdBytes(
      * 
* * bool skip_backlog = 4; + * * @return The skipBacklog. */ @java.lang.Override @@ -998,6 +1148,8 @@ public boolean getSkipBacklog() { return skipBacklog_; } /** + * + * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1005,17 +1157,20 @@ public boolean getSkipBacklog() {
      * 
* * bool skip_backlog = 4; + * * @param value The skipBacklog to set. * @return This builder for chaining. */ public Builder setSkipBacklog(boolean value) { - + skipBacklog_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1023,6 +1178,7 @@ public Builder setSkipBacklog(boolean value) {
      * 
* * bool skip_backlog = 4; + * * @return This builder for chaining. */ public Builder clearSkipBacklog() { @@ -1031,9 +1187,9 @@ public Builder clearSkipBacklog() { 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); } @@ -1043,12 +1199,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CreateSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CreateSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.CreateSubscriptionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CreateSubscriptionRequest(); } @@ -1057,27 +1213,27 @@ public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1092,6 +1248,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.CreateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java index 35a369e3c..c901c2fa8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java @@ -1,65 +1,106 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface CreateSubscriptionRequestOrBuilder extends +public interface CreateSubscriptionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CreateSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subscription field is set. */ boolean hasSubscription(); /** + * + * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subscription. */ com.google.cloud.pubsublite.proto.Subscription getSubscription(); /** + * + * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** + * + * *
    * Required. The ID to use for the subscription, which will become the final
    * component of the subscription's name.
@@ -67,10 +108,13 @@ public interface CreateSubscriptionRequestOrBuilder extends
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subscriptionId. */ java.lang.String getSubscriptionId(); /** + * + * *
    * Required. The ID to use for the subscription, which will become the final
    * component of the subscription's name.
@@ -78,12 +122,14 @@ public interface CreateSubscriptionRequestOrBuilder extends
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for subscriptionId. */ - com.google.protobuf.ByteString - getSubscriptionIdBytes(); + com.google.protobuf.ByteString getSubscriptionIdBytes(); /** + * + * *
    * If true, the newly created subscription will only receive messages
    * published after the subscription was created. Otherwise, the entire
@@ -91,6 +137,7 @@ public interface CreateSubscriptionRequestOrBuilder extends
    * 
* * bool skip_backlog = 4; + * * @return The skipBacklog. */ boolean getSkipBacklog(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java index 7516ea05d..23f5b8ef7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for CreateTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateTopicRequest} */ -public final class CreateTopicRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateTopicRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CreateTopicRequest) CreateTopicRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateTopicRequest.newBuilder() to construct. private CreateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateTopicRequest() { parent_ = ""; topicId_ = ""; @@ -26,39 +44,46 @@ private CreateTopicRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateTopicRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateTopicRequest.class, com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateTopicRequest.class, + com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 @@ -67,30 +92,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 parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 { @@ -101,12 +128,16 @@ public java.lang.String getParent() { public static final int TOPIC_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Topic topic_; /** + * + * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the topic field is set. */ @java.lang.Override @@ -114,12 +145,16 @@ public boolean hasTopic() { return topic_ != null; } /** + * + * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The topic. */ @java.lang.Override @@ -127,12 +162,15 @@ public com.google.cloud.pubsublite.proto.Topic getTopic() { return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } /** + * + * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { @@ -140,9 +178,12 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { } public static final int TOPIC_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object topicId_ = ""; /** + * + * *
    * Required. The ID to use for the topic, which will become the final
    * component of the topic's name.
@@ -150,6 +191,7 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() {
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topicId. */ @java.lang.Override @@ -158,14 +200,15 @@ public java.lang.String getTopicId() { 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(); topicId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the topic, which will become the final
    * component of the topic's name.
@@ -173,16 +216,15 @@ public java.lang.String getTopicId() {
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for topicId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicIdBytes() { + public com.google.protobuf.ByteString getTopicIdBytes() { java.lang.Object ref = topicId_; 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); topicId_ = b; return b; } else { @@ -191,6 +233,7 @@ public java.lang.String getTopicId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -226,8 +268,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (topic_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTopic()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTopic()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topicId_); @@ -240,22 +281,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.cloud.pubsublite.proto.CreateTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CreateTopicRequest other = (com.google.cloud.pubsublite.proto.CreateTopicRequest) obj; + com.google.cloud.pubsublite.proto.CreateTopicRequest other = + (com.google.cloud.pubsublite.proto.CreateTopicRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasTopic() != other.hasTopic()) return false; if (hasTopic()) { - if (!getTopic() - .equals(other.getTopic())) return false; + if (!getTopic().equals(other.getTopic())) return false; } - if (!getTopicId() - .equals(other.getTopicId())) return false; + if (!getTopicId().equals(other.getTopicId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -281,129 +320,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest 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 CreateTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateTopicRequest} */ - 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.cloud.pubsublite.v1.CreateTopicRequest) com.google.cloud.pubsublite.proto.CreateTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateTopicRequest.class, com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateTopicRequest.class, + com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CreateTopicRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; } @java.lang.Override @@ -440,8 +485,11 @@ public com.google.cloud.pubsublite.proto.CreateTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CreateTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.CreateTopicRequest result = new com.google.cloud.pubsublite.proto.CreateTopicRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.CreateTopicRequest result = + new com.google.cloud.pubsublite.proto.CreateTopicRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -452,9 +500,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateTopicRequest result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.topic_ = topicBuilder_ == null - ? topic_ - : topicBuilder_.build(); + result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.topicId_ = topicId_; @@ -465,38 +511,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateTopicRequest 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.cloud.pubsublite.proto.CreateTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CreateTopicRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.CreateTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -504,7 +551,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CreateTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.CreateTopicRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.CreateTopicRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -544,29 +592,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getTopicFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - topicId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + topicId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,23 +626,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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; @@ -601,21 +656,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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 { @@ -623,30 +681,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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() { @@ -656,18 +725,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -677,42 +752,58 @@ public Builder setParentBytes( private com.google.cloud.pubsublite.proto.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> topicBuilder_; + com.google.cloud.pubsublite.proto.Topic, + com.google.cloud.pubsublite.proto.Topic.Builder, + com.google.cloud.pubsublite.proto.TopicOrBuilder> + topicBuilder_; /** + * + * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the topic field is set. */ public boolean hasTopic() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The topic. */ public com.google.cloud.pubsublite.proto.Topic getTopic() { if (topicBuilder_ == null) { - return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; + return topic_ == null + ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() + : topic_; } else { return topicBuilder_.getMessage(); } } /** + * + * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { @@ -728,15 +819,17 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** + * + * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTopic( - com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { + public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); } else { @@ -747,18 +840,21 @@ public Builder setTopic( return this; } /** + * + * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - topic_ != null && - topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && topic_ != null + && topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { getTopicBuilder().mergeFrom(value); } else { topic_ = value; @@ -771,12 +867,15 @@ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** + * + * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTopic() { bitField0_ = (bitField0_ & ~0x00000002); @@ -789,12 +888,15 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { bitField0_ |= 0x00000002; @@ -802,38 +904,48 @@ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { return getTopicFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { - return topic_ == null ? - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; + return topic_ == null + ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() + : topic_; } } /** + * + * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> + com.google.cloud.pubsublite.proto.Topic, + com.google.cloud.pubsublite.proto.Topic.Builder, + com.google.cloud.pubsublite.proto.TopicOrBuilder> getTopicFieldBuilder() { if (topicBuilder_ == null) { - topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder>( - getTopic(), - getParentForChildren(), - isClean()); + topicBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic, + com.google.cloud.pubsublite.proto.Topic.Builder, + com.google.cloud.pubsublite.proto.TopicOrBuilder>( + getTopic(), getParentForChildren(), isClean()); topic_ = null; } return topicBuilder_; @@ -841,6 +953,8 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { private java.lang.Object topicId_ = ""; /** + * + * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -848,13 +962,13 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topicId. */ public java.lang.String getTopicId() { java.lang.Object ref = topicId_; 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(); topicId_ = s; return s; @@ -863,6 +977,8 @@ public java.lang.String getTopicId() { } } /** + * + * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -870,15 +986,14 @@ public java.lang.String getTopicId() {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for topicId. */ - public com.google.protobuf.ByteString - getTopicIdBytes() { + public com.google.protobuf.ByteString getTopicIdBytes() { java.lang.Object ref = topicId_; 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); topicId_ = b; return b; } else { @@ -886,6 +1001,8 @@ public java.lang.String getTopicId() { } } /** + * + * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -893,18 +1010,22 @@ public java.lang.String getTopicId() {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The topicId to set. * @return This builder for chaining. */ - public Builder setTopicId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topicId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -912,6 +1033,7 @@ public Builder setTopicId(
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTopicId() { @@ -921,6 +1043,8 @@ public Builder clearTopicId() { return this; } /** + * + * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -928,21 +1052,23 @@ public Builder clearTopicId() {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for topicId to set. * @return This builder for chaining. */ - public Builder setTopicIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topicId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -952,12 +1078,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CreateTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CreateTopicRequest) private static final com.google.cloud.pubsublite.proto.CreateTopicRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CreateTopicRequest(); } @@ -966,27 +1092,27 @@ public static com.google.cloud.pubsublite.proto.CreateTopicRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1001,6 +1127,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CreateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java index f9643973b..b83adc03a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java @@ -1,65 +1,103 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface CreateTopicRequestOrBuilder extends +public interface CreateTopicRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CreateTopicRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the topic field is set. */ boolean hasTopic(); /** + * + * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The topic. */ com.google.cloud.pubsublite.proto.Topic getTopic(); /** + * + * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder(); /** + * + * *
    * Required. The ID to use for the topic, which will become the final
    * component of the topic's name.
@@ -67,10 +105,13 @@ public interface CreateTopicRequestOrBuilder extends
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topicId. */ java.lang.String getTopicId(); /** + * + * *
    * Required. The ID to use for the topic, which will become the final
    * component of the topic's name.
@@ -78,8 +119,8 @@ public interface CreateTopicRequestOrBuilder extends
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for topicId. */ - com.google.protobuf.ByteString - getTopicIdBytes(); + com.google.protobuf.ByteString getTopicIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java index 81f85bf39..c6dc66342 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java @@ -1,61 +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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * A cursor that describes the position of a message within a topic partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Cursor} */ -public final class Cursor extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Cursor extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Cursor) CursorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Cursor.newBuilder() to construct. private Cursor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Cursor() { - } + + private Cursor() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Cursor(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Cursor.class, com.google.cloud.pubsublite.proto.Cursor.Builder.class); + com.google.cloud.pubsublite.proto.Cursor.class, + com.google.cloud.pubsublite.proto.Cursor.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** + * + * *
    * The offset of a message within a topic partition. Must be greater than or
    * equal 0.
    * 
* * int64 offset = 1; + * * @return The offset. */ @java.lang.Override @@ -64,6 +85,7 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -75,8 +97,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 (offset_ != 0L) { output.writeInt64(1, offset_); } @@ -90,8 +111,7 @@ public int getSerializedSize() { size = 0; if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, offset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -101,15 +121,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.cloud.pubsublite.proto.Cursor)) { return super.equals(obj); } com.google.cloud.pubsublite.proto.Cursor other = (com.google.cloud.pubsublite.proto.Cursor) obj; - if (getOffset() - != other.getOffset()) return false; + if (getOffset() != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -122,137 +141,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.Cursor parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Cursor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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.cloud.pubsublite.proto.Cursor 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 cursor that describes the position of a message within a topic partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Cursor} */ - 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.cloud.pubsublite.v1.Cursor) com.google.cloud.pubsublite.proto.CursorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Cursor.class, com.google.cloud.pubsublite.proto.Cursor.Builder.class); + com.google.cloud.pubsublite.proto.Cursor.class, + com.google.cloud.pubsublite.proto.Cursor.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Cursor.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -262,9 +286,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; } @java.lang.Override @@ -283,8 +307,11 @@ public com.google.cloud.pubsublite.proto.Cursor build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor buildPartial() { - com.google.cloud.pubsublite.proto.Cursor result = new com.google.cloud.pubsublite.proto.Cursor(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.Cursor result = + new com.google.cloud.pubsublite.proto.Cursor(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -300,38 +327,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Cursor result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Cursor) { - return mergeFrom((com.google.cloud.pubsublite.proto.Cursor)other); + return mergeFrom((com.google.cloud.pubsublite.proto.Cursor) other); } else { super.mergeFrom(other); return this; @@ -369,17 +397,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - offset_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -389,16 +419,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long offset_ ; + private long offset_; /** + * + * *
      * The offset of a message within a topic partition. Must be greater than or
      * equal 0.
      * 
* * int64 offset = 1; + * * @return The offset. */ @java.lang.Override @@ -406,29 +440,35 @@ public long getOffset() { return offset_; } /** + * + * *
      * The offset of a message within a topic partition. Must be greater than or
      * equal 0.
      * 
* * int64 offset = 1; + * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The offset of a message within a topic partition. Must be greater than or
      * equal 0.
      * 
* * int64 offset = 1; + * * @return This builder for chaining. */ public Builder clearOffset() { @@ -437,9 +477,9 @@ public Builder clearOffset() { 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); } @@ -449,12 +489,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Cursor) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Cursor) private static final com.google.cloud.pubsublite.proto.Cursor DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Cursor(); } @@ -463,27 +503,27 @@ public static com.google.cloud.pubsublite.proto.Cursor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cursor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cursor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -498,6 +538,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Cursor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java new file mode 100644 index 000000000..cf33bd9f3 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java @@ -0,0 +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/cloud/pubsublite/v1/common.proto + +package com.google.cloud.pubsublite.proto; + +public interface CursorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Cursor) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The offset of a message within a topic partition. Must be greater than or
+   * equal 0.
+   * 
+ * + * int64 offset = 1; + * + * @return The offset. + */ + long getOffset(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java new file mode 100644 index 000000000..1608b0ea5 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java @@ -0,0 +1,253 @@ +/* + * 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/cloud/pubsublite/v1/cursor.proto + +package com.google.cloud.pubsublite.proto; + +public final class CursorProto { + private CursorProto() {} + + 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_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_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\'google/cloud/pubsublite/v1/cursor.prot" + + "o\022\032google.cloud.pubsublite.v1\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032\'google/cloud/p" + + "ubsublite/v1/common.proto\"E\n\032InitialComm" + + "itCursorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n" + + "\tpartition\030\002 \001(\003\"\035\n\033InitialCommitCursorR" + + "esponse\"R\n\034SequencedCommitCursorRequest\022" + + "2\n\006cursor\030\001 \001(\0132\".google.cloud.pubsublit" + + "e.v1.Cursor\"=\n\035SequencedCommitCursorResp" + + "onse\022\034\n\024acknowledged_commits\030\001 \001(\003\"\300\001\n\034S" + + "treamingCommitCursorRequest\022I\n\007initial\030\001" + + " \001(\01326.google.cloud.pubsublite.v1.Initia" + + "lCommitCursorRequestH\000\022J\n\006commit\030\002 \001(\01328" + + ".google.cloud.pubsublite.v1.SequencedCom" + + "mitCursorRequestH\000B\t\n\007request\"\303\001\n\035Stream" + + "ingCommitCursorResponse\022J\n\007initial\030\001 \001(\013" + + "27.google.cloud.pubsublite.v1.InitialCom" + + "mitCursorResponseH\000\022K\n\006commit\030\002 \001(\01329.go" + + "ogle.cloud.pubsublite.v1.SequencedCommit" + + "CursorResponseH\000B\t\n\007request\"r\n\023CommitCur" + + "sorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n\tpart" + + "ition\030\002 \001(\003\0222\n\006cursor\030\003 \001(\0132\".google.clo" + + "ud.pubsublite.v1.Cursor\"\026\n\024CommitCursorR" + + "esponse\"\204\001\n\033ListPartitionCursorsRequest\022" + + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.goog" + + "leapis.com/Subscription\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurso" + + "r\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\".g" + + "oogle.cloud.pubsublite.v1.Cursor\"\177\n\034List" + + "PartitionCursorsResponse\022F\n\021partition_cu" + + "rsors\030\001 \003(\0132+.google.cloud.pubsublite.v1" + + ".PartitionCursor\022\027\n\017next_page_token\030\002 \001(" + + "\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommitC" + + "ursor\0228.google.cloud.pubsublite.v1.Strea" + + "mingCommitCursorRequest\0329.google.cloud.p" + + "ubsublite.v1.StreamingCommitCursorRespon" + + "se\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.cloud" + + ".pubsublite.v1.CommitCursorRequest\0320.goo" + + "gle.cloud.pubsublite.v1.CommitCursorResp" + + "onse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=p" + + "rojects/*/locations/*/subscriptions/*}:c" + + "ommitCursor:\001*\022\336\001\n\024ListPartitionCursors\022" + + "7.google.cloud.pubsublite.v1.ListPartiti" + + "onCursorsRequest\0328.google.cloud.pubsubli" + + "te.v1.ListPartitionCursorsResponse\"S\202\323\344\223" + + "\002D\022B/v1/cursor/{parent=projects/*/locati" + + "ons/*/subscriptions/*}/cursors\332A\006parent\032" + + "M\312A\031pubsublite.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\317" + + "\001\n!com.google.cloud.pubsublite.protoB\013Cu" + + "rsorProtoP\001Z>cloud.google.com/go/pubsubl" + + "ite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252\002" + + "\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Clo" + + "ud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSub" + + "Lite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor, + new java.lang.String[] { + "Subscription", "Partition", + }); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor, + new java.lang.String[] { + "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor, + new java.lang.String[] { + "AcknowledgedCommits", + }); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor, + new java.lang.String[] { + "Initial", "Commit", "Request", + }); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor, + new java.lang.String[] { + "Initial", "Commit", "Request", + }); + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor, + new java.lang.String[] { + "Subscription", "Partition", "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor, + new java.lang.String[] { + "Partition", "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor, + new java.lang.String[] { + "PartitionCursors", "NextPageToken", + }); + 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.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.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java index 33d5dc9eb..09db7fda0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java @@ -1,64 +1,89 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for DeleteReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteReservationRequest} */ -public final class DeleteReservationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteReservationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.DeleteReservationRequest) DeleteReservationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteReservationRequest.newBuilder() to construct. private DeleteReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteReservationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteReservationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, + com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the reservation to delete.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,31 +92,33 @@ 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 reservation to delete.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +139,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_); } @@ -136,15 +163,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.cloud.pubsublite.proto.DeleteReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.DeleteReservationRequest other = (com.google.cloud.pubsublite.proto.DeleteReservationRequest) obj; + com.google.cloud.pubsublite.proto.DeleteReservationRequest other = + (com.google.cloud.pubsublite.proto.DeleteReservationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,129 +191,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest 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.cloud.pubsublite.proto.DeleteReservationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.DeleteReservationRequest 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 DeleteReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteReservationRequest} */ - 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.cloud.pubsublite.v1.DeleteReservationRequest) com.google.cloud.pubsublite.proto.DeleteReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, + com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.DeleteReservationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -296,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; } @java.lang.Override @@ -317,8 +351,11 @@ public com.google.cloud.pubsublite.proto.DeleteReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.DeleteReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.DeleteReservationRequest result = new com.google.cloud.pubsublite.proto.DeleteReservationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.DeleteReservationRequest result = + new com.google.cloud.pubsublite.proto.DeleteReservationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -334,38 +371,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.DeleteReservationRe 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.cloud.pubsublite.proto.DeleteReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.DeleteReservationRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.DeleteReservationRequest) other); } else { super.mergeFrom(other); return this; @@ -373,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.DeleteReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.DeleteReservationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.DeleteReservationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -405,17 +444,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -425,24 +466,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -451,22 +497,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -474,32 +523,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -509,28 +569,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -540,12 +606,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.DeleteReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.DeleteReservationRequest) private static final com.google.cloud.pubsublite.proto.DeleteReservationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.DeleteReservationRequest(); } @@ -554,27 +620,27 @@ public static com.google.cloud.pubsublite.proto.DeleteReservationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -589,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.DeleteReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java new file mode 100644 index 000000000..9f5e5e5a4 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java @@ -0,0 +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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface DeleteReservationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the reservation to delete.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the reservation to delete.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java index 5994a85c9..de9abb50e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java @@ -1,62 +1,87 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for DeleteSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; } @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the subscription to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the subscription to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.cloud.pubsublite.proto.DeleteSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest other = (com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest other = + (com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteSubscriptionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.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 DeleteSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.DeleteSubscriptionRequest) com.google.cloud.pubsublite.proto.DeleteSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest result = new com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest result = + new com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.DeleteSubscriptionR 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.cloud.pubsublite.proto.DeleteSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the subscription to delete.
      * 
* - * 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; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription to delete.
      * 
* - * 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 { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the subscription to delete.
      * 
* - * 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() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the subscription to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..73e697e85 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface DeleteSubscriptionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the subscription to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the subscription to delete.
+   * 
+ * + * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java index 64f1208d7..ea340d7e2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java @@ -1,62 +1,87 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for DeleteTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; } @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, + com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the topic to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the topic to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.cloud.pubsublite.proto.DeleteTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.DeleteTopicRequest other = (com.google.cloud.pubsublite.proto.DeleteTopicRequest) obj; + com.google.cloud.pubsublite.proto.DeleteTopicRequest other = + (com.google.cloud.pubsublite.proto.DeleteTopicRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.DeleteTopicRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteTopicRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.DeleteTopicRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 DeleteTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.DeleteTopicRequest) com.google.cloud.pubsublite.proto.DeleteTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, + com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.DeleteTopicRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; } @java.lang.Override @@ -313,8 +346,11 @@ public com.google.cloud.pubsublite.proto.DeleteTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.DeleteTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.DeleteTopicRequest result = new com.google.cloud.pubsublite.proto.DeleteTopicRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.DeleteTopicRequest result = + new com.google.cloud.pubsublite.proto.DeleteTopicRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +366,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.DeleteTopicRequest 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.cloud.pubsublite.proto.DeleteTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.DeleteTopicRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.DeleteTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +406,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.DeleteTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.DeleteTopicRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.DeleteTopicRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +461,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the topic to delete.
      * 
* - * 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; @@ -445,20 +490,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic to delete.
      * 
* - * 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 { @@ -466,28 +514,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic to delete.
      * 
* - * 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() { @@ -497,26 +556,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the topic to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.DeleteTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.DeleteTopicRequest) private static final com.google.cloud.pubsublite.proto.DeleteTopicRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.DeleteTopicRequest(); } @@ -540,27 +605,27 @@ public static com.google.cloud.pubsublite.proto.DeleteTopicRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.DeleteTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java new file mode 100644 index 000000000..00f384349 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java @@ -0,0 +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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface DeleteTopicRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the topic to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the topic to delete.
+   * 
+ * + * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java index fbc580763..263ed4347 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Configuration for a Pub/Sub Lite subscription that writes messages to a
  * destination. User subscriber clients must not connect to this subscription.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig}
  */
-public final class ExportConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ExportConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ExportConfig)
     ExportConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ExportConfig.newBuilder() to construct.
   private ExportConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ExportConfig() {
     desiredState_ = 0;
     currentState_ = 0;
@@ -28,39 +46,43 @@ private ExportConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExportConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CommonProto
+        .internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CommonProto
+        .internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.ExportConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
+            com.google.cloud.pubsublite.proto.ExportConfig.class,
+            com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The desired export state.
    * 
* * Protobuf enum {@code google.cloud.pubsublite.v1.ExportConfig.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -69,6 +91,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Messages are being exported.
      * 
@@ -77,6 +101,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * Exporting messages is suspended.
      * 
@@ -85,6 +111,8 @@ public enum State */ PAUSED(2), /** + * + * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -93,6 +121,8 @@ public enum State */ PERMISSION_DENIED(3), /** + * + * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -104,6 +134,8 @@ public enum State ; /** + * + * *
      * Default value. This value is unused.
      * 
@@ -112,6 +144,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Messages are being exported.
      * 
@@ -120,6 +154,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * Exporting messages is suspended.
      * 
@@ -128,6 +164,8 @@ public enum State */ public static final int PAUSED_VALUE = 2; /** + * + * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -136,6 +174,8 @@ public enum State */ public static final int PERMISSION_DENIED_VALUE = 3; /** + * + * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -144,7 +184,6 @@ public enum State */ public static final int NOT_FOUND_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -169,51 +208,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ACTIVE; - case 2: return PAUSED; - case 3: return PERMISSION_DENIED; - case 4: return NOT_FOUND; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return PAUSED; + case 3: + return PERMISSION_DENIED; + case 4: + return NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.pubsublite.proto.ExportConfig.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -230,11 +271,14 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.pubsublite.v1.ExportConfig.State) } - public interface PubSubConfigOrBuilder extends + public interface PubSubConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -242,10 +286,13 @@ public interface PubSubConfigOrBuilder extends
      * 
* * string topic = 1; + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -253,60 +300,67 @@ public interface PubSubConfigOrBuilder extends
      * 
* * string topic = 1; + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); } /** + * + * *
    * Configuration for exporting to a Pub/Sub topic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig.PubSubConfig} */ - public static final class PubSubConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PubSubConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) PubSubConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PubSubConfig.newBuilder() to construct. private PubSubConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PubSubConfig() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PubSubConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -314,6 +368,7 @@ protected java.lang.Object newInstance(
      * 
* * string topic = 1; + * * @return The topic. */ @java.lang.Override @@ -322,14 +377,15 @@ 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 Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -337,16 +393,15 @@ public java.lang.String getTopic() {
      * 
* * string topic = 1; + * * @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 { @@ -355,6 +410,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -366,8 +422,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_); } @@ -391,15 +446,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.cloud.pubsublite.proto.ExportConfig.PubSubConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig other = (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) obj; + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig other = + (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) obj; - if (!getTopic() - .equals(other.getTopic())) return false; + if (!getTopic().equals(other.getTopic())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -419,87 +474,94 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig 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 @@ -509,39 +571,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration for exporting to a Pub/Sub topic.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig.PubSubConfig} */ - 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.cloud.pubsublite.v1.ExportConfig.PubSubConfig) com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -551,13 +615,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance(); } @@ -572,13 +637,17 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig buildPartial() { - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result = new com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result = + new com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.topic_ = topic_; @@ -589,38 +658,41 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ExportConfig.PubSub 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.cloud.pubsublite.proto.ExportConfig.PubSubConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) other); } else { super.mergeFrom(other); return this; @@ -628,7 +700,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig other) { - if (other == com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) + return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -660,17 +734,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -680,10 +756,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -691,13 +770,13 @@ public Builder mergeFrom(
        * 
* * string topic = 1; + * * @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; @@ -706,6 +785,8 @@ public java.lang.String getTopic() { } } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -713,15 +794,14 @@ public java.lang.String getTopic() {
        * 
* * string topic = 1; + * * @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 { @@ -729,6 +809,8 @@ public java.lang.String getTopic() { } } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -736,18 +818,22 @@ public java.lang.String getTopic() {
        * 
* * string topic = 1; + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -755,6 +841,7 @@ public Builder setTopic(
        * 
* * string topic = 1; + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -764,6 +851,8 @@ public Builder clearTopic() { return this; } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -771,18 +860,21 @@ public Builder clearTopic() {
        * 
* * string topic = 1; + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -795,12 +887,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) - private static final com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig(); } @@ -809,27 +902,28 @@ public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSubConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSubConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,17 +938,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBSUB_CONFIG(3), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -870,82 +966,113 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 3: return PUBSUB_CONFIG; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 3: + return PUBSUB_CONFIG; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int DESIRED_STATE_FIELD_NUMBER = 1; private int desiredState_ = 0; /** + * + * *
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; + * * @return The enum numeric value on the wire for desiredState. */ - @java.lang.Override public int getDesiredStateValue() { + @java.lang.Override + public int getDesiredStateValue() { return desiredState_; } /** + * + * *
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; + * * @return The desiredState. */ - @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); - return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState() { + com.google.cloud.pubsublite.proto.ExportConfig.State result = + com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); + return result == null + ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED + : result; } public static final int CURRENT_STATE_FIELD_NUMBER = 6; private int currentState_ = 0; /** + * + * *
    * Output only. The current state of the export, which may be different to the
    * desired state due to errors. This field is output only.
    * 
* - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for currentState. */ - @java.lang.Override public int getCurrentStateValue() { + @java.lang.Override + public int getCurrentStateValue() { return currentState_; } /** + * + * *
    * Output only. The current state of the export, which may be different to the
    * desired state due to errors. This field is output only.
    * 
* - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The currentState. */ - @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); - return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() { + com.google.cloud.pubsublite.proto.ExportConfig.State result = + com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); + return result == null + ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED + : result; } public static final int DEAD_LETTER_TOPIC_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object deadLetterTopic_ = ""; /** + * + * *
    * Optional. The name of an optional Pub/Sub Lite topic to publish messages
    * that can not be exported to the destination. For example, the message can
@@ -957,7 +1084,10 @@ public int getNumber() {
    * may be changed or removed.
    * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The deadLetterTopic. */ @java.lang.Override @@ -966,14 +1096,15 @@ public java.lang.String getDeadLetterTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deadLetterTopic_ = s; return s; } } /** + * + * *
    * Optional. The name of an optional Pub/Sub Lite topic to publish messages
    * that can not be exported to the destination. For example, the message can
@@ -985,17 +1116,18 @@ public java.lang.String getDeadLetterTopic() {
    * may be changed or removed.
    * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -1005,12 +1137,15 @@ public java.lang.String getDeadLetterTopic() { public static final int PUBSUB_CONFIG_FIELD_NUMBER = 3; /** + * + * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; + * * @return Whether the pubsubConfig field is set. */ @java.lang.Override @@ -1018,22 +1153,27 @@ public boolean hasPubsubConfig() { return destinationCase_ == 3; } /** + * + * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; + * * @return The pubsubConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConfig() { if (destinationCase_ == 3) { - return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_; + return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_; } return com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance(); } /** + * + * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
@@ -1042,14 +1182,16 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf
    * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
    */
   @java.lang.Override
-  public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getPubsubConfigOrBuilder() {
+  public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder
+      getPubsubConfigOrBuilder() {
     if (destinationCase_ == 3) {
-       return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_;
+      return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_;
     }
     return com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1061,18 +1203,20 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    if (desiredState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    if (desiredState_
+        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, desiredState_);
     }
     if (destinationCase_ == 3) {
-      output.writeMessage(3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
+      output.writeMessage(
+          3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deadLetterTopic_);
     }
-    if (currentState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+    if (currentState_
+        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(6, currentState_);
     }
     getUnknownFields().writeTo(output);
@@ -1084,20 +1228,21 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (desiredState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, desiredState_);
+    if (desiredState_
+        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, desiredState_);
     }
     if (destinationCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deadLetterTopic_);
     }
-    if (currentState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(6, currentState_);
+    if (currentState_
+        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, currentState_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1107,22 +1252,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.cloud.pubsublite.proto.ExportConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ExportConfig other = (com.google.cloud.pubsublite.proto.ExportConfig) obj;
+    com.google.cloud.pubsublite.proto.ExportConfig other =
+        (com.google.cloud.pubsublite.proto.ExportConfig) obj;
 
     if (desiredState_ != other.desiredState_) return false;
     if (currentState_ != other.currentState_) return false;
-    if (!getDeadLetterTopic()
-        .equals(other.getDeadLetterTopic())) return false;
+    if (!getDeadLetterTopic().equals(other.getDeadLetterTopic())) return false;
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 3:
-        if (!getPubsubConfig()
-            .equals(other.getPubsubConfig())) return false;
+        if (!getPubsubConfig().equals(other.getPubsubConfig())) return false;
         break;
       case 0:
       default:
@@ -1157,97 +1301,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.ExportConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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.cloud.pubsublite.proto.ExportConfig 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 Pub/Sub Lite subscription that writes messages to a
    * destination. User subscriber clients must not connect to this subscription.
@@ -1255,33 +1406,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig}
    */
-  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.cloud.pubsublite.v1.ExportConfig)
       com.google.cloud.pubsublite.proto.ExportConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CommonProto
+          .internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CommonProto
+          .internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.ExportConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
+              com.google.cloud.pubsublite.proto.ExportConfig.class,
+              com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.ExportConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1298,9 +1448,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CommonProto
+          .internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1319,8 +1469,11 @@ public com.google.cloud.pubsublite.proto.ExportConfig build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.ExportConfig buildPartial() {
-      com.google.cloud.pubsublite.proto.ExportConfig result = new com.google.cloud.pubsublite.proto.ExportConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.ExportConfig result =
+          new com.google.cloud.pubsublite.proto.ExportConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1342,8 +1495,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ExportConfig result
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.ExportConfig result) {
       result.destinationCase_ = destinationCase_;
       result.destination_ = this.destination_;
-      if (destinationCase_ == 3 &&
-          pubsubConfigBuilder_ != null) {
+      if (destinationCase_ == 3 && pubsubConfigBuilder_ != null) {
         result.destination_ = pubsubConfigBuilder_.build();
       }
     }
@@ -1352,38 +1504,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.ExportConfig r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.ExportConfig) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1404,13 +1557,15 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ExportConfig other) {
         onChanged();
       }
       switch (other.getDestinationCase()) {
-        case PUBSUB_CONFIG: {
-          mergePubsubConfig(other.getPubsubConfig());
-          break;
-        }
-        case DESTINATION_NOT_SET: {
-          break;
-        }
+        case PUBSUB_CONFIG:
+          {
+            mergePubsubConfig(other.getPubsubConfig());
+            break;
+          }
+        case DESTINATION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1438,34 +1593,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              desiredState_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 26: {
-              input.readMessage(
-                  getPubsubConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              destinationCase_ = 3;
-              break;
-            } // case 26
-            case 42: {
-              deadLetterTopic_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 42
-            case 48: {
-              currentState_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 48
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                desiredState_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 26:
+              {
+                input.readMessage(getPubsubConfigFieldBuilder().getBuilder(), extensionRegistry);
+                destinationCase_ = 3;
+                break;
+              } // case 26
+            case 42:
+              {
+                deadLetterTopic_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 42
+            case 48:
+              {
+                currentState_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 48
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1475,12 +1633,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-    public DestinationCase
-        getDestinationCase() {
-      return DestinationCase.forNumber(
-          destinationCase_);
+
+    public DestinationCase getDestinationCase() {
+      return DestinationCase.forNumber(destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -1494,24 +1652,31 @@ public Builder clearDestination() {
 
     private int desiredState_ = 0;
     /**
+     *
+     *
      * 
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; + * * @return The enum numeric value on the wire for desiredState. */ - @java.lang.Override public int getDesiredStateValue() { + @java.lang.Override + public int getDesiredStateValue() { return desiredState_; } /** + * + * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; + * * @param value The enum numeric value on the wire for desiredState to set. * @return This builder for chaining. */ @@ -1522,26 +1687,35 @@ public Builder setDesiredStateValue(int value) { return this; } /** + * + * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; + * * @return The desiredState. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); - return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; + com.google.cloud.pubsublite.proto.ExportConfig.State result = + com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); + return result == null + ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED + : result; } /** + * + * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; + * * @param value The desiredState to set. * @return This builder for chaining. */ @@ -1555,12 +1729,15 @@ public Builder setDesiredState(com.google.cloud.pubsublite.proto.ExportConfig.St return this; } /** + * + * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; + * * @return This builder for chaining. */ public Builder clearDesiredState() { @@ -1572,24 +1749,35 @@ public Builder clearDesiredState() { private int currentState_ = 0; /** + * + * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for currentState. */ - @java.lang.Override public int getCurrentStateValue() { + @java.lang.Override + public int getCurrentStateValue() { return currentState_; } /** + * + * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for currentState to set. * @return This builder for chaining. */ @@ -1600,26 +1788,39 @@ public Builder setCurrentStateValue(int value) { return this; } /** + * + * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The currentState. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); - return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; + com.google.cloud.pubsublite.proto.ExportConfig.State result = + com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); + return result == null + ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The currentState to set. * @return This builder for chaining. */ @@ -1633,12 +1834,17 @@ public Builder setCurrentState(com.google.cloud.pubsublite.proto.ExportConfig.St return this; } /** + * + * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearCurrentState() { @@ -1650,6 +1856,8 @@ public Builder clearCurrentState() { private java.lang.Object deadLetterTopic_ = ""; /** + * + * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1661,14 +1869,16 @@ public Builder clearCurrentState() {
      * may be changed or removed.
      * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -1677,6 +1887,8 @@ public java.lang.String getDeadLetterTopic() { } } /** + * + * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1688,16 +1900,17 @@ public java.lang.String getDeadLetterTopic() {
      * may be changed or removed.
      * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -1705,6 +1918,8 @@ public java.lang.String getDeadLetterTopic() { } } /** + * + * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1716,19 +1931,25 @@ public java.lang.String getDeadLetterTopic() {
      * may be changed or removed.
      * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDeadLetterTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } deadLetterTopic_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1740,7 +1961,10 @@ public Builder setDeadLetterTopic(
      * may be changed or removed.
      * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { @@ -1750,6 +1974,8 @@ public Builder clearDeadLetterTopic() { return this; } /** + * + * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1761,13 +1987,17 @@ public Builder clearDeadLetterTopic() {
      * may be changed or removed.
      * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); deadLetterTopic_ = value; bitField0_ |= 0x00000004; @@ -1776,14 +2006,20 @@ public Builder setDeadLetterTopicBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> pubsubConfigBuilder_; + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> + pubsubConfigBuilder_; /** + * + * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; + * * @return Whether the pubsubConfig field is set. */ @java.lang.Override @@ -1791,12 +2027,15 @@ public boolean hasPubsubConfig() { return destinationCase_ == 3; } /** + * + * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; + * * @return The pubsubConfig. */ @java.lang.Override @@ -1814,6 +2053,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf } } /** + * + * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1821,7 +2062,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public Builder setPubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
+    public Builder setPubsubConfig(
+        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
       if (pubsubConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1835,6 +2077,8 @@ public Builder setPubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.Pu
       return this;
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1854,6 +2098,8 @@ public Builder setPubsubConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1861,12 +2107,18 @@ public Builder setPubsubConfig(
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public Builder mergePubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
+    public Builder mergePubsubConfig(
+        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
       if (pubsubConfigBuilder_ == null) {
-        if (destinationCase_ == 3 &&
-            destination_ != com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) {
-          destination_ = com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 3
+            && destination_
+                != com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig
+                    .getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder(
+                      (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -1882,6 +2134,8 @@ public Builder mergePubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.
       return this;
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1906,6 +2160,8 @@ public Builder clearPubsubConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1913,10 +2169,13 @@ public Builder clearPubsubConfig() {
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder getPubsubConfigBuilder() {
+    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder
+        getPubsubConfigBuilder() {
       return getPubsubConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1925,7 +2184,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder getPu
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getPubsubConfigOrBuilder() {
+    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder
+        getPubsubConfigOrBuilder() {
       if ((destinationCase_ == 3) && (pubsubConfigBuilder_ != null)) {
         return pubsubConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1936,6 +2196,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getP
       }
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1944,14 +2206,20 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getP
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> 
+            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig,
+            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder,
+            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>
         getPubsubConfigFieldBuilder() {
       if (pubsubConfigBuilder_ == null) {
         if (!(destinationCase_ == 3)) {
-          destination_ = com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
+          destination_ =
+              com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
         }
-        pubsubConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>(
+        pubsubConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig,
+                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder,
+                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>(
                 (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1961,9 +2229,9 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getP
       onChanged();
       return pubsubConfigBuilder_;
     }
+
     @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);
     }
 
@@ -1973,12 +2241,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ExportConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ExportConfig)
   private static final com.google.cloud.pubsublite.proto.ExportConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ExportConfig();
   }
@@ -1987,27 +2255,27 @@ public static com.google.cloud.pubsublite.proto.ExportConfig getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ExportConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ExportConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2022,6 +2290,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.ExportConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
index 3baaa09e1..a4b5adbae 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
@@ -1,55 +1,89 @@
+/*
+ * 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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface ExportConfigOrBuilder extends
+public interface ExportConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ExportConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; + * * @return The enum numeric value on the wire for desiredState. */ int getDesiredStateValue(); /** + * + * *
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; + * * @return The desiredState. */ com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState(); /** + * + * *
    * Output only. The current state of the export, which may be different to the
    * desired state due to errors. This field is output only.
    * 
* - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for currentState. */ int getCurrentStateValue(); /** + * + * *
    * Output only. The current state of the export, which may be different to the
    * desired state due to errors. This field is output only.
    * 
* - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The currentState. */ com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState(); /** + * + * *
    * Optional. The name of an optional Pub/Sub Lite topic to publish messages
    * that can not be exported to the destination. For example, the message can
@@ -61,11 +95,16 @@ public interface ExportConfigOrBuilder extends
    * may be changed or removed.
    * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); /** + * + * *
    * Optional. The name of an optional Pub/Sub Lite topic to publish messages
    * that can not be exported to the destination. For example, the message can
@@ -77,33 +116,43 @@ public interface ExportConfigOrBuilder extends
    * may be changed or removed.
    * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for deadLetterTopic. */ - com.google.protobuf.ByteString - getDeadLetterTopicBytes(); + com.google.protobuf.ByteString getDeadLetterTopicBytes(); /** + * + * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; + * * @return Whether the pubsubConfig field is set. */ boolean hasPubsubConfig(); /** + * + * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; + * * @return The pubsubConfig. */ com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConfig(); /** + * + * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
similarity index 66%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
index fea8e5ea0..3fbc55ecb 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Request to grant tokens to the server, requesting delivery of messages when
  * they become available.
@@ -11,51 +28,55 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.FlowControlRequest}
  */
-public final class FlowControlRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FlowControlRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.FlowControlRequest)
     FlowControlRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FlowControlRequest.newBuilder() to construct.
   private FlowControlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private FlowControlRequest() {
-  }
+
+  private FlowControlRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FlowControlRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.FlowControlRequest.class, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.FlowControlRequest.class,
+            com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
   }
 
   public static final int ALLOWED_MESSAGES_FIELD_NUMBER = 1;
   private long allowedMessages_ = 0L;
   /**
+   *
+   *
    * 
    * The number of message tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_messages = 1; + * * @return The allowedMessages. */ @java.lang.Override @@ -66,11 +87,14 @@ public long getAllowedMessages() { public static final int ALLOWED_BYTES_FIELD_NUMBER = 2; private long allowedBytes_ = 0L; /** + * + * *
    * The number of byte tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_bytes = 2; + * * @return The allowedBytes. */ @java.lang.Override @@ -79,6 +103,7 @@ public long getAllowedBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -90,8 +115,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 (allowedMessages_ != 0L) { output.writeInt64(1, allowedMessages_); } @@ -108,12 +132,10 @@ public int getSerializedSize() { size = 0; if (allowedMessages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, allowedMessages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, allowedMessages_); } if (allowedBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, allowedBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, allowedBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +145,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.cloud.pubsublite.proto.FlowControlRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.FlowControlRequest other = (com.google.cloud.pubsublite.proto.FlowControlRequest) obj; + com.google.cloud.pubsublite.proto.FlowControlRequest other = + (com.google.cloud.pubsublite.proto.FlowControlRequest) obj; - if (getAllowedMessages() - != other.getAllowedMessages()) return false; - if (getAllowedBytes() - != other.getAllowedBytes()) return false; + if (getAllowedMessages() != other.getAllowedMessages()) return false; + if (getAllowedBytes() != other.getAllowedBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -146,107 +167,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOWED_MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAllowedMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAllowedMessages()); hash = (37 * hash) + ALLOWED_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAllowedBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAllowedBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.FlowControlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest 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.cloud.pubsublite.proto.FlowControlRequest 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 to grant tokens to the server, requesting delivery of messages when
    * they become available.
@@ -254,33 +280,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.FlowControlRequest}
    */
-  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.cloud.pubsublite.v1.FlowControlRequest)
       com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.FlowControlRequest.class, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.FlowControlRequest.class,
+              com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.FlowControlRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -291,9 +316,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
     }
 
     @java.lang.Override
@@ -312,8 +337,11 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.FlowControlRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.FlowControlRequest result = new com.google.cloud.pubsublite.proto.FlowControlRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.FlowControlRequest result =
+          new com.google.cloud.pubsublite.proto.FlowControlRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -332,38 +360,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.FlowControlRequest
     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.cloud.pubsublite.proto.FlowControlRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.FlowControlRequest)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.FlowControlRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -371,7 +400,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.FlowControlRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance())
+        return this;
       if (other.getAllowedMessages() != 0L) {
         setAllowedMessages(other.getAllowedMessages());
       }
@@ -404,22 +434,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              allowedMessages_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              allowedBytes_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                allowedMessages_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                allowedBytes_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -429,15 +462,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long allowedMessages_ ;
+    private long allowedMessages_;
     /**
+     *
+     *
      * 
      * The number of message tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_messages = 1; + * * @return The allowedMessages. */ @java.lang.Override @@ -445,27 +482,33 @@ public long getAllowedMessages() { return allowedMessages_; } /** + * + * *
      * The number of message tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_messages = 1; + * * @param value The allowedMessages to set. * @return This builder for chaining. */ public Builder setAllowedMessages(long value) { - + allowedMessages_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The number of message tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_messages = 1; + * * @return This builder for chaining. */ public Builder clearAllowedMessages() { @@ -475,13 +518,16 @@ public Builder clearAllowedMessages() { return this; } - private long allowedBytes_ ; + private long allowedBytes_; /** + * + * *
      * The number of byte tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_bytes = 2; + * * @return The allowedBytes. */ @java.lang.Override @@ -489,27 +535,33 @@ public long getAllowedBytes() { return allowedBytes_; } /** + * + * *
      * The number of byte tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_bytes = 2; + * * @param value The allowedBytes to set. * @return This builder for chaining. */ public Builder setAllowedBytes(long value) { - + allowedBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The number of byte tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_bytes = 2; + * * @return This builder for chaining. */ public Builder clearAllowedBytes() { @@ -518,9 +570,9 @@ public Builder clearAllowedBytes() { 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); } @@ -530,12 +582,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.FlowControlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.FlowControlRequest) private static final com.google.cloud.pubsublite.proto.FlowControlRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.FlowControlRequest(); } @@ -544,27 +596,27 @@ public static com.google.cloud.pubsublite.proto.FlowControlRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlowControlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowControlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +631,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.FlowControlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java index 915f21568..d0d048716 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java @@ -1,28 +1,50 @@ +/* + * 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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface FlowControlRequestOrBuilder extends +public interface FlowControlRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.FlowControlRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The number of message tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_messages = 1; + * * @return The allowedMessages. */ long getAllowedMessages(); /** + * + * *
    * The number of byte tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_bytes = 2; + * * @return The allowedBytes. */ long getAllowedBytes(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java index cf60f4dbb..e1e5211f5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java @@ -1,64 +1,89 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for GetReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetReservationRequest} */ -public final class GetReservationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetReservationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.GetReservationRequest) GetReservationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetReservationRequest.newBuilder() to construct. private GetReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetReservationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetReservationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetReservationRequest.class, com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetReservationRequest.class, + com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the reservation whose configuration to return.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,31 +92,33 @@ 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 reservation whose configuration to return.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +139,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_); } @@ -136,15 +163,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.cloud.pubsublite.proto.GetReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetReservationRequest other = (com.google.cloud.pubsublite.proto.GetReservationRequest) obj; + com.google.cloud.pubsublite.proto.GetReservationRequest other = + (com.google.cloud.pubsublite.proto.GetReservationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,129 +191,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.GetReservationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest 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.cloud.pubsublite.proto.GetReservationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.GetReservationRequest 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 GetReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetReservationRequest} */ - 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.cloud.pubsublite.v1.GetReservationRequest) com.google.cloud.pubsublite.proto.GetReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetReservationRequest.class, com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetReservationRequest.class, + com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetReservationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -296,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; } @java.lang.Override @@ -317,8 +351,11 @@ public com.google.cloud.pubsublite.proto.GetReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetReservationRequest result = new com.google.cloud.pubsublite.proto.GetReservationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.GetReservationRequest result = + new com.google.cloud.pubsublite.proto.GetReservationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -334,38 +371,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetReservationReque 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.cloud.pubsublite.proto.GetReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetReservationRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetReservationRequest) other); } else { super.mergeFrom(other); return this; @@ -373,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetReservationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.GetReservationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -405,17 +444,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -425,24 +466,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -451,22 +497,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -474,32 +523,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -509,28 +569,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -540,12 +606,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetReservationRequest) private static final com.google.cloud.pubsublite.proto.GetReservationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetReservationRequest(); } @@ -554,27 +620,27 @@ public static com.google.cloud.pubsublite.proto.GetReservationRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -589,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.GetReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java new file mode 100644 index 000000000..5d90576f2 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java @@ -0,0 +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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface GetReservationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the reservation whose configuration to return.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the reservation whose configuration to return.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java index a4a22ba0a..8e10e09ef 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java @@ -1,62 +1,87 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for GetSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; } @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the subscription whose configuration to return.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the subscription whose configuration to return.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.cloud.pubsublite.proto.GetSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetSubscriptionRequest other = (com.google.cloud.pubsublite.proto.GetSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.GetSubscriptionRequest other = + (com.google.cloud.pubsublite.proto.GetSubscriptionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetSubscriptionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.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 GetSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.GetSubscriptionRequest) com.google.cloud.pubsublite.proto.GetSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetSubscriptionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.pubsublite.proto.GetSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetSubscriptionRequest result = new com.google.cloud.pubsublite.proto.GetSubscriptionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.GetSubscriptionRequest result = + new com.google.cloud.pubsublite.proto.GetSubscriptionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetSubscriptionRequ 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.cloud.pubsublite.proto.GetSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetSubscriptionRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetSubscriptionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.GetSubscriptionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * 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; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * 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 { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * 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() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.GetSubscriptionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetSubscriptionRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.GetSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..0010c607f --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java @@ -0,0 +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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface GetSubscriptionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the subscription whose configuration to return.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the subscription whose configuration to return.
+   * 
+ * + * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java index c5d9498ae..a162767c8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java @@ -1,62 +1,87 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for GetTopicPartitions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetTopicPartitionsRequest} */ -public final class GetTopicPartitionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetTopicPartitionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) GetTopicPartitionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetTopicPartitionsRequest.newBuilder() to construct. private GetTopicPartitionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetTopicPartitionsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetTopicPartitionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The topic whose partition information to return.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The topic whose partition information to return.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.cloud.pubsublite.proto.GetTopicPartitionsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest other = (com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) obj; + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest other = + (com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest 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.cloud.pubsublite.proto.GetTopicPartitionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest 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 GetTopicPartitions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetTopicPartitionsRequest} */ - 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.cloud.pubsublite.v1.GetTopicPartitionsRequest) com.google.cloud.pubsublite.proto.GetTopicPartitionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest result = new com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest result = + new com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetTopicPartitionsR 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.cloud.pubsublite.proto.GetTopicPartitionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The topic whose partition information to return.
      * 
* - * 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; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The topic whose partition information to return.
      * 
* - * 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 { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The topic whose partition information to return.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The topic whose partition information to return.
      * 
* - * 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() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The topic whose partition information to return.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) private static final com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTopicPartitionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTopicPartitionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java new file mode 100644 index 000000000..c29cab5ec --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java @@ -0,0 +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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface GetTopicPartitionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The topic whose partition information to return.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The topic whose partition information to return.
+   * 
+ * + * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java index 382f3563d..2035b0d22 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java @@ -1,62 +1,87 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for GetTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; } @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicRequest.class, com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicRequest.class, + com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the topic whose configuration to return.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the topic whose configuration to return.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.cloud.pubsublite.proto.GetTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetTopicRequest other = (com.google.cloud.pubsublite.proto.GetTopicRequest) obj; + com.google.cloud.pubsublite.proto.GetTopicRequest other = + (com.google.cloud.pubsublite.proto.GetTopicRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetTopicRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetTopicRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.GetTopicRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.GetTopicRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 GetTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.GetTopicRequest) com.google.cloud.pubsublite.proto.GetTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicRequest.class, com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicRequest.class, + com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetTopicRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; } @java.lang.Override @@ -313,8 +346,11 @@ public com.google.cloud.pubsublite.proto.GetTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetTopicRequest result = new com.google.cloud.pubsublite.proto.GetTopicRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.GetTopicRequest result = + new com.google.cloud.pubsublite.proto.GetTopicRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +366,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetTopicRequest res 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.cloud.pubsublite.proto.GetTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +406,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetTopicRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.GetTopicRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +461,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * 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; @@ -445,20 +490,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * 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 { @@ -466,28 +514,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * 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() { @@ -497,26 +556,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetTopicRequest) private static final com.google.cloud.pubsublite.proto.GetTopicRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetTopicRequest(); } @@ -540,27 +605,27 @@ public static com.google.cloud.pubsublite.proto.GetTopicRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.GetTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java new file mode 100644 index 000000000..4da4a7f09 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java @@ -0,0 +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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface GetTopicRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the topic whose configuration to return.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the topic whose configuration to return.
+   * 
+ * + * + * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java index f0ca438f0..12a079f84 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * The first streaming request that must be sent on a newly-opened stream. The
  * client must wait for the response before sending subsequent requests on the
@@ -12,53 +29,59 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorRequest}
  */
-public final class InitialCommitCursorRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class InitialCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialCommitCursorRequest)
     InitialCommitCursorRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use InitialCommitCursorRequest.newBuilder() to construct.
   private InitialCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private InitialCommitCursorRequest() {
     subscription_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InitialCommitCursorRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CursorProto
+        .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CursorProto
+        .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class,
+            com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
+   *
+   *
    * 
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; + * * @return The subscription. */ @java.lang.Override @@ -67,29 +90,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; } } /** + * + * *
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; + * * @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 { @@ -100,12 +123,15 @@ public java.lang.String getSubscription() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** + * + * *
    * The partition for which to manage committed cursors. Partitions are zero
    * indexed, so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -114,6 +140,7 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +152,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_); } @@ -146,8 +172,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -157,17 +182,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.cloud.pubsublite.proto.InitialCommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest other = (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest other = + (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; - if (getPartition() - != other.getPartition()) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (getPartition() != other.getPartition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,104 +206,111 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest 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.cloud.pubsublite.proto.InitialCommitCursorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest 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; } /** + * + * *
    * The first streaming request that must be sent on a newly-opened stream. The
    * client must wait for the response before sending subsequent requests on the
@@ -288,33 +319,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorRequest}
    */
-  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.cloud.pubsublite.v1.InitialCommitCursorRequest)
       com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CursorProto
+          .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CursorProto
+          .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class,
+              com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -325,13 +355,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CursorProto
+          .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getDefaultInstanceForType() {
+    public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance();
     }
 
@@ -346,13 +377,17 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result = new com.google.cloud.pubsublite.proto.InitialCommitCursorRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result =
+          new com.google.cloud.pubsublite.proto.InitialCommitCursorRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result) {
+    private void buildPartial0(
+        com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.subscription_ = subscription_;
@@ -366,38 +401,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialCommitCursor
     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.cloud.pubsublite.proto.InitialCommitCursorRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorRequest)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -405,7 +441,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance())
+        return this;
       if (!other.getSubscription().isEmpty()) {
         subscription_ = other.subscription_;
         bitField0_ |= 0x00000001;
@@ -440,22 +478,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              subscription_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              partition_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                subscription_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                partition_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -465,22 +506,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
+     *
+     *
      * 
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; + * * @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; @@ -489,20 +533,21 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; + * * @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 { @@ -510,28 +555,35 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -541,17 +593,21 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -559,14 +615,17 @@ public Builder setSubscriptionBytes( return this; } - private long partition_ ; + private long partition_; /** + * + * *
      * The partition for which to manage committed cursors. Partitions are zero
      * indexed, so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -574,29 +633,35 @@ public long getPartition() { return partition_; } /** + * + * *
      * The partition for which to manage committed cursors. Partitions are zero
      * indexed, so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; + * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The partition for which to manage committed cursors. Partitions are zero
      * indexed, so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -605,9 +670,9 @@ public Builder clearPartition() { 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); } @@ -617,12 +682,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialCommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialCommitCursorRequest) - private static final com.google.cloud.pubsublite.proto.InitialCommitCursorRequest DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.InitialCommitCursorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialCommitCursorRequest(); } @@ -631,27 +697,27 @@ public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialCommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialCommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,6 +732,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java index 13f989e73..4003387aa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java @@ -1,39 +1,63 @@ +/* + * 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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface InitialCommitCursorRequestOrBuilder extends +public interface InitialCommitCursorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialCommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * The partition for which to manage committed cursors. Partitions are zero
    * indexed, so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; + * * @return The partition. */ long getPartition(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java index 7b8004f7c..4e079b5a2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java @@ -1,53 +1,72 @@ +/* + * 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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response to an InitialCommitCursorRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorResponse} */ -public final class InitialCommitCursorResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InitialCommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialCommitCursorResponse) InitialCommitCursorResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InitialCommitCursorResponse.newBuilder() to construct. private InitialCommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InitialCommitCursorResponse() { - } + + private InitialCommitCursorResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InitialCommitCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.cloud.pubsublite.proto.InitialCommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse other = (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse other = + (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse 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.cloud.pubsublite.proto.InitialCommitCursorResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse 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 to an InitialCommitCursorRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorResponse} */ - 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.cloud.pubsublite.v1.InitialCommitCursorResponse) com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,13 +258,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } @@ -253,7 +280,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse result = new com.google.cloud.pubsublite.proto.InitialCommitCursorResponse(this); + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse result = + new com.google.cloud.pubsublite.proto.InitialCommitCursorResponse(this); onBuilt(); return result; } @@ -262,38 +290,39 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse buildPartia 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.cloud.pubsublite.proto.InitialCommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) other); } else { super.mergeFrom(other); return this; @@ -301,7 +330,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialCommitCursorResponse other) { - if (other == com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +359,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +375,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,12 +387,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialCommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialCommitCursorResponse) - private static final com.google.cloud.pubsublite.proto.InitialCommitCursorResponse DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.InitialCommitCursorResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialCommitCursorResponse(); } @@ -369,27 +402,27 @@ public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialCommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialCommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +437,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java new file mode 100644 index 000000000..159aeb9d8 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.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/cloud/pubsublite/v1/cursor.proto + +package com.google.cloud.pubsublite.proto; + +public interface InitialCommitCursorResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialCommitCursorResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java index 059d83966..958e9f0a1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * The first request that must be sent on a newly-opened stream. The client must
  * wait for the response before sending subsequent requests on the stream.
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest}
  */
-public final class InitialPartitionAssignmentRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class InitialPartitionAssignmentRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest)
     InitialPartitionAssignmentRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use InitialPartitionAssignmentRequest.newBuilder() to construct.
-  private InitialPartitionAssignmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private InitialPartitionAssignmentRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private InitialPartitionAssignmentRequest() {
     subscription_ = "";
     clientId_ = com.google.protobuf.ByteString.EMPTY;
@@ -27,33 +46,37 @@ private InitialPartitionAssignmentRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InitialPartitionAssignmentRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class,
+            com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
+   *
+   *
    * 
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -61,6 +84,7 @@ protected java.lang.Object newInstance(
    * 
* * string subscription = 1; + * * @return The subscription. */ @java.lang.Override @@ -69,14 +93,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; } } /** + * + * *
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -84,16 +109,15 @@ public java.lang.String getSubscription() {
    * 
* * string subscription = 1; + * * @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 { @@ -104,6 +128,8 @@ public java.lang.String getSubscription() { public static final int CLIENT_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * An opaque, unique client identifier. This field must be exactly 16 bytes
    * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -115,6 +141,7 @@ public java.lang.String getSubscription() {
    * 
* * bytes client_id = 2; + * * @return The clientId. */ @java.lang.Override @@ -123,6 +150,7 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,8 +162,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_); } @@ -155,8 +182,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (!clientId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, clientId_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, clientId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -166,17 +192,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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other = (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) obj; + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other = + (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; - if (!getClientId() - .equals(other.getClientId())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getClientId().equals(other.getClientId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,96 +223,105 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest 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; } /** + * + * *
    * The first request that must be sent on a newly-opened stream. The client must
    * wait for the response before sending subsequent requests on the stream.
@@ -295,33 +329,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest}
    */
-  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.cloud.pubsublite.v1.InitialPartitionAssignmentRequest)
       com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class,
+              com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -332,14 +366,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstanceForType() {
-      return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance();
+    public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -353,13 +389,17 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest build
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result = new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result =
+          new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result) {
+    private void buildPartial0(
+        com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.subscription_ = subscription_;
@@ -373,46 +413,51 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialPartitionAss
     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.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest)other);
+        return mergeFrom(
+            (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other) {
+      if (other
+          == com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest
+              .getDefaultInstance()) return this;
       if (!other.getSubscription().isEmpty()) {
         subscription_ = other.subscription_;
         bitField0_ |= 0x00000001;
@@ -447,22 +492,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              subscription_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              clientId_ = input.readBytes();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                subscription_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                clientId_ = input.readBytes();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -472,10 +520,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
+     *
+     *
      * 
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -483,13 +534,13 @@ public Builder mergeFrom(
      * 
* * string subscription = 1; + * * @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; @@ -498,6 +549,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -505,15 +558,14 @@ public java.lang.String getSubscription() {
      * 
* * string subscription = 1; + * * @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 { @@ -521,6 +573,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -528,18 +582,22 @@ public java.lang.String getSubscription() {
      * 
* * string subscription = 1; + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -547,6 +605,7 @@ public Builder setSubscription(
      * 
* * string subscription = 1; + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -556,6 +615,8 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -563,12 +624,14 @@ public Builder clearSubscription() {
      * 
* * string subscription = 1; + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -578,6 +641,8 @@ public Builder setSubscriptionBytes( private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -589,6 +654,7 @@ public Builder setSubscriptionBytes(
      * 
* * bytes client_id = 2; + * * @return The clientId. */ @java.lang.Override @@ -596,6 +662,8 @@ public com.google.protobuf.ByteString getClientId() { return clientId_; } /** + * + * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -607,17 +675,22 @@ public com.google.protobuf.ByteString getClientId() {
      * 
* * bytes client_id = 2; + * * @param value The clientId to set. * @return This builder for chaining. */ public Builder setClientId(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } clientId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -629,6 +702,7 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 2; + * * @return This builder for chaining. */ public Builder clearClientId() { @@ -637,9 +711,9 @@ public Builder clearClientId() { 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); } @@ -649,41 +723,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) - private static final com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPartitionAssignmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPartitionAssignmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,9 +771,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java index fb5b9581a..54a8e32f9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface InitialPartitionAssignmentRequestOrBuilder extends +public interface InitialPartitionAssignmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -15,10 +33,13 @@ public interface InitialPartitionAssignmentRequestOrBuilder extends
    * 
* * string subscription = 1; + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -26,12 +47,14 @@ public interface InitialPartitionAssignmentRequestOrBuilder extends
    * 
* * string subscription = 1; + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * An opaque, unique client identifier. This field must be exactly 16 bytes
    * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -43,6 +66,7 @@ public interface InitialPartitionAssignmentRequestOrBuilder extends
    * 
* * bytes client_id = 2; + * * @return The clientId. */ com.google.protobuf.ByteString getClientId(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java index 78f9b4068..2571196d4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * The first request that must be sent on a newly-opened stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishRequest} */ -public final class InitialPublishRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InitialPublishRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialPublishRequest) InitialPublishRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InitialPublishRequest.newBuilder() to construct. private InitialPublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InitialPublishRequest() { topic_ = ""; clientId_ = com.google.protobuf.ByteString.EMPTY; @@ -26,38 +44,43 @@ private InitialPublishRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InitialPublishRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishRequest.class, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishRequest.class, + com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; + * * @return The topic. */ @java.lang.Override @@ -66,29 +89,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 topic to which messages will be written.
    * 
* * string topic = 1; + * * @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 { @@ -99,6 +122,8 @@ public java.lang.String getTopic() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** + * + * *
    * The partition within the topic to which messages will be written.
    * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -106,6 +131,7 @@ public java.lang.String getTopic() {
    * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -116,6 +142,8 @@ public long getPartition() { public static final int CLIENT_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Unique identifier for a publisher client. If set, enables publish
    * idempotency within a publisher client session.
@@ -126,6 +154,7 @@ public long getPartition() {
    * 
* * bytes client_id = 3; + * * @return The clientId. */ @java.lang.Override @@ -134,6 +163,7 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +175,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_); } @@ -169,12 +198,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); } if (!clientId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, clientId_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, clientId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -184,19 +211,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.cloud.pubsublite.proto.InitialPublishRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialPublishRequest other = (com.google.cloud.pubsublite.proto.InitialPublishRequest) obj; + com.google.cloud.pubsublite.proto.InitialPublishRequest other = + (com.google.cloud.pubsublite.proto.InitialPublishRequest) obj; - if (!getTopic() - .equals(other.getTopic())) return false; - if (getPartition() - != other.getPartition()) return false; - if (!getClientId() - .equals(other.getClientId())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (getPartition() != other.getPartition()) return false; + if (!getClientId().equals(other.getClientId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -211,8 +236,7 @@ public int hashCode() { hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -221,129 +245,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest 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.cloud.pubsublite.proto.InitialPublishRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.InitialPublishRequest 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; } /** + * + * *
    * The first request that must be sent on a newly-opened stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishRequest} */ - 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.cloud.pubsublite.v1.InitialPublishRequest) com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishRequest.class, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishRequest.class, + com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialPublishRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; } @java.lang.Override @@ -376,8 +407,11 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishRequest buildPartial() { - com.google.cloud.pubsublite.proto.InitialPublishRequest result = new com.google.cloud.pubsublite.proto.InitialPublishRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.InitialPublishRequest result = + new com.google.cloud.pubsublite.proto.InitialPublishRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -399,38 +433,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialPublishReque 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.cloud.pubsublite.proto.InitialPublishRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishRequest) other); } else { super.mergeFrom(other); return this; @@ -438,7 +473,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPublishRequest other) { - if (other == com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) + return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -476,27 +512,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - clientId_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + clientId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,22 +546,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; + * * @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; @@ -530,20 +573,21 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; + * * @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 { @@ -551,28 +595,35 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -582,17 +633,21 @@ public Builder clearTopic() { return this; } /** + * + * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -600,8 +655,10 @@ public Builder setTopicBytes( return this; } - private long partition_ ; + private long partition_; /** + * + * *
      * The partition within the topic to which messages will be written.
      * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -609,6 +666,7 @@ public Builder setTopicBytes(
      * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -616,6 +674,8 @@ public long getPartition() { return partition_; } /** + * + * *
      * The partition within the topic to which messages will be written.
      * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -623,17 +683,20 @@ public long getPartition() {
      * 
* * int64 partition = 2; + * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The partition within the topic to which messages will be written.
      * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -641,6 +704,7 @@ public Builder setPartition(long value) {
      * 
* * int64 partition = 2; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -652,6 +716,8 @@ public Builder clearPartition() { private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Unique identifier for a publisher client. If set, enables publish
      * idempotency within a publisher client session.
@@ -662,6 +728,7 @@ public Builder clearPartition() {
      * 
* * bytes client_id = 3; + * * @return The clientId. */ @java.lang.Override @@ -669,6 +736,8 @@ public com.google.protobuf.ByteString getClientId() { return clientId_; } /** + * + * *
      * Unique identifier for a publisher client. If set, enables publish
      * idempotency within a publisher client session.
@@ -679,17 +748,22 @@ public com.google.protobuf.ByteString getClientId() {
      * 
* * bytes client_id = 3; + * * @param value The clientId to set. * @return This builder for chaining. */ public Builder setClientId(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } clientId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unique identifier for a publisher client. If set, enables publish
      * idempotency within a publisher client session.
@@ -700,6 +774,7 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 3; + * * @return This builder for chaining. */ public Builder clearClientId() { @@ -708,9 +783,9 @@ public Builder clearClientId() { 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); } @@ -720,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPublishRequest) private static final com.google.cloud.pubsublite.proto.InitialPublishRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPublishRequest(); } @@ -734,27 +809,27 @@ public static com.google.cloud.pubsublite.proto.InitialPublishRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -769,6 +844,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialPublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java index 7a122affa..4c65a2bed 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java @@ -1,33 +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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; -public interface InitialPublishRequestOrBuilder extends +public interface InitialPublishRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPublishRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); /** + * + * *
    * The partition within the topic to which messages will be written.
    * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -35,11 +58,14 @@ public interface InitialPublishRequestOrBuilder extends
    * 
* * int64 partition = 2; + * * @return The partition. */ long getPartition(); /** + * + * *
    * Unique identifier for a publisher client. If set, enables publish
    * idempotency within a publisher client session.
@@ -50,6 +76,7 @@ public interface InitialPublishRequestOrBuilder extends
    * 
* * bytes client_id = 3; + * * @return The clientId. */ com.google.protobuf.ByteString getClientId(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java index 05b8ec724..6e8233d80 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java @@ -1,53 +1,72 @@ +/* + * 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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response to an InitialPublishRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishResponse} */ -public final class InitialPublishResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InitialPublishResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialPublishResponse) InitialPublishResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InitialPublishResponse.newBuilder() to construct. private InitialPublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InitialPublishResponse() { - } + + private InitialPublishResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InitialPublishResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishResponse.class, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishResponse.class, + com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.cloud.pubsublite.proto.InitialPublishResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialPublishResponse other = (com.google.cloud.pubsublite.proto.InitialPublishResponse) obj; + com.google.cloud.pubsublite.proto.InitialPublishResponse other = + (com.google.cloud.pubsublite.proto.InitialPublishResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.InitialPublishResponse 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 to an InitialPublishRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishResponse} */ - 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.cloud.pubsublite.v1.InitialPublishResponse) com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishResponse.class, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishResponse.class, + com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialPublishResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishResponse buildPartial() { - com.google.cloud.pubsublite.proto.InitialPublishResponse result = new com.google.cloud.pubsublite.proto.InitialPublishResponse(this); + com.google.cloud.pubsublite.proto.InitialPublishResponse result = + new com.google.cloud.pubsublite.proto.InitialPublishResponse(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse 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.cloud.pubsublite.proto.InitialPublishResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishResponse) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPublishResponse other) { - if (other == com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPublishResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPublishResponse) private static final com.google.cloud.pubsublite.proto.InitialPublishResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPublishResponse(); } @@ -369,27 +399,27 @@ public static com.google.cloud.pubsublite.proto.InitialPublishResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPublishResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialPublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java new file mode 100644 index 000000000..f18fa5d58 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.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/cloud/pubsublite/v1/publisher.proto + +package com.google.cloud.pubsublite.proto; + +public interface InitialPublishResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPublishResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java index 92c4d7fe1..77d1101f3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * The first request that must be sent on a newly-opened stream. The client must
  * wait for the response before sending subsequent requests on the stream.
@@ -11,53 +28,59 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeRequest}
  */
-public final class InitialSubscribeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class InitialSubscribeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialSubscribeRequest)
     InitialSubscribeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use InitialSubscribeRequest.newBuilder() to construct.
   private InitialSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private InitialSubscribeRequest() {
     subscription_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InitialSubscribeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class,
+            com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
+   *
+   *
    * 
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; + * * @return The subscription. */ @java.lang.Override @@ -66,29 +89,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; } } /** + * + * *
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; + * * @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 { @@ -99,12 +122,15 @@ public java.lang.String getSubscription() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** + * + * *
    * The partition from which to receive messages. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -115,13 +141,18 @@ public long getPartition() { public static final int INITIAL_LOCATION_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.SeekRequest initialLocation_; /** + * + * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the initialLocation field is set. */ @java.lang.Override @@ -129,34 +160,48 @@ public boolean hasInitialLocation() { return initialLocation_ != null; } /** + * + * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The initialLocation. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest getInitialLocation() { - return initialLocation_ == null ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; + return initialLocation_ == null + ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() + : initialLocation_; } /** + * + * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getInitialLocationOrBuilder() { - return initialLocation_ == null ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; + return initialLocation_ == null + ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() + : initialLocation_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -192,12 +236,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); } if (initialLocation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getInitialLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInitialLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -207,21 +249,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.cloud.pubsublite.proto.InitialSubscribeRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialSubscribeRequest other = (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) obj; + com.google.cloud.pubsublite.proto.InitialSubscribeRequest other = + (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; - if (getPartition() - != other.getPartition()) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (getPartition() != other.getPartition()) return false; if (hasInitialLocation() != other.hasInitialLocation()) return false; if (hasInitialLocation()) { - if (!getInitialLocation() - .equals(other.getInitialLocation())) return false; + if (!getInitialLocation().equals(other.getInitialLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -237,8 +277,7 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); if (hasInitialLocation()) { hash = (37 * hash) + INITIAL_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getInitialLocation().hashCode(); @@ -249,96 +288,104 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest 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.cloud.pubsublite.proto.InitialSubscribeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.InitialSubscribeRequest 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; } /** + * + * *
    * The first request that must be sent on a newly-opened stream. The client must
    * wait for the response before sending subsequent requests on the stream.
@@ -346,33 +393,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeRequest}
    */
-  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.cloud.pubsublite.v1.InitialSubscribeRequest)
       com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class,
+              com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.InitialSubscribeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -388,9 +434,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -409,8 +455,11 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.InitialSubscribeRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.InitialSubscribeRequest result = new com.google.cloud.pubsublite.proto.InitialSubscribeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.InitialSubscribeRequest result =
+          new com.google.cloud.pubsublite.proto.InitialSubscribeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -424,9 +473,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeReq
         result.partition_ = partition_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.initialLocation_ = initialLocationBuilder_ == null
-            ? initialLocation_
-            : initialLocationBuilder_.build();
+        result.initialLocation_ =
+            initialLocationBuilder_ == null ? initialLocation_ : initialLocationBuilder_.build();
       }
     }
 
@@ -434,38 +482,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeReq
     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.cloud.pubsublite.proto.InitialSubscribeRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeRequest)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,7 +522,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialSubscribeRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance())
+        return this;
       if (!other.getSubscription().isEmpty()) {
         subscription_ = other.subscription_;
         bitField0_ |= 0x00000001;
@@ -511,29 +561,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              subscription_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              partition_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 34: {
-              input.readMessage(
-                  getInitialLocationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                subscription_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                partition_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 34:
+              {
+                input.readMessage(getInitialLocationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -543,22 +595,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
+     *
+     *
      * 
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; + * * @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; @@ -567,20 +622,21 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; + * * @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 { @@ -588,28 +644,35 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -619,17 +682,21 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -637,14 +704,17 @@ public Builder setSubscriptionBytes( return this; } - private long partition_ ; + private long partition_; /** + * + * *
      * The partition from which to receive messages. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -652,29 +722,35 @@ public long getPartition() { return partition_; } /** + * + * *
      * The partition from which to receive messages. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; + * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The partition from which to receive messages. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -686,45 +762,64 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.SeekRequest initialLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> initialLocationBuilder_; + com.google.cloud.pubsublite.proto.SeekRequest, + com.google.cloud.pubsublite.proto.SeekRequest.Builder, + com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> + initialLocationBuilder_; /** + * + * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the initialLocation field is set. */ public boolean hasInitialLocation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The initialLocation. */ public com.google.cloud.pubsublite.proto.SeekRequest getInitialLocation() { if (initialLocationBuilder_ == null) { - return initialLocation_ == null ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; + return initialLocation_ == null + ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() + : initialLocation_; } else { return initialLocationBuilder_.getMessage(); } } /** + * + * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setInitialLocation(com.google.cloud.pubsublite.proto.SeekRequest value) { if (initialLocationBuilder_ == null) { @@ -740,13 +835,17 @@ public Builder setInitialLocation(com.google.cloud.pubsublite.proto.SeekRequest return this; } /** + * + * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setInitialLocation( com.google.cloud.pubsublite.proto.SeekRequest.Builder builderForValue) { @@ -760,19 +859,24 @@ public Builder setInitialLocation( return this; } /** + * + * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeInitialLocation(com.google.cloud.pubsublite.proto.SeekRequest value) { if (initialLocationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - initialLocation_ != null && - initialLocation_ != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && initialLocation_ != null + && initialLocation_ + != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { getInitialLocationBuilder().mergeFrom(value); } else { initialLocation_ = value; @@ -785,13 +889,17 @@ public Builder mergeInitialLocation(com.google.cloud.pubsublite.proto.SeekReques return this; } /** + * + * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearInitialLocation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -804,13 +912,17 @@ public Builder clearInitialLocation() { return this; } /** + * + * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getInitialLocationBuilder() { bitField0_ |= 0x00000004; @@ -818,47 +930,59 @@ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getInitialLocationB return getInitialLocationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getInitialLocationOrBuilder() { if (initialLocationBuilder_ != null) { return initialLocationBuilder_.getMessageOrBuilder(); } else { - return initialLocation_ == null ? - com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; + return initialLocation_ == null + ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() + : initialLocation_; } } /** + * + * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> + com.google.cloud.pubsublite.proto.SeekRequest, + com.google.cloud.pubsublite.proto.SeekRequest.Builder, + com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> getInitialLocationFieldBuilder() { if (initialLocationBuilder_ == null) { - initialLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( - getInitialLocation(), - getParentForChildren(), - isClean()); + initialLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SeekRequest, + com.google.cloud.pubsublite.proto.SeekRequest.Builder, + com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( + getInitialLocation(), getParentForChildren(), isClean()); initialLocation_ = null; } return initialLocationBuilder_; } + @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); } @@ -868,12 +992,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialSubscribeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialSubscribeRequest) private static final com.google.cloud.pubsublite.proto.InitialSubscribeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialSubscribeRequest(); } @@ -882,27 +1006,27 @@ public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialSubscribeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,6 +1041,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java index feb8b4760..ba2c297ee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java @@ -1,73 +1,111 @@ +/* + * 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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface InitialSubscribeRequestOrBuilder extends +public interface InitialSubscribeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialSubscribeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * The partition from which to receive messages. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; + * * @return The partition. */ long getPartition(); /** + * + * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the initialLocation field is set. */ boolean hasInitialLocation(); /** + * + * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The initialLocation. */ com.google.cloud.pubsublite.proto.SeekRequest getInitialLocation(); /** + * + * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getInitialLocationOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java index 91695a7f8..459af776e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java @@ -1,61 +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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response to an InitialSubscribeRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeResponse} */ -public final class InitialSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InitialSubscribeResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialSubscribeResponse) InitialSubscribeResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InitialSubscribeResponse.newBuilder() to construct. private InitialSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InitialSubscribeResponse() { - } + + private InitialSubscribeResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InitialSubscribeResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); } public static final int CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** + * + * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -63,19 +84,26 @@ public boolean hasCursor() { return cursor_ != null; } /** + * + * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } /** + * + * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
@@ -85,10 +113,13 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
-    return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
+    return cursor_ == null
+        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+        : cursor_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -100,8 +131,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 (cursor_ != null) {
       output.writeMessage(1, getCursor());
     }
@@ -115,8 +145,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (cursor_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getCursor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -126,17 +155,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.cloud.pubsublite.proto.InitialSubscribeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.InitialSubscribeResponse other = (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) obj;
+    com.google.cloud.pubsublite.proto.InitialSubscribeResponse other =
+        (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) obj;
 
     if (hasCursor() != other.hasCursor()) return false;
     if (hasCursor()) {
-      if (!getCursor()
-          .equals(other.getCursor())) return false;
+      if (!getCursor().equals(other.getCursor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -159,129 +188,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse 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.cloud.pubsublite.proto.InitialSubscribeResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.pubsublite.proto.InitialSubscribeResponse 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 to an InitialSubscribeRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeResponse} */ - 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.cloud.pubsublite.v1.InitialSubscribeResponse) com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialSubscribeResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +331,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; } @java.lang.Override @@ -316,8 +352,11 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeResponse buildPartial() { - com.google.cloud.pubsublite.proto.InitialSubscribeResponse result = new com.google.cloud.pubsublite.proto.InitialSubscribeResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.InitialSubscribeResponse result = + new com.google.cloud.pubsublite.proto.InitialSubscribeResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -325,9 +364,7 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse buildPartial() private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); } } @@ -335,38 +372,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeRes 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.cloud.pubsublite.proto.InitialSubscribeResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeResponse) other); } else { super.mergeFrom(other); return this; @@ -374,7 +412,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialSubscribeResponse other) { - if (other == com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance()) + return this; if (other.hasCursor()) { mergeCursor(other.getCursor()); } @@ -404,19 +443,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -426,40 +465,54 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + cursorBuilder_; /** + * + * *
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } else { return cursorBuilder_.getMessage(); } } /** + * + * *
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -481,6 +534,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -488,8 +543,7 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
-    public Builder setCursor(
-        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         cursor_ = builderForValue.build();
       } else {
@@ -500,6 +554,8 @@ public Builder setCursor(
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -509,9 +565,9 @@ public Builder setCursor(
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          cursor_ != null &&
-          cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && cursor_ != null
+            && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getCursorBuilder().mergeFrom(value);
         } else {
           cursor_ = value;
@@ -524,6 +580,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -542,6 +600,8 @@ public Builder clearCursor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -555,6 +615,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -566,11 +628,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       if (cursorBuilder_ != null) {
         return cursorBuilder_.getMessageOrBuilder();
       } else {
-        return cursor_ == null ?
-            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
+        return cursor_ == null
+            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+            : cursor_;
       }
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -579,21 +644,24 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
+            com.google.cloud.pubsublite.proto.Cursor,
+            com.google.cloud.pubsublite.proto.Cursor.Builder,
+            com.google.cloud.pubsublite.proto.CursorOrBuilder>
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
-        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getCursor(),
-                getParentForChildren(),
-                isClean());
+        cursorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.Cursor,
+                com.google.cloud.pubsublite.proto.Cursor.Builder,
+                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getCursor(), getParentForChildren(), isClean());
         cursor_ = null;
       }
       return cursorBuilder_;
     }
+
     @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);
     }
 
@@ -603,12 +671,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialSubscribeResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialSubscribeResponse)
   private static final com.google.cloud.pubsublite.proto.InitialSubscribeResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialSubscribeResponse();
   }
@@ -617,27 +685,27 @@ public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public InitialSubscribeResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public InitialSubscribeResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -652,6 +720,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
similarity index 63%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
index 4b8a3a564..c6bea975b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface InitialSubscribeResponseOrBuilder extends
+public interface InitialSubscribeResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialSubscribeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** + * + * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
similarity index 67%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
index 3cde739a0..54d393474 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.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/cloud/pubsublite/v1/cursor.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Request for ListPartitionCursors.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsRequest} */ -public final class ListPartitionCursorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPartitionCursorsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) ListPartitionCursorsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPartitionCursorsRequest.newBuilder() to construct. private ListPartitionCursorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPartitionCursorsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,40 +44,47 @@ private ListPartitionCursorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPartitionCursorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 @@ -68,31 +93,33 @@ 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 subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 { @@ -103,6 +130,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of cursors to return. The service may return fewer than
    * this value.
@@ -110,6 +139,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -118,9 +148,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -129,6 +162,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -137,14 +171,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; } } /** + * + * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -153,16 +188,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 { @@ -171,6 +205,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,8 +217,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_); } @@ -206,8 +240,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -220,19 +253,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.cloud.pubsublite.proto.ListPartitionCursorsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other = (com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) obj; + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other = + (com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,129 +287,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest 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.cloud.pubsublite.proto.ListPartitionCursorsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest 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 ListPartitionCursors.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsRequest} */ - 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.cloud.pubsublite.v1.ListPartitionCursorsRequest) com.google.cloud.pubsublite.proto.ListPartitionCursorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,13 +428,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance(); } @@ -411,13 +450,17 @@ public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result = new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result = + new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -434,38 +477,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursor 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.cloud.pubsublite.proto.ListPartitionCursorsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) other); } else { super.mergeFrom(other); return this; @@ -473,7 +517,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -513,27 +559,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,24 +593,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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; @@ -569,22 +624,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 { @@ -592,32 +650,43 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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() { @@ -627,19 +696,25 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -647,8 +722,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -656,6 +733,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -663,6 +741,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -670,17 +750,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -688,6 +771,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -699,6 +783,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -707,13 +793,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; @@ -722,6 +808,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -730,15 +818,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 { @@ -746,6 +833,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -754,18 +843,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -774,6 +867,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -783,6 +877,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -791,21 +887,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,12 +913,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) - private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(); } @@ -829,27 +928,27 @@ public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPartitionCursorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartitionCursorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +963,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java index b8ecca71f..266c36844 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * 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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface ListPartitionCursorsRequestOrBuilder extends +public interface ListPartitionCursorsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_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 maximum number of cursors to return. The service may return fewer than
    * this value.
@@ -39,11 +66,14 @@ public interface ListPartitionCursorsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -52,10 +82,13 @@ public interface ListPartitionCursorsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -64,8 +97,8 @@ public interface ListPartitionCursorsRequestOrBuilder 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java index 80dbd8c7e..051be93b9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response for ListPartitionCursors
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsResponse} */ -public final class ListPartitionCursorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPartitionCursorsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) ListPartitionCursorsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPartitionCursorsResponse.newBuilder() to construct. private ListPartitionCursorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPartitionCursorsResponse() { partitionCursors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,33 +44,37 @@ private ListPartitionCursorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPartitionCursorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); } public static final int PARTITION_CURSORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List partitionCursors_; /** + * + * *
    * The partition cursors from this request.
    * 
@@ -60,10 +82,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ @java.lang.Override - public java.util.List getPartitionCursorsList() { + public java.util.List + getPartitionCursorsList() { return partitionCursors_; } /** + * + * *
    * The partition cursors from this request.
    * 
@@ -71,11 +96,13 @@ public java.util.List getPart * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPartitionCursorsOrBuilderList() { return partitionCursors_; } /** + * + * *
    * The partition cursors from this request.
    * 
@@ -87,6 +114,8 @@ public int getPartitionCursorsCount() { return partitionCursors_.size(); } /** + * + * *
    * The partition cursors from this request.
    * 
@@ -98,6 +127,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int return partitionCursors_.get(index); } /** + * + * *
    * The partition cursors from this request.
    * 
@@ -111,15 +142,19 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -128,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -160,6 +195,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < partitionCursors_.size(); i++) { output.writeMessage(1, partitionCursors_.get(i)); } @@ -189,8 +224,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < partitionCursors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, partitionCursors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, partitionCursors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +237,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.cloud.pubsublite.proto.ListPartitionCursorsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse other = (com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) obj; + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse other = + (com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) obj; - if (!getPartitionCursorsList() - .equals(other.getPartitionCursorsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getPartitionCursorsList().equals(other.getPartitionCursorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +270,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse 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.cloud.pubsublite.proto.ListPartitionCursorsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse 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 ListPartitionCursors
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsResponse} */ - 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.cloud.pubsublite.v1.ListPartitionCursorsResponse) com.google.cloud.pubsublite.proto.ListPartitionCursorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,13 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance(); } @@ -397,14 +438,18 @@ public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result = new com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse(this); + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result = + new com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { if (partitionCursorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { partitionCursors_ = java.util.Collections.unmodifiableList(partitionCursors_); @@ -416,7 +461,8 @@ private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListPa } } - private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -427,38 +473,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursor 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.cloud.pubsublite.proto.ListPartitionCursorsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) other); } else { super.mergeFrom(other); return this; @@ -466,7 +513,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance()) + return this; if (partitionCursorsBuilder_ == null) { if (!other.partitionCursors_.isEmpty()) { if (partitionCursors_.isEmpty()) { @@ -485,9 +534,10 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsR partitionCursorsBuilder_ = null; partitionCursors_ = other.partitionCursors_; bitField0_ = (bitField0_ & ~0x00000001); - partitionCursorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartitionCursorsFieldBuilder() : null; + partitionCursorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartitionCursorsFieldBuilder() + : null; } else { partitionCursorsBuilder_.addAllMessages(other.partitionCursors_); } @@ -524,30 +574,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.pubsublite.proto.PartitionCursor m = - input.readMessage( - com.google.cloud.pubsublite.proto.PartitionCursor.parser(), - extensionRegistry); - if (partitionCursorsBuilder_ == null) { - ensurePartitionCursorsIsMutable(); - partitionCursors_.add(m); - } else { - partitionCursorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.pubsublite.proto.PartitionCursor m = + input.readMessage( + com.google.cloud.pubsublite.proto.PartitionCursor.parser(), + extensionRegistry); + if (partitionCursorsBuilder_ == null) { + ensurePartitionCursorsIsMutable(); + partitionCursors_.add(m); + } else { + partitionCursorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,28 +610,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List partitionCursors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePartitionCursorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - partitionCursors_ = new java.util.ArrayList(partitionCursors_); + partitionCursors_ = + new java.util.ArrayList( + partitionCursors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionCursor, com.google.cloud.pubsublite.proto.PartitionCursor.Builder, com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> partitionCursorsBuilder_; + com.google.cloud.pubsublite.proto.PartitionCursor, + com.google.cloud.pubsublite.proto.PartitionCursor.Builder, + com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> + partitionCursorsBuilder_; /** + * + * *
      * The partition cursors from this request.
      * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - public java.util.List getPartitionCursorsList() { + public java.util.List + getPartitionCursorsList() { if (partitionCursorsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitionCursors_); } else { @@ -586,6 +649,8 @@ public java.util.List getPart } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -600,6 +665,8 @@ public int getPartitionCursorsCount() { } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -614,6 +681,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -635,6 +704,8 @@ public Builder setPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -653,6 +724,8 @@ public Builder setPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -673,6 +746,8 @@ public Builder addPartitionCursors(com.google.cloud.pubsublite.proto.PartitionCu return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -694,6 +769,8 @@ public Builder addPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -712,6 +789,8 @@ public Builder addPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -730,6 +809,8 @@ public Builder addPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -740,8 +821,7 @@ public Builder addAllPartitionCursors( java.lang.Iterable values) { if (partitionCursorsBuilder_ == null) { ensurePartitionCursorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partitionCursors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitionCursors_); onChanged(); } else { partitionCursorsBuilder_.addAllMessages(values); @@ -749,6 +829,8 @@ public Builder addAllPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -766,6 +848,8 @@ public Builder clearPartitionCursors() { return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -783,6 +867,8 @@ public Builder removePartitionCursors(int index) { return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -794,6 +880,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder getPartitionCur return getPartitionCursorsFieldBuilder().getBuilder(index); } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -803,19 +891,22 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder getPartitionCur public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCursorsOrBuilder( int index) { if (partitionCursorsBuilder_ == null) { - return partitionCursors_.get(index); } else { + return partitionCursors_.get(index); + } else { return partitionCursorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The partition cursors from this request.
      * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - public java.util.List - getPartitionCursorsOrBuilderList() { + public java.util.List + getPartitionCursorsOrBuilderList() { if (partitionCursorsBuilder_ != null) { return partitionCursorsBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +914,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -830,10 +923,12 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCursorsBuilder() { - return getPartitionCursorsFieldBuilder().addBuilder( - com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); + return getPartitionCursorsFieldBuilder() + .addBuilder(com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -842,26 +937,35 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCur */ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCursorsBuilder( int index) { - return getPartitionCursorsFieldBuilder().addBuilder( - index, com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); + return getPartitionCursorsFieldBuilder() + .addBuilder( + index, com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); } /** + * + * *
      * The partition cursors from this request.
      * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - public java.util.List - getPartitionCursorsBuilderList() { + public java.util.List + getPartitionCursorsBuilderList() { return getPartitionCursorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionCursor, com.google.cloud.pubsublite.proto.PartitionCursor.Builder, com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> + com.google.cloud.pubsublite.proto.PartitionCursor, + com.google.cloud.pubsublite.proto.PartitionCursor.Builder, + com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> getPartitionCursorsFieldBuilder() { if (partitionCursorsBuilder_ == null) { - partitionCursorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionCursor, com.google.cloud.pubsublite.proto.PartitionCursor.Builder, com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder>( + partitionCursorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.PartitionCursor, + com.google.cloud.pubsublite.proto.PartitionCursor.Builder, + com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder>( partitionCursors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -873,19 +977,21 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCur private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,21 +1000,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -916,30 +1023,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -949,27 +1063,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,41 +1097,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) - private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse(); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPartitionCursorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartitionCursorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,9 +1145,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java index 7fb416493..e448215fc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface ListPartitionCursorsResponseOrBuilder extends +public interface ListPartitionCursorsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The partition cursors from this request.
    * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - java.util.List - getPartitionCursorsList(); + java.util.List getPartitionCursorsList(); /** + * + * *
    * The partition cursors from this request.
    * 
@@ -25,6 +44,8 @@ public interface ListPartitionCursorsResponseOrBuilder extends */ com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int index); /** + * + * *
    * The partition cursors from this request.
    * 
@@ -33,15 +54,19 @@ public interface ListPartitionCursorsResponseOrBuilder extends */ int getPartitionCursorsCount(); /** + * + * *
    * The partition cursors from this request.
    * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - java.util.List + java.util.List getPartitionCursorsOrBuilderList(); /** + * + * *
    * The partition cursors from this request.
    * 
@@ -52,24 +77,29 @@ com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCursorsOr int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java index 62aae34a7..efe19f6d2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for ListReservationTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsRequest} */ -public final class ListReservationTopicsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReservationTopicsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationTopicsRequest) ListReservationTopicsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReservationTopicsRequest.newBuilder() to construct. private ListReservationTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReservationTopicsRequest() { name_ = ""; pageToken_ = ""; @@ -26,40 +44,47 @@ private ListReservationTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReservationTopicsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -68,31 +93,33 @@ 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 reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -103,6 +130,8 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of topics to return. The service may return fewer
    * than this value.
@@ -110,6 +139,7 @@ public java.lang.String getName() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -118,9 +148,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -129,6 +162,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -137,14 +171,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; } } /** + * + * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -153,16 +188,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 { @@ -171,6 +205,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,8 +217,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_); } @@ -206,8 +240,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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_); @@ -220,19 +253,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.cloud.pubsublite.proto.ListReservationTopicsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other = (com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) obj; + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other = + (com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,129 +287,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest 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.cloud.pubsublite.proto.ListReservationTopicsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest 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 ListReservationTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsRequest} */ - 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.cloud.pubsublite.v1.ListReservationTopicsRequest) com.google.cloud.pubsublite.proto.ListReservationTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,13 +428,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance(); } @@ -411,13 +450,17 @@ public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result = new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result = + new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -434,38 +477,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopi 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.cloud.pubsublite.proto.ListReservationTopicsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) other); } else { super.mergeFrom(other); return this; @@ -473,7 +517,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -513,27 +559,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,24 +593,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -569,22 +624,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -592,32 +650,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -627,19 +696,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -647,8 +722,10 @@ public Builder setNameBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -656,6 +733,7 @@ public Builder setNameBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -663,6 +741,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -670,17 +750,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -688,6 +771,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -699,6 +783,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -707,13 +793,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; @@ -722,6 +808,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -730,15 +818,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 { @@ -746,6 +833,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -754,18 +843,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -774,6 +867,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -783,6 +877,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -791,21 +887,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,41 +913,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationTopicsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationTopicsRequest) - private static final com.google.cloud.pubsublite.proto.ListReservationTopicsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.ListReservationTopicsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationTopicsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationTopicsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,9 +961,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java index e5fbfd232..8b0078d9b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListReservationTopicsRequestOrBuilder extends +public interface ListReservationTopicsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationTopicsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The maximum number of topics to return. The service may return fewer
    * than this value.
@@ -39,11 +66,14 @@ public interface ListReservationTopicsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -52,10 +82,13 @@ public interface ListReservationTopicsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -64,8 +97,8 @@ public interface ListReservationTopicsRequestOrBuilder 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java index 518ca4cef..d1476d61f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response for ListReservationTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsResponse} */ -public final class ListReservationTopicsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReservationTopicsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationTopicsResponse) ListReservationTopicsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReservationTopicsResponse.newBuilder() to construct. private ListReservationTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReservationTopicsResponse() { topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; @@ -26,64 +44,74 @@ private ListReservationTopicsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReservationTopicsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); } public static final int TOPICS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList topics_; /** + * + * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; + * * @return A list containing the topics. */ - public com.google.protobuf.ProtocolStringList - getTopicsList() { + public com.google.protobuf.ProtocolStringList getTopicsList() { return topics_; } /** + * + * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; + * * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** + * + * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; + * * @param index The index of the element to return. * @return The topics at the given index. */ @@ -91,30 +119,36 @@ public java.lang.String getTopics(int index) { return topics_.get(index); } /** + * + * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; + * * @param index The index of the value to return. * @return The bytes of the topics at the given index. */ - public com.google.protobuf.ByteString - getTopicsBytes(int index) { + public com.google.protobuf.ByteString getTopicsBytes(int index) { return topics_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < topics_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topics_.getRaw(i)); } @@ -202,17 +236,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.cloud.pubsublite.proto.ListReservationTopicsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other = (com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) obj; + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other = + (com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) obj; - if (!getTopicsList() - .equals(other.getTopicsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getTopicsList().equals(other.getTopicsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,129 +269,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse 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.cloud.pubsublite.proto.ListReservationTopicsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse 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 ListReservationTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsResponse} */ - 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.cloud.pubsublite.v1.ListReservationTopicsResponse) com.google.cloud.pubsublite.proto.ListReservationTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +410,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance(); } @@ -391,14 +432,18 @@ public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result = new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(this); + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result = + new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { if (((bitField0_ & 0x00000001) != 0)) { topics_ = topics_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -406,7 +451,8 @@ private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListRe result.topics_ = topics_; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -417,46 +463,50 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopi 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.cloud.pubsublite.proto.ListReservationTopicsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other) { + if (other + == com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance()) + return this; if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { topics_ = other.topics_; @@ -498,23 +548,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTopicsIsMutable(); - topics_.add(s); - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTopicsIsMutable(); + topics_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -524,47 +577,58 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList topics_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTopicsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { topics_ = new com.google.protobuf.LazyStringArrayList(topics_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; + * * @return A list containing the topics. */ - public com.google.protobuf.ProtocolStringList - getTopicsList() { + public com.google.protobuf.ProtocolStringList getTopicsList() { return topics_.getUnmodifiableView(); } /** + * + * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; + * * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** + * + * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; + * * @param index The index of the element to return. * @return The topics at the given index. */ @@ -572,81 +636,95 @@ public java.lang.String getTopics(int index) { return topics_.get(index); } /** + * + * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; + * * @param index The index of the value to return. * @return The bytes of the topics at the given index. */ - public com.google.protobuf.ByteString - getTopicsBytes(int index) { + public com.google.protobuf.ByteString getTopicsBytes(int index) { return topics_.getByteString(index); } /** + * + * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; + * * @param index The index to set the value at. * @param value The topics to set. * @return This builder for chaining. */ - public Builder setTopics( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopics(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTopicsIsMutable(); topics_.set(index, value); onChanged(); return this; } /** + * + * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; + * * @param value The topics to add. * @return This builder for chaining. */ - public Builder addTopics( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTopics(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTopicsIsMutable(); topics_.add(value); onChanged(); return this; } /** + * + * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; + * * @param values The topics to add. * @return This builder for chaining. */ - public Builder addAllTopics( - java.lang.Iterable values) { + public Builder addAllTopics(java.lang.Iterable values) { ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); onChanged(); return this; } /** + * + * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; + * * @return This builder for chaining. */ public Builder clearTopics() { @@ -656,18 +734,22 @@ public Builder clearTopics() { return this; } /** + * + * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; + * * @param value The bytes of the topics to add. * @return This builder for chaining. */ - public Builder addTopicsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTopicsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTopicsIsMutable(); topics_.add(value); @@ -677,19 +759,21 @@ public Builder addTopicsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -698,21 +782,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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 { @@ -720,30 +805,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -753,27 +845,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -783,41 +879,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationTopicsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationTopicsResponse) - private static final com.google.cloud.pubsublite.proto.ListReservationTopicsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.ListReservationTopicsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationTopicsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationTopicsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,9 +927,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java index 62dfa1fc1..897b94adb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java @@ -1,76 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListReservationTopicsResponseOrBuilder extends +public interface ListReservationTopicsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationTopicsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; + * * @return A list containing the topics. */ - java.util.List - getTopicsList(); + java.util.List getTopicsList(); /** + * + * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; + * * @return The count of topics. */ int getTopicsCount(); /** + * + * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; + * * @param index The index of the element to return. * @return The topics at the given index. */ java.lang.String getTopics(int index); /** + * + * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; + * * @param index The index of the value to return. * @return The bytes of the topics at the given index. */ - com.google.protobuf.ByteString - getTopicsBytes(int index); + com.google.protobuf.ByteString getTopicsBytes(int index); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java index be4260a62..c8d1a2298 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for ListReservations.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsRequest} */ -public final class ListReservationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReservationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationsRequest) ListReservationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReservationsRequest.newBuilder() to construct. private ListReservationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReservationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,39 +44,46 @@ private ListReservationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReservationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsRequest.class, com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsRequest.class, + com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 @@ -67,30 +92,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 parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 { @@ -101,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of reservations to return. The service may return fewer
    * than this value. If unset or zero, all reservations for the parent will be
@@ -108,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,9 +146,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -127,6 +160,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -135,14 +169,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; } } /** + * + * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -151,16 +186,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 { @@ -169,6 +203,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -204,8 +238,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -218,19 +251,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.cloud.pubsublite.proto.ListReservationsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationsRequest other = (com.google.cloud.pubsublite.proto.ListReservationsRequest) obj; + com.google.cloud.pubsublite.proto.ListReservationsRequest other = + (com.google.cloud.pubsublite.proto.ListReservationsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,129 +285,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest 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.cloud.pubsublite.proto.ListReservationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListReservationsRequest 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 ListReservations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsRequest} */ - 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.cloud.pubsublite.v1.ListReservationsRequest) com.google.cloud.pubsublite.proto.ListReservationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsRequest.class, com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsRequest.class, + com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +426,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override @@ -409,8 +447,11 @@ public com.google.cloud.pubsublite.proto.ListReservationsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationsRequest result = new com.google.cloud.pubsublite.proto.ListReservationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListReservationsRequest result = + new com.google.cloud.pubsublite.proto.ListReservationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -432,38 +473,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationsReq 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.cloud.pubsublite.proto.ListReservationsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsRequest) other); } else { super.mergeFrom(other); return this; @@ -471,7 +513,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -511,27 +554,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -541,23 +588,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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; @@ -566,21 +618,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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 { @@ -588,30 +643,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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() { @@ -621,18 +687,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -640,8 +712,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -649,6 +723,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -656,6 +731,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -663,17 +740,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -681,6 +761,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -692,6 +773,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -700,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; @@ -715,6 +798,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -723,15 +808,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 { @@ -739,6 +823,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -747,18 +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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -767,6 +857,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -776,6 +867,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -784,21 +877,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationsRequest) private static final com.google.cloud.pubsublite.proto.ListReservationsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationsRequest(); } @@ -822,27 +917,27 @@ public static com.google.cloud.pubsublite.proto.ListReservationsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListReservationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java index 6e3a1d461..b82b063ca 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListReservationsRequestOrBuilder extends +public interface ListReservationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 maximum number of reservations to return. The service may return fewer
    * than this value. If unset or zero, all reservations for the parent will be
@@ -37,11 +64,14 @@ public interface ListReservationsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -50,10 +80,13 @@ public interface ListReservationsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -62,8 +95,8 @@ public interface ListReservationsRequestOrBuilder 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java index bb8e74adf..55683923e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response for ListReservations.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsResponse} */ -public final class ListReservationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReservationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationsResponse) ListReservationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReservationsResponse.newBuilder() to construct. private ListReservationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReservationsResponse() { reservations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,33 +44,37 @@ private ListReservationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReservationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsResponse.class, com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsResponse.class, + com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); } public static final int RESERVATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List reservations_; /** + * + * *
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -65,6 +87,8 @@ public java.util.List getReservat
     return reservations_;
   }
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -73,11 +97,13 @@ public java.util.List getReservat
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getReservationsOrBuilderList() {
     return reservations_;
   }
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -90,6 +116,8 @@ public int getReservationsCount() {
     return reservations_.size();
   }
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -102,6 +130,8 @@ public com.google.cloud.pubsublite.proto.Reservation getReservations(int index)
     return reservations_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -116,15 +146,19 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
+   *
+   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -133,30 +167,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -165,6 +199,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +211,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 < reservations_.size(); i++) { output.writeMessage(1, reservations_.get(i)); } @@ -194,8 +228,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, reservations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reservations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -208,17 +241,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.cloud.pubsublite.proto.ListReservationsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationsResponse other = (com.google.cloud.pubsublite.proto.ListReservationsResponse) obj; + com.google.cloud.pubsublite.proto.ListReservationsResponse other = + (com.google.cloud.pubsublite.proto.ListReservationsResponse) obj; - if (!getReservationsList() - .equals(other.getReservationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getReservationsList().equals(other.getReservationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,129 +274,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse 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.cloud.pubsublite.proto.ListReservationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListReservationsResponse 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 ListReservations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsResponse} */ - 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.cloud.pubsublite.v1.ListReservationsResponse) com.google.cloud.pubsublite.proto.ListReservationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsResponse.class, com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsResponse.class, + com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; } @java.lang.Override @@ -402,14 +441,18 @@ public com.google.cloud.pubsublite.proto.ListReservationsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationsResponse result = new com.google.cloud.pubsublite.proto.ListReservationsResponse(this); + com.google.cloud.pubsublite.proto.ListReservationsResponse result = + new com.google.cloud.pubsublite.proto.ListReservationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListReservationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.pubsublite.proto.ListReservationsResponse result) { if (reservationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { reservations_ = java.util.Collections.unmodifiableList(reservations_); @@ -432,38 +475,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationsRes 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.cloud.pubsublite.proto.ListReservationsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsResponse) other); } else { super.mergeFrom(other); return this; @@ -471,7 +515,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ListReservationsResponse.getDefaultInstance()) + return this; if (reservationsBuilder_ == null) { if (!other.reservations_.isEmpty()) { if (reservations_.isEmpty()) { @@ -490,9 +535,10 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsRespo reservationsBuilder_ = null; reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000001); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReservationsFieldBuilder() : null; + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReservationsFieldBuilder() + : null; } else { reservationsBuilder_.addAllMessages(other.reservations_); } @@ -529,30 +575,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.pubsublite.proto.Reservation m = - input.readMessage( - com.google.cloud.pubsublite.proto.Reservation.parser(), - extensionRegistry); - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.add(m); - } else { - reservationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.pubsublite.proto.Reservation m = + input.readMessage( + com.google.cloud.pubsublite.proto.Reservation.parser(), extensionRegistry); + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.add(m); + } else { + reservationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,21 +610,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List reservations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureReservationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - reservations_ = new java.util.ArrayList(reservations_); + reservations_ = + new java.util.ArrayList(reservations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> reservationsBuilder_; + com.google.cloud.pubsublite.proto.Reservation, + com.google.cloud.pubsublite.proto.Reservation.Builder, + com.google.cloud.pubsublite.proto.ReservationOrBuilder> + reservationsBuilder_; /** + * + * *
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -592,6 +648,8 @@ public java.util.List getReservat
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -607,6 +665,8 @@ public int getReservationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -622,6 +682,8 @@ public com.google.cloud.pubsublite.proto.Reservation getReservations(int index)
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -629,8 +691,7 @@ public com.google.cloud.pubsublite.proto.Reservation getReservations(int index)
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public Builder setReservations(
-        int index, com.google.cloud.pubsublite.proto.Reservation value) {
+    public Builder setReservations(int index, com.google.cloud.pubsublite.proto.Reservation value) {
       if (reservationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -644,6 +705,8 @@ public Builder setReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -663,6 +726,8 @@ public Builder setReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -684,6 +749,8 @@ public Builder addReservations(com.google.cloud.pubsublite.proto.Reservation val
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -691,8 +758,7 @@ public Builder addReservations(com.google.cloud.pubsublite.proto.Reservation val
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public Builder addReservations(
-        int index, com.google.cloud.pubsublite.proto.Reservation value) {
+    public Builder addReservations(int index, com.google.cloud.pubsublite.proto.Reservation value) {
       if (reservationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -706,6 +772,8 @@ public Builder addReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -725,6 +793,8 @@ public Builder addReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -744,6 +814,8 @@ public Builder addReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -755,8 +827,7 @@ public Builder addAllReservations(
         java.lang.Iterable values) {
       if (reservationsBuilder_ == null) {
         ensureReservationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, reservations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_);
         onChanged();
       } else {
         reservationsBuilder_.addAllMessages(values);
@@ -764,6 +835,8 @@ public Builder addAllReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -782,6 +855,8 @@ public Builder clearReservations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -800,6 +875,8 @@ public Builder removeReservations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -807,11 +884,12 @@ public Builder removeReservations(int index) {
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationsBuilder(
-        int index) {
+    public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationsBuilder(int index) {
       return getReservationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -822,11 +900,14 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationsBuil
     public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrBuilder(
         int index) {
       if (reservationsBuilder_ == null) {
-        return reservations_.get(index);  } else {
+        return reservations_.get(index);
+      } else {
         return reservationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -834,8 +915,8 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public java.util.List 
-         getReservationsOrBuilderList() {
+    public java.util.List
+        getReservationsOrBuilderList() {
       if (reservationsBuilder_ != null) {
         return reservationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -843,6 +924,8 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -851,10 +934,12 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
     public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuilder() {
-      return getReservationsFieldBuilder().addBuilder(
-          com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
+      return getReservationsFieldBuilder()
+          .addBuilder(com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -862,12 +947,13 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuil
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuilder(
-        int index) {
-      return getReservationsFieldBuilder().addBuilder(
-          index, com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
+    public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuilder(int index) {
+      return getReservationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -875,20 +961,23 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuil
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public java.util.List 
-         getReservationsBuilderList() {
+    public java.util.List
+        getReservationsBuilderList() {
       return getReservationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> 
+            com.google.cloud.pubsublite.proto.Reservation,
+            com.google.cloud.pubsublite.proto.Reservation.Builder,
+            com.google.cloud.pubsublite.proto.ReservationOrBuilder>
         getReservationsFieldBuilder() {
       if (reservationsBuilder_ == null) {
-        reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder>(
-                reservations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        reservationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.Reservation,
+                com.google.cloud.pubsublite.proto.Reservation.Builder,
+                com.google.cloud.pubsublite.proto.ReservationOrBuilder>(
+                reservations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         reservations_ = null;
       }
       return reservationsBuilder_;
@@ -896,19 +985,21 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuil
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -917,21 +1008,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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,30 +1031,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -972,27 +1071,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1105,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationsResponse) private static final com.google.cloud.pubsublite.proto.ListReservationsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationsResponse(); } @@ -1016,27 +1119,27 @@ public static com.google.cloud.pubsublite.proto.ListReservationsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1051,6 +1154,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListReservationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java index 18165c42b..8776091b0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListReservationsResponseOrBuilder extends +public interface ListReservationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -15,9 +33,10 @@ public interface ListReservationsResponseOrBuilder extends
    *
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
-  java.util.List 
-      getReservationsList();
+  java.util.List getReservationsList();
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -27,6 +46,8 @@ public interface ListReservationsResponseOrBuilder extends
    */
   com.google.cloud.pubsublite.proto.Reservation getReservations(int index);
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -36,6 +57,8 @@ public interface ListReservationsResponseOrBuilder extends
    */
   int getReservationsCount();
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -43,9 +66,11 @@ public interface ListReservationsResponseOrBuilder extends
    *
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
-  java.util.List 
+  java.util.List
       getReservationsOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -53,28 +78,32 @@ public interface ListReservationsResponseOrBuilder extends
    *
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
-  com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrBuilder(
-      int index);
+  com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java index d962c5f64..78fbe4dc0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for ListSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { parent_ = ""; pageToken_ = ""; @@ -26,39 +44,46 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 @@ -67,30 +92,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 parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 { @@ -101,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -108,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,9 +146,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -127,6 +160,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -135,14 +169,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; } } /** + * + * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -151,16 +186,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 { @@ -169,6 +203,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -204,8 +238,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -218,19 +251,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.cloud.pubsublite.proto.ListSubscriptionsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other = (com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) obj; + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other = + (com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,129 +285,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.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 ListSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListSubscriptionsRequest) com.google.cloud.pubsublite.proto.ListSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +426,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override @@ -409,8 +447,11 @@ public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest result = new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest result = + new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -432,38 +473,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListSubscriptionsRe 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.cloud.pubsublite.proto.ListSubscriptionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; @@ -471,7 +513,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -511,27 +554,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -541,23 +588,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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; @@ -566,21 +618,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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 { @@ -588,30 +643,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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() { @@ -621,18 +687,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -640,8 +712,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -649,6 +723,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -656,6 +731,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -663,17 +740,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -681,6 +761,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -692,6 +773,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -700,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; @@ -715,6 +798,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -723,15 +808,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 { @@ -739,6 +823,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -747,18 +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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -767,6 +857,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -776,6 +867,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -784,21 +877,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListSubscriptionsRequest) private static final com.google.cloud.pubsublite.proto.ListSubscriptionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(); } @@ -822,27 +917,27 @@ public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubscriptionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubscriptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java index 6735ab35e..4268ac2d2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListSubscriptionsRequestOrBuilder extends +public interface ListSubscriptionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -37,11 +64,14 @@ public interface ListSubscriptionsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -50,10 +80,13 @@ public interface ListSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -62,8 +95,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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java index ad9383469..0e91ef43f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response for ListSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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,33 +44,37 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List subscriptions_; /** + * + * *
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -65,6 +87,8 @@ public java.util.List getSubscri
     return subscriptions_;
   }
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -73,11 +97,13 @@ public java.util.List getSubscri
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSubscriptionsOrBuilderList() {
     return subscriptions_;
   }
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -90,6 +116,8 @@ public int getSubscriptionsCount() {
     return subscriptions_.size();
   }
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -102,6 +130,8 @@ public com.google.cloud.pubsublite.proto.Subscription getSubscriptions(int index
     return subscriptions_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -116,15 +146,19 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
+   *
+   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -133,30 +167,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -165,6 +199,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +211,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)); } @@ -194,8 +228,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_); @@ -208,17 +241,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.cloud.pubsublite.proto.ListSubscriptionsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse other = (com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) obj; + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse other = + (com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) obj; - if (!getSubscriptionsList() - .equals(other.getSubscriptionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,129 +274,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListSubscriptionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.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 ListSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListSubscriptionsResponse) com.google.cloud.pubsublite.proto.ListSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override @@ -402,14 +441,18 @@ public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result = new com.google.cloud.pubsublite.proto.ListSubscriptionsResponse(this); + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result = + new com.google.cloud.pubsublite.proto.ListSubscriptionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result) { if (subscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); @@ -432,38 +475,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListSubscriptionsRe 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.cloud.pubsublite.proto.ListSubscriptionsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) other); } else { super.mergeFrom(other); return this; @@ -471,7 +515,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.getDefaultInstance()) + return this; if (subscriptionsBuilder_ == null) { if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { @@ -490,9 +535,10 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsResp 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_); } @@ -529,30 +575,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.pubsublite.proto.Subscription m = - input.readMessage( - com.google.cloud.pubsublite.proto.Subscription.parser(), - extensionRegistry); - if (subscriptionsBuilder_ == null) { - ensureSubscriptionsIsMutable(); - subscriptions_.add(m); - } else { - subscriptionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.pubsublite.proto.Subscription m = + input.readMessage( + com.google.cloud.pubsublite.proto.Subscription.parser(), extensionRegistry); + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.add(m); + } else { + subscriptionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,21 +610,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List subscriptions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - subscriptions_ = new java.util.ArrayList(subscriptions_); + subscriptions_ = + new java.util.ArrayList(subscriptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> subscriptionsBuilder_; + com.google.cloud.pubsublite.proto.Subscription, + com.google.cloud.pubsublite.proto.Subscription.Builder, + com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> + subscriptionsBuilder_; /** + * + * *
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -592,6 +648,8 @@ public java.util.List getSubscri
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -607,6 +665,8 @@ public int getSubscriptionsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -622,6 +682,8 @@ public com.google.cloud.pubsublite.proto.Subscription getSubscriptions(int index
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -644,6 +706,8 @@ public Builder setSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -663,6 +727,8 @@ public Builder setSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -684,6 +750,8 @@ public Builder addSubscriptions(com.google.cloud.pubsublite.proto.Subscription v
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -706,6 +774,8 @@ public Builder addSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -725,6 +795,8 @@ public Builder addSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -744,6 +816,8 @@ public Builder addSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -755,8 +829,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);
@@ -764,6 +837,8 @@ public Builder addAllSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -782,6 +857,8 @@ public Builder clearSubscriptions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -800,6 +877,8 @@ public Builder removeSubscriptions(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -812,6 +891,8 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionsBu
       return getSubscriptionsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -822,11 +903,14 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionsBu
     public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsOrBuilder(
         int index) {
       if (subscriptionsBuilder_ == null) {
-        return subscriptions_.get(index);  } else {
+        return subscriptions_.get(index);
+      } else {
         return subscriptionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -834,8 +918,8 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
      *
      * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
      */
-    public java.util.List 
-         getSubscriptionsOrBuilderList() {
+    public java.util.List
+        getSubscriptionsOrBuilderList() {
       if (subscriptionsBuilder_ != null) {
         return subscriptionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -843,6 +927,8 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -851,10 +937,12 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
      * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
      */
     public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBuilder() {
-      return getSubscriptionsFieldBuilder().addBuilder(
-          com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
+      return getSubscriptionsFieldBuilder()
+          .addBuilder(com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -864,10 +952,12 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBu
      */
     public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBuilder(
         int index) {
-      return getSubscriptionsFieldBuilder().addBuilder(
-          index, com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
+      return getSubscriptionsFieldBuilder()
+          .addBuilder(index, com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -875,16 +965,22 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBu
      *
      * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
      */
-    public java.util.List 
-         getSubscriptionsBuilderList() {
+    public java.util.List
+        getSubscriptionsBuilderList() {
       return getSubscriptionsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> 
+            com.google.cloud.pubsublite.proto.Subscription,
+            com.google.cloud.pubsublite.proto.Subscription.Builder,
+            com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>
         getSubscriptionsFieldBuilder() {
       if (subscriptionsBuilder_ == null) {
-        subscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>(
+        subscriptionsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.Subscription,
+                com.google.cloud.pubsublite.proto.Subscription.Builder,
+                com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>(
                 subscriptions_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -896,19 +992,21 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBu
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -917,21 +1015,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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,30 +1038,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -972,27 +1078,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListSubscriptionsResponse) private static final com.google.cloud.pubsublite.proto.ListSubscriptionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListSubscriptionsResponse(); } @@ -1016,27 +1126,27 @@ public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubscriptionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubscriptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1051,6 +1161,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java index 06af6546b..ea0c2ded8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListSubscriptionsResponseOrBuilder extends +public interface ListSubscriptionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -15,9 +33,10 @@ public interface ListSubscriptionsResponseOrBuilder extends
    *
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
-  java.util.List 
-      getSubscriptionsList();
+  java.util.List getSubscriptionsList();
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -27,6 +46,8 @@ public interface ListSubscriptionsResponseOrBuilder extends
    */
   com.google.cloud.pubsublite.proto.Subscription getSubscriptions(int index);
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -36,6 +57,8 @@ public interface ListSubscriptionsResponseOrBuilder extends
    */
   int getSubscriptionsCount();
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -43,9 +66,11 @@ public interface ListSubscriptionsResponseOrBuilder extends
    *
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
-  java.util.List 
+  java.util.List
       getSubscriptionsOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -53,28 +78,32 @@ public interface ListSubscriptionsResponseOrBuilder extends
    *
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
-  com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsOrBuilder(
-      int index);
+  com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java index 320470d5d..dd9af147d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for ListTopicSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { name_ = ""; pageToken_ = ""; @@ -26,38 +44,45 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * 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 @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,6 +126,8 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -106,6 +135,7 @@ public java.lang.String getName() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,9 +144,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -125,6 +158,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -133,14 +167,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; } } /** + * + * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -149,16 +184,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 { @@ -167,6 +201,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -202,8 +236,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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_); @@ -216,19 +249,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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other = (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) obj; + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other = + (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,129 +283,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.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 ListTopicSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,13 +424,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance(); } @@ -407,13 +446,17 @@ public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result = + new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -430,46 +473,50 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscripti 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.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other) { + if (other + == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -509,27 +556,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -539,22 +590,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * 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; @@ -563,20 +619,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * 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 { @@ -584,28 +643,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * 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() { @@ -615,17 +685,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -633,8 +709,10 @@ public Builder setNameBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -642,6 +720,7 @@ public Builder setNameBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -649,6 +728,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -656,17 +737,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -674,6 +758,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -685,6 +770,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -693,13 +780,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; @@ -708,6 +795,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -716,15 +805,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 { @@ -732,6 +820,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -740,18 +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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -760,6 +854,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -769,6 +864,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -777,21 +874,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -801,41 +900,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) - private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSubscriptionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSubscriptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,9 +948,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java index ba7bba85e..da4ea21fd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListTopicSubscriptionsRequestOrBuilder extends +public interface ListTopicSubscriptionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * 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 topic whose subscriptions to list.
    * 
* - * 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 maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -35,11 +62,14 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -48,10 +78,13 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -60,8 +93,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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java index 2a4b6bf99..ebf9a1f49 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response for ListTopicSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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,64 +45,74 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList subscriptions_; /** + * + * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; + * * @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. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; + * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; + * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -91,30 +120,36 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; + * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. */ - public com.google.protobuf.ByteString - getSubscriptionsBytes(int index) { + public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +158,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -155,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,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 < subscriptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscriptions_.getRaw(i)); } @@ -202,17 +237,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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other = (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) obj; + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other = + (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) obj; - if (!getSubscriptionsList() - .equals(other.getSubscriptionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,129 +270,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.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 ListTopicSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +411,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance(); } @@ -391,14 +433,18 @@ public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse build() @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(this); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result = + new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -406,7 +452,8 @@ private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListTo result.subscriptions_ = subscriptions_; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -417,46 +464,50 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscripti 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.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other) { + if (other + == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance()) + return this; if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { subscriptions_ = other.subscriptions_; @@ -498,23 +549,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubscriptionsIsMutable(); - subscriptions_.add(s); - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubscriptionsIsMutable(); + subscriptions_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -524,47 +578,58 @@ public Builder mergeFrom( } // finally 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. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; + * * @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. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; + * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; + * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -572,81 +637,95 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; + * * @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. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; + * * @param index The index to set the value at. * @param value The subscriptions to set. * @return This builder for chaining. */ - public Builder setSubscriptions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubscriptionsIsMutable(); subscriptions_.set(index, value); onChanged(); return this; } /** + * + * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; + * * @param value The subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubscriptions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); return this; } /** + * + * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; + * * @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. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; + * * @return This builder for chaining. */ public Builder clearSubscriptions() { @@ -656,18 +735,22 @@ public Builder clearSubscriptions() { return this; } /** + * + * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; + * * @param value The bytes of the subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSubscriptionsIsMutable(); subscriptions_.add(value); @@ -677,19 +760,21 @@ public Builder addSubscriptionsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -698,21 +783,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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 { @@ -720,30 +806,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -753,27 +846,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -783,41 +880,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) - private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSubscriptionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSubscriptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,9 +928,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java index 4c7fd2de0..24d56f8aa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,76 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListTopicSubscriptionsResponseOrBuilder extends +public interface ListTopicSubscriptionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; + * * @return A list containing the subscriptions. */ - java.util.List - getSubscriptionsList(); + java.util.List getSubscriptionsList(); /** + * + * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; + * * @return The count of subscriptions. */ int getSubscriptionsCount(); /** + * + * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; + * * @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. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; + * * @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); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java index 7bc6a24cb..ff8094ce8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for ListTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { parent_ = ""; pageToken_ = ""; @@ -26,39 +44,46 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsRequest.class, com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsRequest.class, + com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 @@ -67,30 +92,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 parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 { @@ -101,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of topics to return. The service may return fewer than
    * this value.
@@ -108,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,9 +146,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -127,6 +160,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -135,14 +169,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; } } /** + * + * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -151,16 +186,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 { @@ -169,6 +203,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -204,8 +238,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } 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_); @@ -218,19 +251,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.cloud.pubsublite.proto.ListTopicsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicsRequest other = (com.google.cloud.pubsublite.proto.ListTopicsRequest) obj; + com.google.cloud.pubsublite.proto.ListTopicsRequest other = + (com.google.cloud.pubsublite.proto.ListTopicsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,129 +285,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicsRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 ListTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListTopicsRequest) com.google.cloud.pubsublite.proto.ListTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsRequest.class, com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsRequest.class, + com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override @@ -409,8 +446,11 @@ public com.google.cloud.pubsublite.proto.ListTopicsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicsRequest result = new com.google.cloud.pubsublite.proto.ListTopicsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListTopicsRequest result = + new com.google.cloud.pubsublite.proto.ListTopicsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -432,38 +472,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicsRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListTopicsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsRequest) other); } else { super.mergeFrom(other); return this; @@ -471,7 +512,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -511,27 +553,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -541,23 +587,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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; @@ -566,21 +617,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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 { @@ -588,30 +642,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * 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() { @@ -621,18 +686,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -640,8 +711,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -649,6 +722,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -656,6 +730,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -663,17 +739,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -681,6 +760,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -692,6 +772,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -700,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; @@ -715,6 +797,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -723,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 { @@ -739,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -747,18 +832,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -767,6 +856,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -776,6 +866,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -784,21 +876,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +902,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicsRequest) private static final com.google.cloud.pubsublite.proto.ListTopicsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicsRequest(); } @@ -822,27 +916,27 @@ public static com.google.cloud.pubsublite.proto.ListTopicsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java index c19f8e09f..2e17a0d4d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListTopicsRequestOrBuilder extends +public interface ListTopicsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * 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 maximum number of topics to return. The service may return fewer than
    * this value.
@@ -37,11 +64,14 @@ public interface ListTopicsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -50,10 +80,13 @@ public interface ListTopicsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -62,8 +95,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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java index aaddb32ff..250246b52 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response for ListTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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,33 +44,37 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsResponse.class, com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsResponse.class, + com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); } public static final int TOPICS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List topics_; /** + * + * *
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -65,6 +87,8 @@ public java.util.List getTopicsList() {
     return topics_;
   }
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -73,11 +97,13 @@ public java.util.List getTopicsList() {
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTopicsOrBuilderList() {
     return topics_;
   }
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -90,6 +116,8 @@ public int getTopicsCount() {
     return topics_.size();
   }
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -102,6 +130,8 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
     return topics_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -110,21 +140,24 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
   @java.lang.Override
-  public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
-      int index) {
+  public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int index) {
     return topics_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
+   *
+   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -133,30 +166,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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 { @@ -165,6 +198,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < topics_.size(); i++) { output.writeMessage(1, topics_.get(i)); } @@ -194,8 +227,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_); @@ -208,17 +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.cloud.pubsublite.proto.ListTopicsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicsResponse other = (com.google.cloud.pubsublite.proto.ListTopicsResponse) obj; + com.google.cloud.pubsublite.proto.ListTopicsResponse other = + (com.google.cloud.pubsublite.proto.ListTopicsResponse) obj; - if (!getTopicsList() - .equals(other.getTopicsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getTopicsList().equals(other.getTopicsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,129 +273,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicsResponse 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.ListTopicsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 ListTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.ListTopicsResponse) com.google.cloud.pubsublite.proto.ListTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsResponse.class, com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsResponse.class, + com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; } @java.lang.Override @@ -402,14 +439,18 @@ public com.google.cloud.pubsublite.proto.ListTopicsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicsResponse result = new com.google.cloud.pubsublite.proto.ListTopicsResponse(this); + com.google.cloud.pubsublite.proto.ListTopicsResponse result = + new com.google.cloud.pubsublite.proto.ListTopicsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListTopicsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.pubsublite.proto.ListTopicsResponse result) { if (topicsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); @@ -432,38 +473,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicsResponse 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.cloud.pubsublite.proto.ListTopicsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsResponse) other); } else { super.mergeFrom(other); return this; @@ -471,7 +513,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ListTopicsResponse.getDefaultInstance()) + return this; if (topicsBuilder_ == null) { if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { @@ -490,9 +533,10 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsResponse ot 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_); } @@ -529,30 +573,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.pubsublite.proto.Topic m = - input.readMessage( - com.google.cloud.pubsublite.proto.Topic.parser(), - extensionRegistry); - if (topicsBuilder_ == null) { - ensureTopicsIsMutable(); - topics_.add(m); - } else { - topicsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.pubsublite.proto.Topic m = + input.readMessage( + com.google.cloud.pubsublite.proto.Topic.parser(), extensionRegistry); + if (topicsBuilder_ == null) { + ensureTopicsIsMutable(); + topics_.add(m); + } else { + topicsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,21 +608,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List topics_ = - java.util.Collections.emptyList(); + 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.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> topicsBuilder_; + com.google.cloud.pubsublite.proto.Topic, + com.google.cloud.pubsublite.proto.Topic.Builder, + com.google.cloud.pubsublite.proto.TopicOrBuilder> + topicsBuilder_; /** + * + * *
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -592,6 +645,8 @@ public java.util.List getTopicsList() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -607,6 +662,8 @@ public int getTopicsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -622,6 +679,8 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -629,8 +688,7 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public Builder setTopics(
-        int index, com.google.cloud.pubsublite.proto.Topic value) {
+    public Builder setTopics(int index, com.google.cloud.pubsublite.proto.Topic value) {
       if (topicsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -644,6 +702,8 @@ public Builder setTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -663,6 +723,8 @@ public Builder setTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -684,6 +746,8 @@ public Builder addTopics(com.google.cloud.pubsublite.proto.Topic value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -691,8 +755,7 @@ public Builder addTopics(com.google.cloud.pubsublite.proto.Topic value) {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public Builder addTopics(
-        int index, com.google.cloud.pubsublite.proto.Topic value) {
+    public Builder addTopics(int index, com.google.cloud.pubsublite.proto.Topic value) {
       if (topicsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -706,6 +769,8 @@ public Builder addTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -713,8 +778,7 @@ public Builder addTopics(
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public Builder addTopics(
-        com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) {
+    public Builder addTopics(com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) {
       if (topicsBuilder_ == null) {
         ensureTopicsIsMutable();
         topics_.add(builderForValue.build());
@@ -725,6 +789,8 @@ public Builder addTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -744,6 +810,8 @@ public Builder addTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -755,8 +823,7 @@ 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);
@@ -764,6 +831,8 @@ public Builder addAllTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -782,6 +851,8 @@ public Builder clearTopics() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -800,6 +871,8 @@ public Builder removeTopics(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -807,11 +880,12 @@ public Builder removeTopics(int index) {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public com.google.cloud.pubsublite.proto.Topic.Builder getTopicsBuilder(
-        int index) {
+    public com.google.cloud.pubsublite.proto.Topic.Builder getTopicsBuilder(int index) {
       return getTopicsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -819,14 +893,16 @@ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicsBuilder(
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
-        int index) {
+    public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int index) {
       if (topicsBuilder_ == null) {
-        return topics_.get(index);  } else {
+        return topics_.get(index);
+      } else {
         return topicsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -834,8 +910,8 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public java.util.List 
-         getTopicsOrBuilderList() {
+    public java.util.List
+        getTopicsOrBuilderList() {
       if (topicsBuilder_ != null) {
         return topicsBuilder_.getMessageOrBuilderList();
       } else {
@@ -843,6 +919,8 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -851,10 +929,12 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
     public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder() {
-      return getTopicsFieldBuilder().addBuilder(
-          com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
+      return getTopicsFieldBuilder()
+          .addBuilder(com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -862,12 +942,13 @@ public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder() {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(
-        int index) {
-      return getTopicsFieldBuilder().addBuilder(
-          index, com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
+    public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(int index) {
+      return getTopicsFieldBuilder()
+          .addBuilder(index, com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -875,20 +956,22 @@ public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public java.util.List 
-         getTopicsBuilderList() {
+    public java.util.List getTopicsBuilderList() {
       return getTopicsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> 
+            com.google.cloud.pubsublite.proto.Topic,
+            com.google.cloud.pubsublite.proto.Topic.Builder,
+            com.google.cloud.pubsublite.proto.TopicOrBuilder>
         getTopicsFieldBuilder() {
       if (topicsBuilder_ == null) {
-        topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder>(
-                topics_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        topicsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.Topic,
+                com.google.cloud.pubsublite.proto.Topic.Builder,
+                com.google.cloud.pubsublite.proto.TopicOrBuilder>(
+                topics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         topics_ = null;
       }
       return topicsBuilder_;
@@ -896,19 +979,21 @@ public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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; @@ -917,21 +1002,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * 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,30 +1025,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -972,27 +1065,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1099,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicsResponse) private static final com.google.cloud.pubsublite.proto.ListTopicsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicsResponse(); } @@ -1016,27 +1113,27 @@ public static com.google.cloud.pubsublite.proto.ListTopicsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1051,6 +1148,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java index 00efedc69..e6a365012 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface ListTopicsResponseOrBuilder extends +public interface ListTopicsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -15,9 +33,10 @@ public interface ListTopicsResponseOrBuilder extends
    *
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
-  java.util.List 
-      getTopicsList();
+  java.util.List getTopicsList();
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -27,6 +46,8 @@ public interface ListTopicsResponseOrBuilder extends
    */
   com.google.cloud.pubsublite.proto.Topic getTopics(int index);
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -36,6 +57,8 @@ public interface ListTopicsResponseOrBuilder extends
    */
   int getTopicsCount();
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -43,9 +66,11 @@ public interface ListTopicsResponseOrBuilder extends
    *
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
-  java.util.List 
+  java.util.List
       getTopicsOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -53,28 +78,32 @@ public interface ListTopicsResponseOrBuilder extends
    *
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
-  com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
-      int index);
+  com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * 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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java index f2a012890..4021a974e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java @@ -1,57 +1,79 @@ +/* + * 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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request to publish messages to the topic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishRequest} */ -public final class MessagePublishRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MessagePublishRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishRequest) MessagePublishRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MessagePublishRequest.newBuilder() to construct. private MessagePublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MessagePublishRequest() { messages_ = 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 MessagePublishRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishRequest.class, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishRequest.class, + com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); } public static final int MESSAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List messages_; /** + * + * *
    * The messages to publish.
    * 
@@ -63,6 +85,8 @@ public java.util.List getMessag return messages_; } /** + * + * *
    * The messages to publish.
    * 
@@ -70,11 +94,13 @@ public java.util.List getMessag * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** + * + * *
    * The messages to publish.
    * 
@@ -86,6 +112,8 @@ public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * The messages to publish.
    * 
@@ -97,6 +125,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { return messages_.get(index); } /** + * + * *
    * The messages to publish.
    * 
@@ -104,14 +134,15 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder( - int index) { + public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder(int index) { return messages_.get(index); } public static final int FIRST_SEQUENCE_NUMBER_FIELD_NUMBER = 2; private long firstSequenceNumber_ = 0L; /** + * + * *
    * The sequence number corresponding to the first message in `messages`.
    * Messages within a batch are ordered and the sequence numbers of all
@@ -126,6 +157,7 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui
    * 
* * int64 first_sequence_number = 2; + * * @return The firstSequenceNumber. */ @java.lang.Override @@ -134,6 +166,7 @@ public long getFirstSequenceNumber() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +178,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 < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } @@ -163,12 +195,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); } if (firstSequenceNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, firstSequenceNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, firstSequenceNumber_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,17 +208,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.cloud.pubsublite.proto.MessagePublishRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessagePublishRequest other = (com.google.cloud.pubsublite.proto.MessagePublishRequest) obj; + com.google.cloud.pubsublite.proto.MessagePublishRequest other = + (com.google.cloud.pubsublite.proto.MessagePublishRequest) obj; - if (!getMessagesList() - .equals(other.getMessagesList())) return false; - if (getFirstSequenceNumber() - != other.getFirstSequenceNumber()) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (getFirstSequenceNumber() != other.getFirstSequenceNumber()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,137 +234,143 @@ public int hashCode() { hash = (53 * hash) + getMessagesList().hashCode(); } hash = (37 * hash) + FIRST_SEQUENCE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFirstSequenceNumber()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFirstSequenceNumber()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest 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.cloud.pubsublite.proto.MessagePublishRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.MessagePublishRequest 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 to publish messages to the topic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishRequest} */ - 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.cloud.pubsublite.v1.MessagePublishRequest) com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishRequest.class, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishRequest.class, + com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.MessagePublishRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +387,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; } @java.lang.Override @@ -373,14 +408,18 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishRequest buildPartial() { - com.google.cloud.pubsublite.proto.MessagePublishRequest result = new com.google.cloud.pubsublite.proto.MessagePublishRequest(this); + com.google.cloud.pubsublite.proto.MessagePublishRequest result = + new com.google.cloud.pubsublite.proto.MessagePublishRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.MessagePublishRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.pubsublite.proto.MessagePublishRequest result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -403,38 +442,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishReque 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.cloud.pubsublite.proto.MessagePublishRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishRequest) other); } else { super.mergeFrom(other); return this; @@ -442,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishRequest other) { - if (other == com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) + return this; if (messagesBuilder_ == null) { if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { @@ -461,9 +502,10 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishRequest 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_); } @@ -498,30 +540,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.pubsublite.proto.PubSubMessage m = - input.readMessage( - com.google.cloud.pubsublite.proto.PubSubMessage.parser(), - extensionRegistry); - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.add(m); - } else { - messagesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - firstSequenceNumber_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.pubsublite.proto.PubSubMessage m = + input.readMessage( + com.google.cloud.pubsublite.proto.PubSubMessage.parser(), + extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + firstSequenceNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -531,21 +576,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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_); + messages_ = + new java.util.ArrayList(messages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> messagesBuilder_; + com.google.cloud.pubsublite.proto.PubSubMessage, + com.google.cloud.pubsublite.proto.PubSubMessage.Builder, + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> + messagesBuilder_; /** + * + * *
      * The messages to publish.
      * 
@@ -560,6 +613,8 @@ public java.util.List getMessag } } /** + * + * *
      * The messages to publish.
      * 
@@ -574,6 +629,8 @@ public int getMessagesCount() { } } /** + * + * *
      * The messages to publish.
      * 
@@ -588,14 +645,15 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { } } /** + * + * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public Builder setMessages( - int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { + public Builder setMessages(int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -609,6 +667,8 @@ public Builder setMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -627,6 +687,8 @@ public Builder setMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -647,14 +709,15 @@ public Builder addMessages(com.google.cloud.pubsublite.proto.PubSubMessage value return this; } /** + * + * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public Builder addMessages( - int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { + public Builder addMessages(int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -668,6 +731,8 @@ public Builder addMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -686,6 +751,8 @@ public Builder addMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -704,6 +771,8 @@ public Builder addMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -714,8 +783,7 @@ 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); @@ -723,6 +791,8 @@ public Builder addAllMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -740,6 +810,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -757,17 +829,20 @@ public Builder removeMessages(int index) { return this; } /** + * + * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessagesBuilder( - int index) { + public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessagesBuilder(int index) { return getMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The messages to publish.
      * 
@@ -777,19 +852,22 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessagesBuilde public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { - return messages_.get(index); } else { + return messages_.get(index); + } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -797,6 +875,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui } } /** + * + * *
      * The messages to publish.
      * 
@@ -804,49 +884,57 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder().addBuilder( - com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); + return getMessagesFieldBuilder() + .addBuilder(com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); } /** + * + * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder( - int index) { - return getMessagesFieldBuilder().addBuilder( - index, com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); + public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder(int index) { + return getMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); } /** + * + * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> + com.google.cloud.pubsublite.proto.PubSubMessage, + com.google.cloud.pubsublite.proto.PubSubMessage.Builder, + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( - messages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.PubSubMessage, + com.google.cloud.pubsublite.proto.PubSubMessage.Builder, + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( + messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; } - private long firstSequenceNumber_ ; + private long firstSequenceNumber_; /** + * + * *
      * The sequence number corresponding to the first message in `messages`.
      * Messages within a batch are ordered and the sequence numbers of all
@@ -861,6 +949,7 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilde
      * 
* * int64 first_sequence_number = 2; + * * @return The firstSequenceNumber. */ @java.lang.Override @@ -868,6 +957,8 @@ public long getFirstSequenceNumber() { return firstSequenceNumber_; } /** + * + * *
      * The sequence number corresponding to the first message in `messages`.
      * Messages within a batch are ordered and the sequence numbers of all
@@ -882,17 +973,20 @@ public long getFirstSequenceNumber() {
      * 
* * int64 first_sequence_number = 2; + * * @param value The firstSequenceNumber to set. * @return This builder for chaining. */ public Builder setFirstSequenceNumber(long value) { - + firstSequenceNumber_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The sequence number corresponding to the first message in `messages`.
      * Messages within a batch are ordered and the sequence numbers of all
@@ -907,6 +1001,7 @@ public Builder setFirstSequenceNumber(long value) {
      * 
* * int64 first_sequence_number = 2; + * * @return This builder for chaining. */ public Builder clearFirstSequenceNumber() { @@ -915,9 +1010,9 @@ public Builder clearFirstSequenceNumber() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -927,12 +1022,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishRequest) private static final com.google.cloud.pubsublite.proto.MessagePublishRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishRequest(); } @@ -941,27 +1036,27 @@ public static com.google.cloud.pubsublite.proto.MessagePublishRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessagePublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessagePublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -976,6 +1071,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.MessagePublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java index 1124f87d8..71b96c755 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; -public interface MessagePublishRequestOrBuilder extends +public interface MessagePublishRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The messages to publish.
    * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - java.util.List - getMessagesList(); + java.util.List getMessagesList(); /** + * + * *
    * The messages to publish.
    * 
@@ -25,6 +44,8 @@ public interface MessagePublishRequestOrBuilder extends */ com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index); /** + * + * *
    * The messages to publish.
    * 
@@ -33,25 +54,30 @@ public interface MessagePublishRequestOrBuilder extends */ int getMessagesCount(); /** + * + * *
    * The messages to publish.
    * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** + * + * *
    * The messages to publish.
    * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder( - int index); + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder(int index); /** + * + * *
    * The sequence number corresponding to the first message in `messages`.
    * Messages within a batch are ordered and the sequence numbers of all
@@ -66,6 +92,7 @@ com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder(
    * 
* * int64 first_sequence_number = 2; + * * @return The firstSequenceNumber. */ long getFirstSequenceNumber(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java index 2e384dcce..0f7a3484e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java @@ -1,78 +1,106 @@ +/* + * 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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response to a MessagePublishRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse} */ -public final class MessagePublishResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MessagePublishResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishResponse) MessagePublishResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MessagePublishResponse.newBuilder() to construct. private MessagePublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MessagePublishResponse() { cursorRanges_ = 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 MessagePublishResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishResponse.class, + com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); } - public interface CursorRangeOrBuilder extends + public interface CursorRangeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return Whether the startCursor field is set. */ boolean hasStartCursor(); /** + * + * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return The startCursor. */ com.google.cloud.pubsublite.proto.Cursor getStartCursor(); /** + * + * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
@@ -83,79 +111,91 @@ public interface CursorRangeOrBuilder extends
     com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder();
 
     /**
+     *
+     *
      * 
      * Index of the message in the published batch that corresponds to the
      * start cursor. Inclusive.
      * 
* * int32 start_index = 2; + * * @return The startIndex. */ int getStartIndex(); /** + * + * *
      * Index of the last message in this range. Exclusive.
      * 
* * int32 end_index = 3; + * * @return The endIndex. */ int getEndIndex(); } /** + * + * *
    * Cursors for a subrange of published messages.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange} */ - public static final class CursorRange extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CursorRange extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) CursorRangeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CursorRange.newBuilder() to construct. private CursorRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CursorRange() { - } + + private CursorRange() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CursorRange(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); } public static final int START_CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor startCursor_; /** + * + * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return Whether the startCursor field is set. */ @java.lang.Override @@ -163,19 +203,26 @@ public boolean hasStartCursor() { return startCursor_ != null; } /** + * + * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return The startCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { - return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + return startCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : startCursor_; } /** + * + * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
@@ -185,18 +232,23 @@ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() {
      */
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() {
-      return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_;
+      return startCursor_ == null
+          ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+          : startCursor_;
     }
 
     public static final int START_INDEX_FIELD_NUMBER = 2;
     private int startIndex_ = 0;
     /**
+     *
+     *
      * 
      * Index of the message in the published batch that corresponds to the
      * start cursor. Inclusive.
      * 
* * int32 start_index = 2; + * * @return The startIndex. */ @java.lang.Override @@ -207,11 +259,14 @@ public int getStartIndex() { public static final int END_INDEX_FIELD_NUMBER = 3; private int endIndex_ = 0; /** + * + * *
      * Index of the last message in this range. Exclusive.
      * 
* * int32 end_index = 3; + * * @return The endIndex. */ @java.lang.Override @@ -220,6 +275,7 @@ public int getEndIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,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 (startCursor_ != null) { output.writeMessage(1, getStartCursor()); } @@ -252,16 +307,13 @@ public int getSerializedSize() { size = 0; if (startCursor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartCursor()); } if (startIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, startIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startIndex_); } if (endIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, endIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,22 +323,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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other = (com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) obj; + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other = + (com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) obj; if (hasStartCursor() != other.hasStartCursor()) return false; if (hasStartCursor()) { - if (!getStartCursor() - .equals(other.getStartCursor())) return false; + if (!getStartCursor().equals(other.getStartCursor())) return false; } - if (getStartIndex() - != other.getStartIndex()) return false; - if (getEndIndex() - != other.getEndIndex()) return false; + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,87 +362,95 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange 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 @@ -402,39 +460,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Cursors for a subrange of published messages.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange} */ - 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.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); } - // Construct using com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -450,19 +511,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstanceForType() { - return com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance(); + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + getDefaultInstanceForType() { + return com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange build() { - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = buildPartial(); + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -471,18 +535,21 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange buil @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange buildPartial() { - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = new com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = + new com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startCursor_ = startCursorBuilder_ == null - ? startCursor_ - : startCursorBuilder_.build(); + result.startCursor_ = + startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.startIndex_ = startIndex_; @@ -496,46 +563,53 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishRespo 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.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) { - return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange)other); + return mergeFrom( + (com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other) { - if (other == com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other) { + if (other + == com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + .getDefaultInstance()) return this; if (other.hasStartCursor()) { mergeStartCursor(other.getStartCursor()); } @@ -571,29 +645,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - startIndex_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - endIndex_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,40 +679,54 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor startCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> startCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + startCursorBuilder_; /** + * + * *
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
        * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return Whether the startCursor field is set. */ public boolean hasStartCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
        * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return The startCursor. */ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { if (startCursorBuilder_ == null) { - return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + return startCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : startCursor_; } else { return startCursorBuilder_.getMessage(); } } /** + * + * *
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -658,6 +748,8 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -677,6 +769,8 @@ public Builder setStartCursor(
         return this;
       }
       /**
+       *
+       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -686,9 +780,9 @@ public Builder setStartCursor(
        */
       public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) {
         if (startCursorBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            startCursor_ != null &&
-            startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && startCursor_ != null
+              && startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
             getStartCursorBuilder().mergeFrom(value);
           } else {
             startCursor_ = value;
@@ -701,6 +795,8 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value)
         return this;
       }
       /**
+       *
+       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -719,6 +815,8 @@ public Builder clearStartCursor() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -732,6 +830,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder()
         return getStartCursorFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -743,11 +843,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
         if (startCursorBuilder_ != null) {
           return startCursorBuilder_.getMessageOrBuilder();
         } else {
-          return startCursor_ == null ?
-              com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_;
+          return startCursor_ == null
+              ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+              : startCursor_;
         }
       }
       /**
+       *
+       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -756,27 +859,33 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
        * .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
+              com.google.cloud.pubsublite.proto.Cursor,
+              com.google.cloud.pubsublite.proto.Cursor.Builder,
+              com.google.cloud.pubsublite.proto.CursorOrBuilder>
           getStartCursorFieldBuilder() {
         if (startCursorBuilder_ == null) {
-          startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                  getStartCursor(),
-                  getParentForChildren(),
-                  isClean());
+          startCursorBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.pubsublite.proto.Cursor,
+                  com.google.cloud.pubsublite.proto.Cursor.Builder,
+                  com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                  getStartCursor(), getParentForChildren(), isClean());
           startCursor_ = null;
         }
         return startCursorBuilder_;
       }
 
-      private int startIndex_ ;
+      private int startIndex_;
       /**
+       *
+       *
        * 
        * Index of the message in the published batch that corresponds to the
        * start cursor. Inclusive.
        * 
* * int32 start_index = 2; + * * @return The startIndex. */ @java.lang.Override @@ -784,29 +893,35 @@ public int getStartIndex() { return startIndex_; } /** + * + * *
        * Index of the message in the published batch that corresponds to the
        * start cursor. Inclusive.
        * 
* * int32 start_index = 2; + * * @param value The startIndex to set. * @return This builder for chaining. */ public Builder setStartIndex(int value) { - + startIndex_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Index of the message in the published batch that corresponds to the
        * start cursor. Inclusive.
        * 
* * int32 start_index = 2; + * * @return This builder for chaining. */ public Builder clearStartIndex() { @@ -816,13 +931,16 @@ public Builder clearStartIndex() { return this; } - private int endIndex_ ; + private int endIndex_; /** + * + * *
        * Index of the last message in this range. Exclusive.
        * 
* * int32 end_index = 3; + * * @return The endIndex. */ @java.lang.Override @@ -830,27 +948,33 @@ public int getEndIndex() { return endIndex_; } /** + * + * *
        * Index of the last message in this range. Exclusive.
        * 
* * int32 end_index = 3; + * * @param value The endIndex to set. * @return This builder for chaining. */ public Builder setEndIndex(int value) { - + endIndex_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Index of the last message in this range. Exclusive.
        * 
* * int32 end_index = 3; + * * @return This builder for chaining. */ public Builder clearEndIndex() { @@ -859,6 +983,7 @@ public Builder clearEndIndex() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -871,41 +996,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) - private static final com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange(); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CursorRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CursorRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,21 +1045,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int START_CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor startCursor_; /** + * + * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return Whether the startCursor field is set. */ @java.lang.Override @@ -939,19 +1070,26 @@ public boolean hasStartCursor() { return startCursor_ != null; } /** + * + * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return The startCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { - return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + return startCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : startCursor_; } /** + * + * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
@@ -961,13 +1099,19 @@ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() {
-    return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_;
+    return startCursor_ == null
+        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+        : startCursor_;
   }
 
   public static final int CURSOR_RANGES_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
-  private java.util.List cursorRanges_;
+  private java.util.List
+      cursorRanges_;
   /**
+   *
+   *
    * 
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -978,13 +1122,18 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
    * These messages will have offsets when received by a subscriber.
    * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ @java.lang.Override - public java.util.List getCursorRangesList() { + public java.util.List + getCursorRangesList() { return cursorRanges_; } /** + * + * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -995,14 +1144,19 @@ public java.util.List
    *
-   * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
+   * 
+   * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>
       getCursorRangesOrBuilderList() {
     return cursorRanges_;
   }
   /**
+   *
+   *
    * 
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -1013,13 +1167,17 @@ public java.util.List
    *
-   * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
+   * 
+   * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
+   * 
    */
   @java.lang.Override
   public int getCursorRangesCount() {
     return cursorRanges_.size();
   }
   /**
+   *
+   *
    * 
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -1030,13 +1188,18 @@ public int getCursorRangesCount() {
    * These messages will have offsets when received by a subscriber.
    * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges(int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges( + int index) { return cursorRanges_.get(index); } /** + * + * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -1047,15 +1210,18 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getC
    * These messages will have offsets when received by a subscriber.
    * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder( - int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder + getCursorRangesOrBuilder(int index) { return cursorRanges_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1067,8 +1233,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 (startCursor_ != null) { output.writeMessage(1, getStartCursor()); } @@ -1085,12 +1250,10 @@ public int getSerializedSize() { size = 0; if (startCursor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartCursor()); } for (int i = 0; i < cursorRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, cursorRanges_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, cursorRanges_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1100,20 +1263,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.cloud.pubsublite.proto.MessagePublishResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessagePublishResponse other = (com.google.cloud.pubsublite.proto.MessagePublishResponse) obj; + com.google.cloud.pubsublite.proto.MessagePublishResponse other = + (com.google.cloud.pubsublite.proto.MessagePublishResponse) obj; if (hasStartCursor() != other.hasStartCursor()) return false; if (hasStartCursor()) { - if (!getStartCursor() - .equals(other.getStartCursor())) return false; + if (!getStartCursor().equals(other.getStartCursor())) return false; } - if (!getCursorRangesList() - .equals(other.getCursorRangesList())) return false; + if (!getCursorRangesList().equals(other.getCursorRangesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1139,129 +1301,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse 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.cloud.pubsublite.proto.MessagePublishResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.MessagePublishResponse 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 to a MessagePublishRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse} */ - 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.cloud.pubsublite.v1.MessagePublishResponse) com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishResponse.class, + com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1282,9 +1451,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; } @java.lang.Override @@ -1303,14 +1472,18 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse buildPartial() { - com.google.cloud.pubsublite.proto.MessagePublishResponse result = new com.google.cloud.pubsublite.proto.MessagePublishResponse(this); + com.google.cloud.pubsublite.proto.MessagePublishResponse result = + new com.google.cloud.pubsublite.proto.MessagePublishResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.MessagePublishResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.pubsublite.proto.MessagePublishResponse result) { if (cursorRangesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { cursorRanges_ = java.util.Collections.unmodifiableList(cursorRanges_); @@ -1325,9 +1498,8 @@ private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.Messag private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startCursor_ = startCursorBuilder_ == null - ? startCursor_ - : startCursorBuilder_.build(); + result.startCursor_ = + startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); } } @@ -1335,38 +1507,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishRespo 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.cloud.pubsublite.proto.MessagePublishResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishResponse) other); } else { super.mergeFrom(other); return this; @@ -1374,7 +1547,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishResponse other) { - if (other == com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) + return this; if (other.hasStartCursor()) { mergeStartCursor(other.getStartCursor()); } @@ -1396,9 +1570,10 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishRespons cursorRangesBuilder_ = null; cursorRanges_ = other.cursorRanges_; bitField0_ = (bitField0_ & ~0x00000002); - cursorRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCursorRangesFieldBuilder() : null; + cursorRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCursorRangesFieldBuilder() + : null; } else { cursorRangesBuilder_.addAllMessages(other.cursorRanges_); } @@ -1430,32 +1605,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange m = - input.readMessage( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.parser(), - extensionRegistry); - if (cursorRangesBuilder_ == null) { - ensureCursorRangesIsMutable(); - cursorRanges_.add(m); - } else { - cursorRangesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange m = + input.readMessage( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + .parser(), + extensionRegistry); + if (cursorRangesBuilder_ == null) { + ensureCursorRangesIsMutable(); + cursorRanges_.add(m); + } else { + cursorRangesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1465,40 +1642,54 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor startCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> startCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + startCursorBuilder_; /** + * + * *
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return Whether the startCursor field is set. */ public boolean hasStartCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return The startCursor. */ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { if (startCursorBuilder_ == null) { - return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; + return startCursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : startCursor_; } else { return startCursorBuilder_.getMessage(); } } /** + * + * *
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1520,6 +1711,8 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1539,6 +1732,8 @@ public Builder setStartCursor(
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1548,9 +1743,9 @@ public Builder setStartCursor(
      */
     public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (startCursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          startCursor_ != null &&
-          startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && startCursor_ != null
+            && startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getStartCursorBuilder().mergeFrom(value);
         } else {
           startCursor_ = value;
@@ -1563,6 +1758,8 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1581,6 +1778,8 @@ public Builder clearStartCursor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1594,6 +1793,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder()
       return getStartCursorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1605,11 +1806,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
       if (startCursorBuilder_ != null) {
         return startCursorBuilder_.getMessageOrBuilder();
       } else {
-        return startCursor_ == null ?
-            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_;
+        return startCursor_ == null
+            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+            : startCursor_;
       }
     }
     /**
+     *
+     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1618,32 +1822,44 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
      * .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
+            com.google.cloud.pubsublite.proto.Cursor,
+            com.google.cloud.pubsublite.proto.Cursor.Builder,
+            com.google.cloud.pubsublite.proto.CursorOrBuilder>
         getStartCursorFieldBuilder() {
       if (startCursorBuilder_ == null) {
-        startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getStartCursor(),
-                getParentForChildren(),
-                isClean());
+        startCursorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.Cursor,
+                com.google.cloud.pubsublite.proto.Cursor.Builder,
+                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getStartCursor(), getParentForChildren(), isClean());
         startCursor_ = null;
       }
       return startCursorBuilder_;
     }
 
-    private java.util.List cursorRanges_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        cursorRanges_ = java.util.Collections.emptyList();
+
     private void ensureCursorRangesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        cursorRanges_ = new java.util.ArrayList(cursorRanges_);
+        cursorRanges_ =
+            new java.util.ArrayList<
+                com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange>(
+                cursorRanges_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> cursorRangesBuilder_;
+            com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange,
+            com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder,
+            com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>
+        cursorRangesBuilder_;
 
     /**
+     *
+     *
      * 
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1654,9 +1870,12 @@ private void ensureCursorRangesIsMutable() {
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - public java.util.List getCursorRangesList() { + public java.util.List + getCursorRangesList() { if (cursorRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(cursorRanges_); } else { @@ -1664,6 +1883,8 @@ public java.util.List * Cursors for messages published in the batch. There will exist multiple * ranges when cursors are not contiguous within the batch. @@ -1674,7 +1895,9 @@ public java.util.List * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ public int getCursorRangesCount() { if (cursorRangesBuilder_ == null) { @@ -1684,6 +1907,8 @@ public int getCursorRangesCount() { } } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1694,9 +1919,12 @@ public int getCursorRangesCount() {
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges(int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges( + int index) { if (cursorRangesBuilder_ == null) { return cursorRanges_.get(index); } else { @@ -1704,6 +1932,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getC } } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1714,7 +1944,9 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getC
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ public Builder setCursorRanges( int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { @@ -1731,6 +1963,8 @@ public Builder setCursorRanges( return this; } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1741,10 +1975,14 @@ public Builder setCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ public Builder setCursorRanges( - int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder builderForValue) { + int index, + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder + builderForValue) { if (cursorRangesBuilder_ == null) { ensureCursorRangesIsMutable(); cursorRanges_.set(index, builderForValue.build()); @@ -1755,6 +1993,8 @@ public Builder setCursorRanges( return this; } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1765,9 +2005,12 @@ public Builder setCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - public Builder addCursorRanges(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { + public Builder addCursorRanges( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { if (cursorRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1781,6 +2024,8 @@ public Builder addCursorRanges(com.google.cloud.pubsublite.proto.MessagePublishR return this; } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1791,7 +2036,9 @@ public Builder addCursorRanges(com.google.cloud.pubsublite.proto.MessagePublishR
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ public Builder addCursorRanges( int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { @@ -1808,6 +2055,8 @@ public Builder addCursorRanges( return this; } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1818,10 +2067,13 @@ public Builder addCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ public Builder addCursorRanges( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder builderForValue) { + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder + builderForValue) { if (cursorRangesBuilder_ == null) { ensureCursorRangesIsMutable(); cursorRanges_.add(builderForValue.build()); @@ -1832,6 +2084,8 @@ public Builder addCursorRanges( return this; } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1842,10 +2096,14 @@ public Builder addCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ public Builder addCursorRanges( - int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder builderForValue) { + int index, + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder + builderForValue) { if (cursorRangesBuilder_ == null) { ensureCursorRangesIsMutable(); cursorRanges_.add(index, builderForValue.build()); @@ -1856,6 +2114,8 @@ public Builder addCursorRanges( return this; } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1866,14 +2126,17 @@ public Builder addCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ public Builder addAllCursorRanges( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange> + values) { if (cursorRangesBuilder_ == null) { ensureCursorRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cursorRanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cursorRanges_); onChanged(); } else { cursorRangesBuilder_.addAllMessages(values); @@ -1881,6 +2144,8 @@ public Builder addAllCursorRanges( return this; } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1891,7 +2156,9 @@ public Builder addAllCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ public Builder clearCursorRanges() { if (cursorRangesBuilder_ == null) { @@ -1904,6 +2171,8 @@ public Builder clearCursorRanges() { return this; } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1914,7 +2183,9 @@ public Builder clearCursorRanges() {
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ public Builder removeCursorRanges(int index) { if (cursorRangesBuilder_ == null) { @@ -1927,6 +2198,8 @@ public Builder removeCursorRanges(int index) { return this; } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1937,13 +2210,17 @@ public Builder removeCursorRanges(int index) {
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder getCursorRangesBuilder( - int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder + getCursorRangesBuilder(int index) { return getCursorRangesFieldBuilder().getBuilder(index); } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1954,16 +2231,21 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Buil
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder( - int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder + getCursorRangesOrBuilder(int index) { if (cursorRangesBuilder_ == null) { - return cursorRanges_.get(index); } else { + return cursorRanges_.get(index); + } else { return cursorRangesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1974,10 +2256,13 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBui
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - public java.util.List - getCursorRangesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> + getCursorRangesOrBuilderList() { if (cursorRangesBuilder_ != null) { return cursorRangesBuilder_.getMessageOrBuilderList(); } else { @@ -1985,6 +2270,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBui } } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1995,13 +2282,20 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBui
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder() { - return getCursorRangesFieldBuilder().addBuilder( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance()); + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder + addCursorRangesBuilder() { + return getCursorRangesFieldBuilder() + .addBuilder( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + .getDefaultInstance()); } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2012,14 +2306,21 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Buil
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder( - int index) { - return getCursorRangesFieldBuilder().addBuilder( - index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance()); + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder + addCursorRangesBuilder(int index) { + return getCursorRangesFieldBuilder() + .addBuilder( + index, + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + .getDefaultInstance()); } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2030,29 +2331,35 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Buil
      * These messages will have offsets when received by a subscriber.
      * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - public java.util.List - getCursorRangesBuilderList() { + public java.util.List< + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder> + getCursorRangesBuilderList() { return getCursorRangesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> getCursorRangesFieldBuilder() { if (cursorRangesBuilder_ == null) { - cursorRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>( - cursorRanges_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + cursorRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>( + cursorRanges_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); cursorRanges_ = null; } return cursorRangesBuilder_; } + @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); } @@ -2062,12 +2369,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishResponse) private static final com.google.cloud.pubsublite.proto.MessagePublishResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishResponse(); } @@ -2076,27 +2383,27 @@ public static com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessagePublishResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessagePublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2111,6 +2418,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java index 18832ecf1..ae78ec184 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; -public interface MessagePublishResponseOrBuilder extends +public interface MessagePublishResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return Whether the startCursor field is set. */ boolean hasStartCursor(); /** + * + * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; + * * @return The startCursor. */ com.google.cloud.pubsublite.proto.Cursor getStartCursor(); /** + * + * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
@@ -38,6 +62,8 @@ public interface MessagePublishResponseOrBuilder extends
   com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder();
 
   /**
+   *
+   *
    * 
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -48,11 +74,15 @@ public interface MessagePublishResponseOrBuilder extends
    * These messages will have offsets when received by a subscriber.
    * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - java.util.List + java.util.List getCursorRangesList(); /** + * + * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -63,10 +93,14 @@ public interface MessagePublishResponseOrBuilder extends
    * These messages will have offsets when received by a subscriber.
    * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges(int index); /** + * + * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -77,10 +111,14 @@ public interface MessagePublishResponseOrBuilder extends
    * These messages will have offsets when received by a subscriber.
    * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ int getCursorRangesCount(); /** + * + * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -91,11 +129,16 @@ public interface MessagePublishResponseOrBuilder extends
    * These messages will have offsets when received by a subscriber.
    * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> getCursorRangesOrBuilderList(); /** + * + * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -106,8 +149,10 @@ public interface MessagePublishResponseOrBuilder extends
    * These messages will have offsets when received by a subscriber.
    * 
* - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; + * */ - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder( - int index); + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder + getCursorRangesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java index a4d433726..1b59d4b66 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response containing a list of messages. Upon delivering a MessageResponse to
  * the client, the server:
@@ -15,48 +32,53 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.MessageResponse}
  */
-public final class MessageResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MessageResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessageResponse)
     MessageResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MessageResponse.newBuilder() to construct.
   private MessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MessageResponse() {
     messages_ = 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 MessageResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.MessageResponse.class, com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
+            com.google.cloud.pubsublite.proto.MessageResponse.class,
+            com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
   }
 
   public static final int MESSAGES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List messages_;
   /**
+   *
+   *
    * 
    * Messages from the topic partition.
    * 
@@ -68,6 +90,8 @@ public java.util.List getMes return messages_; } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -75,11 +99,13 @@ public java.util.List getMes * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -91,6 +117,8 @@ public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -102,6 +130,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) return messages_.get(index); } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -115,6 +145,7 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,8 +157,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 < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } @@ -141,8 +171,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -152,15 +181,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.cloud.pubsublite.proto.MessageResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessageResponse other = (com.google.cloud.pubsublite.proto.MessageResponse) obj; + com.google.cloud.pubsublite.proto.MessageResponse other = + (com.google.cloud.pubsublite.proto.MessageResponse) obj; - if (!getMessagesList() - .equals(other.getMessagesList())) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,96 +211,103 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.MessageResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse 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.cloud.pubsublite.proto.MessageResponse 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 containing a list of messages. Upon delivering a MessageResponse to
    * the client, the server:
@@ -283,33 +319,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.MessageResponse}
    */
-  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.cloud.pubsublite.v1.MessageResponse)
       com.google.cloud.pubsublite.proto.MessageResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.MessageResponse.class, com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
+              com.google.cloud.pubsublite.proto.MessageResponse.class,
+              com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.MessageResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -325,9 +360,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
     }
 
     @java.lang.Override
@@ -346,14 +381,18 @@ public com.google.cloud.pubsublite.proto.MessageResponse build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.MessageResponse buildPartial() {
-      com.google.cloud.pubsublite.proto.MessageResponse result = new com.google.cloud.pubsublite.proto.MessageResponse(this);
+      com.google.cloud.pubsublite.proto.MessageResponse result =
+          new com.google.cloud.pubsublite.proto.MessageResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.MessageResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.pubsublite.proto.MessageResponse result) {
       if (messagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           messages_ = java.util.Collections.unmodifiableList(messages_);
@@ -373,38 +412,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessageResponse res
     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.cloud.pubsublite.proto.MessageResponse) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.MessageResponse)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.MessageResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -412,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessageResponse other) {
-      if (other == com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance())
+        return this;
       if (messagesBuilder_ == null) {
         if (!other.messages_.isEmpty()) {
           if (messages_.isEmpty()) {
@@ -431,9 +472,10 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessageResponse 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_);
           }
@@ -465,25 +507,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.pubsublite.proto.SequencedMessage m =
-                  input.readMessage(
-                      com.google.cloud.pubsublite.proto.SequencedMessage.parser(),
-                      extensionRegistry);
-              if (messagesBuilder_ == null) {
-                ensureMessagesIsMutable();
-                messages_.add(m);
-              } else {
-                messagesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.pubsublite.proto.SequencedMessage m =
+                    input.readMessage(
+                        com.google.cloud.pubsublite.proto.SequencedMessage.parser(),
+                        extensionRegistry);
+                if (messagesBuilder_ == null) {
+                  ensureMessagesIsMutable();
+                  messages_.add(m);
+                } else {
+                  messagesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -493,21 +537,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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_);
+        messages_ =
+            new java.util.ArrayList(messages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.SequencedMessage, com.google.cloud.pubsublite.proto.SequencedMessage.Builder, com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> messagesBuilder_;
+            com.google.cloud.pubsublite.proto.SequencedMessage,
+            com.google.cloud.pubsublite.proto.SequencedMessage.Builder,
+            com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder>
+        messagesBuilder_;
 
     /**
+     *
+     *
      * 
      * Messages from the topic partition.
      * 
@@ -522,6 +574,8 @@ public java.util.List getMes } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -536,6 +590,8 @@ public int getMessagesCount() { } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -550,6 +606,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -571,6 +629,8 @@ public Builder setMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -589,6 +649,8 @@ public Builder setMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -609,6 +671,8 @@ public Builder addMessages(com.google.cloud.pubsublite.proto.SequencedMessage va return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -630,6 +694,8 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -648,6 +714,8 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -666,6 +734,8 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -676,8 +746,7 @@ 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); @@ -685,6 +754,8 @@ public Builder addAllMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -702,6 +773,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -719,6 +792,8 @@ public Builder removeMessages(int index) { return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -730,6 +805,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder getMessagesBui return getMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -739,19 +816,22 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder getMessagesBui public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { - return messages_.get(index); } else { + return messages_.get(index); + } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Messages from the topic partition.
      * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -759,6 +839,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -766,10 +848,12 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder().addBuilder( - com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); + return getMessagesFieldBuilder() + .addBuilder(com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -778,37 +862,43 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder addMessagesBui */ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder addMessagesBuilder( int index) { - return getMessagesFieldBuilder().addBuilder( - index, com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); + return getMessagesFieldBuilder() + .addBuilder( + index, com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); } /** + * + * *
      * Messages from the topic partition.
      * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedMessage, com.google.cloud.pubsublite.proto.SequencedMessage.Builder, com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> + com.google.cloud.pubsublite.proto.SequencedMessage, + com.google.cloud.pubsublite.proto.SequencedMessage.Builder, + com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedMessage, com.google.cloud.pubsublite.proto.SequencedMessage.Builder, com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder>( - messages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.SequencedMessage, + com.google.cloud.pubsublite.proto.SequencedMessage.Builder, + com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder>( + 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); } @@ -818,12 +908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessageResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessageResponse) private static final com.google.cloud.pubsublite.proto.MessageResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessageResponse(); } @@ -832,27 +922,27 @@ public static com.google.cloud.pubsublite.proto.MessageResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +957,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.MessageResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java index b1bc909ff..da9f18511 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface MessageResponseOrBuilder extends +public interface MessageResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessageResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Messages from the topic partition.
    * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - java.util.List - getMessagesList(); + java.util.List getMessagesList(); /** + * + * *
    * Messages from the topic partition.
    * 
@@ -25,6 +44,8 @@ public interface MessageResponseOrBuilder extends */ com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index); /** + * + * *
    * Messages from the topic partition.
    * 
@@ -33,21 +54,24 @@ public interface MessageResponseOrBuilder extends */ int getMessagesCount(); /** + * + * *
    * Messages from the topic partition.
    * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** + * + * *
    * Messages from the topic partition.
    * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOrBuilder( - int index); + com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java index b4b477272..6ec82f03e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Metadata for long running operations.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -26,37 +44,41 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.OperationMetadata.class, com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); + com.google.cloud.pubsublite.proto.OperationMetadata.class, + com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -64,11 +86,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -76,6 +101,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -90,12 +117,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -103,12 +133,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -116,6 +149,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
@@ -129,9 +164,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int TARGET_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object target_ = "";
   /**
+   *
+   *
    * 
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -139,6 +177,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -147,14 +186,15 @@ public java.lang.String getTarget() { 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(); target_ = s; return s; } } /** + * + * *
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -162,16 +202,15 @@ public java.lang.String getTarget() {
    * 
* * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object 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); target_ = b; return b; } else { @@ -180,14 +219,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -196,29 +239,29 @@ public java.lang.String getVerb() { 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(); verb_ = s; return s; } } /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; 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); verb_ = b; return b; } else { @@ -227,6 +270,7 @@ public java.lang.String getVerb() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +282,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -262,12 +305,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -283,27 +324,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.cloud.pubsublite.proto.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.OperationMetadata other = (com.google.cloud.pubsublite.proto.OperationMetadata) obj; + com.google.cloud.pubsublite.proto.OperationMetadata other = + (com.google.cloud.pubsublite.proto.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -333,129 +371,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata 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.cloud.pubsublite.proto.OperationMetadata 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; } /** + * + * *
    * Metadata for long running operations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.OperationMetadata} */ - 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.cloud.pubsublite.v1.OperationMetadata) com.google.cloud.pubsublite.proto.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.OperationMetadata.class, com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); + com.google.cloud.pubsublite.proto.OperationMetadata.class, + com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -497,8 +541,11 @@ public com.google.cloud.pubsublite.proto.OperationMetadata build() { @java.lang.Override public com.google.cloud.pubsublite.proto.OperationMetadata buildPartial() { - com.google.cloud.pubsublite.proto.OperationMetadata result = new com.google.cloud.pubsublite.proto.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.OperationMetadata result = + new com.google.cloud.pubsublite.proto.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -506,14 +553,10 @@ public com.google.cloud.pubsublite.proto.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.pubsublite.proto.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -527,38 +570,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.OperationMetadata r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.OperationMetadata) { - return mergeFrom((com.google.cloud.pubsublite.proto.OperationMetadata)other); + return mergeFrom((com.google.cloud.pubsublite.proto.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -566,7 +610,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.OperationMetadata other) { - if (other == com.google.cloud.pubsublite.proto.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -609,36 +654,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,38 +694,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -700,14 +760,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -718,6 +779,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -726,9 +789,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -741,6 +804,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -758,6 +823,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -770,6 +837,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -780,11 +849,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -792,14 +864,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -807,26 +882,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -837,6 +921,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -858,6 +944,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -865,8 +953,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 2;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -877,6 +964,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -886,9 +975,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -901,6 +990,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -919,6 +1010,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -932,6 +1025,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -943,11 +1038,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -956,14 +1052,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_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>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -971,6 +1070,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object target_ = "";
     /**
+     *
+     *
      * 
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -978,13 +1079,13 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object 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(); target_ = s; return s; @@ -993,6 +1094,8 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1000,15 +1103,14 @@ public java.lang.String getTarget() {
      * 
* * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object 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); target_ = b; return b; } else { @@ -1016,6 +1118,8 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1023,18 +1127,22 @@ public java.lang.String getTarget() {
      * 
* * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1042,6 +1150,7 @@ public Builder setTarget(
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1051,6 +1160,8 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1058,12 +1169,14 @@ public Builder clearTarget() {
      * 
* * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1073,18 +1186,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; 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(); verb_ = s; return s; @@ -1093,20 +1208,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; 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); verb_ = b; return b; } else { @@ -1114,28 +1230,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1145,26 +1268,30 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1174,12 +1301,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.OperationMetadata) private static final com.google.cloud.pubsublite.proto.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.OperationMetadata(); } @@ -1188,27 +1315,27 @@ public static com.google.cloud.pubsublite.proto.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1223,6 +1350,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java index 400773e16..c69d56414 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,26 +59,34 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
@@ -65,6 +97,8 @@ public interface OperationMetadataOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -72,10 +106,13 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -83,28 +120,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java index cf9686ada..8aada8e94 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * PartitionAssignments should not race with acknowledgements. There
  * should be exactly one unacknowledged PartitionAssignment at a time. If not,
@@ -12,86 +29,99 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignment}
  */
-public final class PartitionAssignment extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PartitionAssignment extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionAssignment)
     PartitionAssignmentOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PartitionAssignment.newBuilder() to construct.
   private PartitionAssignment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PartitionAssignment() {
     partitions_ = emptyLongList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PartitionAssignment();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.PartitionAssignment.class, com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
+            com.google.cloud.pubsublite.proto.PartitionAssignment.class,
+            com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
   }
 
   public static final int PARTITIONS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.Internal.LongList partitions_;
   /**
+   *
+   *
    * 
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; + * * @return A list containing the partitions. */ @java.lang.Override - public java.util.List - getPartitionsList() { + public java.util.List getPartitionsList() { return partitions_; } /** + * + * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; + * * @return The count of partitions. */ public int getPartitionsCount() { return partitions_.size(); } /** + * + * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; + * * @param index The index of the element to return. * @return The partitions at the given index. */ public long getPartitions(int index) { return partitions_.getLong(index); } + private int partitionsMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getPartitionsList().size() > 0) { output.writeUInt32NoTag(10); @@ -125,14 +154,13 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < partitions_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(partitions_.getLong(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(partitions_.getLong(i)); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } @@ -144,15 +172,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.cloud.pubsublite.proto.PartitionAssignment)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PartitionAssignment other = (com.google.cloud.pubsublite.proto.PartitionAssignment) obj; + com.google.cloud.pubsublite.proto.PartitionAssignment other = + (com.google.cloud.pubsublite.proto.PartitionAssignment) obj; - if (!getPartitionsList() - .equals(other.getPartitionsList())) return false; + if (!getPartitionsList().equals(other.getPartitionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -174,96 +202,104 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PartitionAssignment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment 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.cloud.pubsublite.proto.PartitionAssignment prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.PartitionAssignment 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; } /** + * + * *
    * PartitionAssignments should not race with acknowledgements. There
    * should be exactly one unacknowledged PartitionAssignment at a time. If not,
@@ -272,33 +308,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignment}
    */
-  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.cloud.pubsublite.v1.PartitionAssignment)
       com.google.cloud.pubsublite.proto.PartitionAssignmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.PartitionAssignment.class, com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
+              com.google.cloud.pubsublite.proto.PartitionAssignment.class,
+              com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.PartitionAssignment.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -308,9 +343,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
     }
 
     @java.lang.Override
@@ -329,14 +364,18 @@ public com.google.cloud.pubsublite.proto.PartitionAssignment build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.PartitionAssignment buildPartial() {
-      com.google.cloud.pubsublite.proto.PartitionAssignment result = new com.google.cloud.pubsublite.proto.PartitionAssignment(this);
+      com.google.cloud.pubsublite.proto.PartitionAssignment result =
+          new com.google.cloud.pubsublite.proto.PartitionAssignment(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.PartitionAssignment result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.pubsublite.proto.PartitionAssignment result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         partitions_.makeImmutable();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -352,38 +391,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionAssignment
     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.cloud.pubsublite.proto.PartitionAssignment) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignment)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignment) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -391,7 +431,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionAssignment other) {
-      if (other == com.google.cloud.pubsublite.proto.PartitionAssignment.getDefaultInstance()) return this;
+      if (other == com.google.cloud.pubsublite.proto.PartitionAssignment.getDefaultInstance())
+        return this;
       if (!other.partitions_.isEmpty()) {
         if (partitions_.isEmpty()) {
           partitions_ = other.partitions_;
@@ -428,28 +469,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              long v = input.readInt64();
-              ensurePartitionsIsMutable();
-              partitions_.addLong(v);
-              break;
-            } // case 8
-            case 10: {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              ensurePartitionsIsMutable();
-              while (input.getBytesUntilLimit() > 0) {
-                partitions_.addLong(input.readInt64());
-              }
-              input.popLimit(limit);
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                long v = input.readInt64();
+                ensurePartitionsIsMutable();
+                partitions_.addLong(v);
+                break;
+              } // case 8
+            case 10:
+              {
+                int length = input.readRawVarint32();
+                int limit = input.pushLimit(length);
+                ensurePartitionsIsMutable();
+                while (input.getBytesUntilLimit() > 0) {
+                  partitions_.addLong(input.readInt64());
+                }
+                input.popLimit(limit);
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -459,9 +503,11 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Internal.LongList partitions_ = emptyLongList();
+
     private void ensurePartitionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         partitions_ = mutableCopy(partitions_);
@@ -469,35 +515,44 @@ private void ensurePartitionsIsMutable() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; + * * @return A list containing the partitions. */ - public java.util.List - getPartitionsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(partitions_) : partitions_; + public java.util.List getPartitionsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(partitions_) + : partitions_; } /** + * + * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; + * * @return The count of partitions. */ public int getPartitionsCount() { return partitions_.size(); } /** + * + * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; + * * @param index The index of the element to return. * @return The partitions at the given index. */ @@ -505,62 +560,71 @@ public long getPartitions(int index) { return partitions_.getLong(index); } /** + * + * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; + * * @param index The index to set the value at. * @param value The partitions to set. * @return This builder for chaining. */ - public Builder setPartitions( - int index, long value) { - + public Builder setPartitions(int index, long value) { + ensurePartitionsIsMutable(); partitions_.setLong(index, value); onChanged(); return this; } /** + * + * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; + * * @param value The partitions to add. * @return This builder for chaining. */ public Builder addPartitions(long value) { - + ensurePartitionsIsMutable(); partitions_.addLong(value); onChanged(); return this; } /** + * + * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; + * * @param values The partitions to add. * @return This builder for chaining. */ - public Builder addAllPartitions( - java.lang.Iterable values) { + public Builder addAllPartitions(java.lang.Iterable values) { ensurePartitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitions_); onChanged(); return this; } /** + * + * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; + * * @return This builder for chaining. */ public Builder clearPartitions() { @@ -569,9 +633,9 @@ public Builder clearPartitions() { 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); } @@ -581,12 +645,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionAssignment) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionAssignment) private static final com.google.cloud.pubsublite.proto.PartitionAssignment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionAssignment(); } @@ -595,27 +659,27 @@ public static com.google.cloud.pubsublite.proto.PartitionAssignment getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionAssignment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionAssignment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +694,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PartitionAssignment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java index 0e3a5afe6..467f1bb76 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Acknowledge receipt and handling of the previous assignment.
  * If not sent within a short period after receiving the assignment,
@@ -14,44 +31,46 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentAck}
  */
-public final class PartitionAssignmentAck extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PartitionAssignmentAck extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionAssignmentAck)
     PartitionAssignmentAckOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PartitionAssignmentAck.newBuilder() to construct.
   private PartitionAssignmentAck(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private PartitionAssignmentAck() {
-  }
+
+  private PartitionAssignmentAck() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PartitionAssignmentAck();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
+            com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class,
+            com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -63,8 +82,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -82,12 +100,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.cloud.pubsublite.proto.PartitionAssignmentAck)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.PartitionAssignmentAck other = (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) obj;
+    com.google.cloud.pubsublite.proto.PartitionAssignmentAck other =
+        (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -106,96 +125,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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;
   }
   /**
+   *
+   *
    * 
    * Acknowledge receipt and handling of the previous assignment.
    * If not sent within a short period after receiving the assignment,
@@ -206,33 +233,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentAck}
    */
-  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.cloud.pubsublite.v1.PartitionAssignmentAck)
       com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
+              com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class,
+              com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.PartitionAssignmentAck.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -240,9 +266,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
     }
 
     @java.lang.Override
@@ -261,7 +287,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.PartitionAssignmentAck buildPartial() {
-      com.google.cloud.pubsublite.proto.PartitionAssignmentAck result = new com.google.cloud.pubsublite.proto.PartitionAssignmentAck(this);
+      com.google.cloud.pubsublite.proto.PartitionAssignmentAck result =
+          new com.google.cloud.pubsublite.proto.PartitionAssignmentAck(this);
       onBuilt();
       return result;
     }
@@ -270,38 +297,39 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck 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.cloud.pubsublite.proto.PartitionAssignmentAck) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentAck)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentAck) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -309,7 +337,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionAssignmentAck other) {
-      if (other == com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance()) return this;
+      if (other == com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -336,12 +365,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -351,9 +381,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -363,12 +393,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionAssignmentAck)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionAssignmentAck)
   private static final com.google.cloud.pubsublite.proto.PartitionAssignmentAck DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionAssignmentAck();
   }
@@ -377,27 +407,27 @@ public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public PartitionAssignmentAck parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public PartitionAssignmentAck parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -412,6 +442,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java
new file mode 100644
index 000000000..344ea2880
--- /dev/null
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.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/cloud/pubsublite/v1/subscriber.proto
+
+package com.google.cloud.pubsublite.proto;
+
+public interface PartitionAssignmentAckOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignmentAck)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
similarity index 60%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
index 3ebbd99e3..40c55e7a7 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
@@ -1,36 +1,61 @@
+/*
+ * 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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface PartitionAssignmentOrBuilder extends
+public interface PartitionAssignmentOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignment)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; + * * @return A list containing the partitions. */ java.util.List getPartitionsList(); /** + * + * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; + * * @return The count of partitions. */ int getPartitionsCount(); /** + * + * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; + * * @param index The index of the element to return. * @return The partitions at the given index. */ diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java index 238b1d759..47bd3e038 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java @@ -1,61 +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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * A request on the PartitionAssignment stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentRequest} */ -public final class PartitionAssignmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PartitionAssignmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionAssignmentRequest) PartitionAssignmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PartitionAssignmentRequest.newBuilder() to construct. private PartitionAssignmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PartitionAssignmentRequest() { - } + + private PartitionAssignmentRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PartitionAssignmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; + public enum RequestCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), ACK(2), REQUEST_NOT_SET(0); private final int value; + private RequestCase(int value) { this.value = value; } @@ -71,30 +92,36 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: return INITIAL; - case 2: return ACK; - case 0: return REQUEST_NOT_SET; - default: return null; + case 1: + return INITIAL; + case 2: + return ACK; + case 0: + return REQUEST_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -102,21 +129,26 @@ public boolean hasInitial() { return requestCase_ == 1; } /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; + * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } /** + * + * *
    * Initial request on the stream.
    * 
@@ -124,20 +156,24 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getIn * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder + getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } public static final int ACK_FIELD_NUMBER = 2; /** + * + * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; + * * @return Whether the ack field is set. */ @java.lang.Override @@ -145,21 +181,26 @@ public boolean hasAck() { return requestCase_ == 2; } /** + * + * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; + * * @return The ack. */ @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; + return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; } return com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance(); } /** + * + * *
    * Acknowledgement of a partition assignment.
    * 
@@ -169,12 +210,13 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; + return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; } return com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,10 +228,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 { if (requestCase_ == 1) { - output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); + output.writeMessage( + 1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); } if (requestCase_ == 2) { output.writeMessage(2, (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_); @@ -204,12 +246,14 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); } if (requestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,22 +263,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.cloud.pubsublite.proto.PartitionAssignmentRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest other = (com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) obj; + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest other = + (com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial() - .equals(other.getInitial())) return false; + if (!getInitial().equals(other.getInitial())) return false; break; case 2: - if (!getAck() - .equals(other.getAck())) return false; + if (!getAck().equals(other.getAck())) return false; break; case 0: default: @@ -268,129 +311,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest 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.cloud.pubsublite.proto.PartitionAssignmentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest 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 request on the PartitionAssignment stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentRequest} */ - 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.cloud.pubsublite.v1.PartitionAssignmentRequest) com.google.cloud.pubsublite.proto.PartitionAssignmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -407,13 +457,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance(); } @@ -428,26 +479,29 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest buildPartial() { - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result = new com.google.cloud.pubsublite.proto.PartitionAssignmentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result = + new com.google.cloud.pubsublite.proto.PartitionAssignmentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { + private void buildPartialOneofs( + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && - initialBuilder_ != null) { + if (requestCase_ == 1 && initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && - ackBuilder_ != null) { + if (requestCase_ == 2 && ackBuilder_ != null) { result.request_ = ackBuilder_.build(); } } @@ -456,38 +510,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PartitionAssig 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.cloud.pubsublite.proto.PartitionAssignmentRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) other); } else { super.mergeFrom(other); return this; @@ -495,19 +550,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest other) { - if (other == com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance()) + return this; switch (other.getRequestCase()) { - case INITIAL: { - mergeInitial(other.getInitial()); - break; - } - case ACK: { - mergeAck(other.getAck()); - break; - } - case REQUEST_NOT_SET: { - break; - } + case INITIAL: + { + mergeInitial(other.getInitial()); + break; + } + case ACK: + { + mergeAck(other.getAck()); + break; + } + case REQUEST_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -535,26 +595,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getInitialFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getAckFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getAckFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,12 +623,12 @@ public Builder mergeFrom( } // finally return this; } + private int requestCase_ = 0; private java.lang.Object request_; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public Builder clearRequest() { @@ -582,13 +641,19 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> initialBuilder_; + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> + initialBuilder_; /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -596,11 +661,14 @@ public boolean hasInitial() { return requestCase_ == 1; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; + * * @return The initial. */ @java.lang.Override @@ -609,22 +677,27 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getIn if (requestCase_ == 1) { return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } - return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); + return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + .getDefaultInstance(); } else { if (requestCase_ == 1) { return initialBuilder_.getMessage(); } - return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); + return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + .getDefaultInstance(); } } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - public Builder setInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { + public Builder setInitial( + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { if (initialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,6 +711,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssi return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -645,7 +720,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssi * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ public Builder setInitial( - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder builderForValue) { + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder + builderForValue) { if (initialBuilder_ == null) { request_ = builderForValue.build(); onChanged(); @@ -656,18 +732,27 @@ public Builder setInitial( return this; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { + public Builder mergeInitial( + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 && - request_ != com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance()) { - request_ = com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 1 + && request_ + != com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + .getDefaultInstance()) { + request_ = + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder( + (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) + request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -683,6 +768,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialPartitionAs return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -706,16 +793,21 @@ public Builder clearInitial() { return this; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder getInitialBuilder() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder + getInitialBuilder() { return getInitialFieldBuilder().getBuilder(); } /** + * + * *
      * Initial request on the stream.
      * 
@@ -723,17 +815,21 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Build * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder + getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } - return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); + return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + .getDefaultInstance(); } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -741,14 +837,21 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuil * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { - request_ = com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); + request_ = + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + .getDefaultInstance(); } - initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder>( + initialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_, getParentForChildren(), isClean()); @@ -760,13 +863,19 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuil } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionAssignmentAck, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> ackBuilder_; + com.google.cloud.pubsublite.proto.PartitionAssignmentAck, + com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, + com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> + ackBuilder_; /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; + * * @return Whether the ack field is set. */ @java.lang.Override @@ -774,11 +883,14 @@ public boolean hasAck() { return requestCase_ == 2; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; + * * @return The ack. */ @java.lang.Override @@ -796,6 +908,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { } } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -816,6 +930,8 @@ public Builder setAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck v return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -834,6 +950,8 @@ public Builder setAck( return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -842,10 +960,14 @@ public Builder setAck( */ public Builder mergeAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck value) { if (ackBuilder_ == null) { - if (requestCase_ == 2 && - request_ != com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance()) { - request_ = com.google.cloud.pubsublite.proto.PartitionAssignmentAck.newBuilder((com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 2 + && request_ + != com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance()) { + request_ = + com.google.cloud.pubsublite.proto.PartitionAssignmentAck.newBuilder( + (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -861,6 +983,8 @@ public Builder mergeAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -884,6 +1008,8 @@ public Builder clearAck() { return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -894,6 +1020,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder getAckBu return getAckFieldBuilder().getBuilder(); } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -912,6 +1040,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO } } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -919,14 +1049,19 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionAssignmentAck, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> + com.google.cloud.pubsublite.proto.PartitionAssignmentAck, + com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, + com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> getAckFieldBuilder() { if (ackBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance(); } - ackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionAssignmentAck, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder>( + ackBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.PartitionAssignmentAck, + com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, + com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder>( (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_, getParentForChildren(), isClean()); @@ -936,9 +1071,9 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO onChanged(); return ackBuilder_; } + @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); } @@ -948,12 +1083,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionAssignmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionAssignmentRequest) - private static final com.google.cloud.pubsublite.proto.PartitionAssignmentRequest DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.PartitionAssignmentRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionAssignmentRequest(); } @@ -962,27 +1098,27 @@ public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionAssignmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionAssignmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,6 +1133,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java index d81b32af9..4f194c180 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java @@ -1,58 +1,91 @@ +/* + * 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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface PartitionAssignmentRequestOrBuilder extends +public interface PartitionAssignmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; + * * @return Whether the initial field is set. */ boolean hasInitial(); /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; + * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getInitial(); /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder(); + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder + getInitialOrBuilder(); /** + * + * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; + * * @return Whether the ack field is set. */ boolean hasAck(); /** + * + * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; + * * @return The ack. */ com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck(); /** + * + * *
    * Acknowledgement of a partition assignment.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java index ae3168fef..2f7bbc43b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java @@ -1,60 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * A pair of a Cursor and the partition it is for.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionCursor} */ -public final class PartitionCursor extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PartitionCursor extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionCursor) PartitionCursorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PartitionCursor.newBuilder() to construct. private PartitionCursor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PartitionCursor() { - } + + private PartitionCursor() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PartitionCursor(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionCursor.class, com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); + com.google.cloud.pubsublite.proto.PartitionCursor.class, + com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); } public static final int PARTITION_FIELD_NUMBER = 1; private long partition_ = 0L; /** + * + * *
    * The partition this is for.
    * 
* * int64 partition = 1; + * * @return The partition. */ @java.lang.Override @@ -65,11 +86,14 @@ public long getPartition() { public static final int CURSOR_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** + * + * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -77,18 +101,25 @@ public boolean hasCursor() { return cursor_ != null; } /** + * + * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } /** + * + * *
    * The value of the cursor.
    * 
@@ -97,10 +128,13 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +146,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 (partition_ != 0L) { output.writeInt64(1, partition_); } @@ -130,12 +163,10 @@ public int getSerializedSize() { size = 0; if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, partition_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, partition_); } if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -145,19 +176,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.cloud.pubsublite.proto.PartitionCursor)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PartitionCursor other = (com.google.cloud.pubsublite.proto.PartitionCursor) obj; + com.google.cloud.pubsublite.proto.PartitionCursor other = + (com.google.cloud.pubsublite.proto.PartitionCursor) obj; - if (getPartition() - != other.getPartition()) return false; + if (getPartition() != other.getPartition()) return false; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor() - .equals(other.getCursor())) return false; + if (!getCursor().equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -171,8 +201,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); @@ -183,129 +212,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PartitionCursor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor 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.cloud.pubsublite.proto.PartitionCursor 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 pair of a Cursor and the partition it is for.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionCursor} */ - 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.cloud.pubsublite.v1.PartitionCursor) com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionCursor.class, com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); + com.google.cloud.pubsublite.proto.PartitionCursor.class, + com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PartitionCursor.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; } @java.lang.Override @@ -341,8 +376,11 @@ public com.google.cloud.pubsublite.proto.PartitionCursor build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionCursor buildPartial() { - com.google.cloud.pubsublite.proto.PartitionCursor result = new com.google.cloud.pubsublite.proto.PartitionCursor(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.PartitionCursor result = + new com.google.cloud.pubsublite.proto.PartitionCursor(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -353,9 +391,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionCursor res result.partition_ = partition_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); } } @@ -363,38 +399,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionCursor res 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.cloud.pubsublite.proto.PartitionCursor) { - return mergeFrom((com.google.cloud.pubsublite.proto.PartitionCursor)other); + return mergeFrom((com.google.cloud.pubsublite.proto.PartitionCursor) other); } else { super.mergeFrom(other); return this; @@ -402,7 +439,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionCursor other) { - if (other == com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()) + return this; if (other.getPartition() != 0L) { setPartition(other.getPartition()); } @@ -435,24 +473,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - partition_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + partition_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,15 +501,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long partition_ ; + private long partition_; /** + * + * *
      * The partition this is for.
      * 
* * int64 partition = 1; + * * @return The partition. */ @java.lang.Override @@ -478,27 +521,33 @@ public long getPartition() { return partition_; } /** + * + * *
      * The partition this is for.
      * 
* * int64 partition = 1; + * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(long value) { - + partition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The partition this is for.
      * 
* * int64 partition = 1; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -510,34 +559,47 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + cursorBuilder_; /** + * + * *
      * The value of the cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The value of the cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } else { return cursorBuilder_.getMessage(); } } /** + * + * *
      * The value of the cursor.
      * 
@@ -558,14 +620,15 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The value of the cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; */ - public Builder setCursor( - com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -576,6 +639,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The value of the cursor.
      * 
@@ -584,9 +649,9 @@ public Builder setCursor( */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - cursor_ != null && - cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && cursor_ != null + && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -599,6 +664,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The value of the cursor.
      * 
@@ -616,6 +683,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The value of the cursor.
      * 
@@ -628,6 +697,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The value of the cursor.
      * 
@@ -638,11 +709,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null ? - com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } } /** + * + * *
      * The value of the cursor.
      * 
@@ -650,21 +724,24 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), - getParentForChildren(), - isClean()); + cursorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), getParentForChildren(), isClean()); cursor_ = null; } return cursorBuilder_; } + @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); } @@ -674,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionCursor) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionCursor) private static final com.google.cloud.pubsublite.proto.PartitionCursor DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionCursor(); } @@ -688,27 +765,27 @@ public static com.google.cloud.pubsublite.proto.PartitionCursor getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionCursor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionCursor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,6 +800,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PartitionCursor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java index 7213fc7be..83c779f5e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java @@ -1,41 +1,68 @@ +/* + * 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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface PartitionCursorOrBuilder extends +public interface PartitionCursorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionCursor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The partition this is for.
    * 
* * int64 partition = 1; + * * @return The partition. */ long getPartition(); /** + * + * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** + * + * *
    * The value of the cursor.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java index c38f9429a..8ab6fb75a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * A message that is published by publishers and delivered to subscribers.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { key_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; @@ -26,44 +44,46 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_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 3: 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.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PubSubMessage.class, com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); + com.google.cloud.pubsublite.proto.PubSubMessage.class, + com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * The key used for routing messages to partitions or for compaction (e.g.,
    * keep the last N messages per key). If the key is empty, the message is
@@ -71,6 +91,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * bytes key = 1; + * * @return The key. */ @java.lang.Override @@ -81,11 +102,14 @@ public com.google.protobuf.ByteString getKey() { public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * The payload of the message.
    * 
* * bytes data = 2; + * * @return The data. */ @java.lang.Override @@ -94,32 +118,42 @@ public com.google.protobuf.ByteString getData() { } public static final int ATTRIBUTES_FIELD_NUMBER = 3; + private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> defaultEntry = + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> attributes_; - private com.google.protobuf.MapField - internalGetAttributes() { + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> + attributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> + internalGetAttributes() { if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttributesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } + public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -127,20 +161,22 @@ public int getAttributesCount() { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @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() { + public java.util.Map + getAttributes() { return getAttributesMap(); } /** + * + * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -148,10 +184,13 @@ public java.util.Mapmap<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public java.util.Map getAttributesMap() { + public java.util.Map + getAttributesMap() { return internalGetAttributes().getMap(); } /** + * + * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -159,17 +198,20 @@ public java.util.Mapmap<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public /* nullable */ -com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( + public /* nullable */ com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -179,7 +221,9 @@ com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( @java.lang.Override public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -191,11 +235,14 @@ public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( public static final int EVENT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp eventTime_; /** + * + * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -203,11 +250,14 @@ public boolean hasEventTime() { return eventTime_ != null; } /** + * + * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; + * * @return The eventTime. */ @java.lang.Override @@ -215,6 +265,8 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
    * An optional, user-specified event time.
    * 
@@ -227,6 +279,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,20 +291,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 (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAttributes(), - AttributesDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 3); if (eventTime_ != null) { output.writeMessage(4, getEventTime()); } @@ -265,26 +313,25 @@ public int getSerializedSize() { size = 0; if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); } if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, 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(3, attributes__); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); + } + for (java.util.Map.Entry + entry : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> + attributes__ = + AttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, attributes__); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEventTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -294,23 +341,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.cloud.pubsublite.proto.PubSubMessage)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PubSubMessage other = (com.google.cloud.pubsublite.proto.PubSubMessage) obj; + com.google.cloud.pubsublite.proto.PubSubMessage other = + (com.google.cloud.pubsublite.proto.PubSubMessage) obj; - if (!getKey() - .equals(other.getKey())) return false; - if (!getData() - .equals(other.getData())) return false; - if (!internalGetAttributes().equals( - other.internalGetAttributes())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getData().equals(other.getData())) return false; + if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime() - .equals(other.getEventTime())) return false; + if (!getEventTime().equals(other.getEventTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -340,152 +384,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PubSubMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PubSubMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PubSubMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PubSubMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 delivered to subscribers.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.PubSubMessage) com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: 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 3: 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.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PubSubMessage.class, com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); + com.google.cloud.pubsublite.proto.PubSubMessage.class, + com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PubSubMessage.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +550,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; } @java.lang.Override @@ -523,8 +571,11 @@ public com.google.cloud.pubsublite.proto.PubSubMessage build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PubSubMessage buildPartial() { - com.google.cloud.pubsublite.proto.PubSubMessage result = new com.google.cloud.pubsublite.proto.PubSubMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.PubSubMessage result = + new com.google.cloud.pubsublite.proto.PubSubMessage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -542,9 +593,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PubSubMessage resul result.attributes_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.eventTime_ = eventTimeBuilder_ == null - ? eventTime_ - : eventTimeBuilder_.build(); + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); } } @@ -552,38 +601,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PubSubMessage resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.PubSubMessage) { - return mergeFrom((com.google.cloud.pubsublite.proto.PubSubMessage)other); + return mergeFrom((com.google.cloud.pubsublite.proto.PubSubMessage) other); } else { super.mergeFrom(other); return this; @@ -591,15 +641,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PubSubMessage other) { - if (other == com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) + return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } - internalGetMutableAttributes().mergeFrom( - other.internalGetAttributes()); + internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); bitField0_ |= 0x00000004; if (other.hasEventTime()) { mergeEventTime(other.getEventTime()); @@ -630,38 +680,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - key_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - data_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - attributes__ = input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAttributes().getMutableMap().put( - attributes__.getKey(), attributes__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getEventTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + key_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + data_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> + attributes__ = + input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAttributes() + .getMutableMap() + .put(attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -671,10 +728,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The key used for routing messages to partitions or for compaction (e.g.,
      * keep the last N messages per key). If the key is empty, the message is
@@ -682,6 +742,7 @@ public Builder mergeFrom(
      * 
* * bytes key = 1; + * * @return The key. */ @java.lang.Override @@ -689,6 +750,8 @@ public com.google.protobuf.ByteString getKey() { return key_; } /** + * + * *
      * The key used for routing messages to partitions or for compaction (e.g.,
      * keep the last N messages per key). If the key is empty, the message is
@@ -696,17 +759,22 @@ public com.google.protobuf.ByteString getKey() {
      * 
* * bytes key = 1; + * * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The key used for routing messages to partitions or for compaction (e.g.,
      * keep the last N messages per key). If the key is empty, the message is
@@ -714,6 +782,7 @@ public Builder setKey(com.google.protobuf.ByteString value) {
      * 
* * bytes key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { @@ -725,11 +794,14 @@ public Builder clearKey() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The payload of the message.
      * 
* * bytes data = 2; + * * @return The data. */ @java.lang.Override @@ -737,27 +809,35 @@ public com.google.protobuf.ByteString getData() { return data_; } /** + * + * *
      * The payload of the message.
      * 
* * bytes data = 2; + * * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } data_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The payload of the message.
      * 
* * bytes data = 2; + * * @return This builder for chaining. */ public Builder clearData() { @@ -768,8 +848,11 @@ public Builder clearData() { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> attributes_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> + attributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -777,11 +860,13 @@ public Builder clearData() { } return attributes_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> internalGetMutableAttributes() { if (attributes_ == null) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); + attributes_ = + com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); @@ -790,10 +875,13 @@ public Builder clearData() { onChanged(); return attributes_; } + public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -801,20 +889,22 @@ public int getAttributesCount() { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @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() { + public java.util.Map + getAttributes() { return getAttributesMap(); } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -822,10 +912,13 @@ public java.util.Mapmap<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public java.util.Map getAttributesMap() { + public java.util.Map + getAttributesMap() { return internalGetAttributes().getMap(); } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -833,17 +926,20 @@ public java.util.Mapmap<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public /* nullable */ -com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( + public /* nullable */ com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -853,7 +949,9 @@ com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( @java.lang.Override public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -861,29 +959,29 @@ public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( } return map.get(key); } + public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableAttributes().getMutableMap() - .clear(); + internalGetMutableAttributes().getMutableMap().clear(); return this; } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
* * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ - 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() { @@ -891,6 +989,8 @@ public Builder removeAttributes( return internalGetMutableAttributes().getMutableMap(); } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -898,16 +998,20 @@ public Builder removeAttributes( * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ public Builder putAttributes( - java.lang.String key, - com.google.cloud.pubsublite.proto.AttributeValues value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAttributes().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.pubsublite.proto.AttributeValues value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAttributes().getMutableMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -916,32 +1020,40 @@ public Builder putAttributes( */ public Builder putAllAttributes( java.util.Map values) { - internalGetMutableAttributes().getMutableMap() - .putAll(values); + internalGetMutableAttributes().getMutableMap().putAll(values); bitField0_ |= 0x00000004; return this; } private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; /** + * + * *
      * An optional, user-specified event time.
      * 
* * .google.protobuf.Timestamp event_time = 4; + * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * An optional, user-specified event time.
      * 
* * .google.protobuf.Timestamp event_time = 4; + * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -952,6 +1064,8 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -972,14 +1086,15 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
* * .google.protobuf.Timestamp event_time = 4; */ - public Builder setEventTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); } else { @@ -990,6 +1105,8 @@ public Builder setEventTime( return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -998,9 +1115,9 @@ public Builder setEventTime( */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - eventTime_ != null && - eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEventTimeBuilder().mergeFrom(value); } else { eventTime_ = value; @@ -1013,6 +1130,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1030,6 +1149,8 @@ public Builder clearEventTime() { return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1042,6 +1163,8 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1052,11 +1175,12 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { - return eventTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1064,21 +1188,24 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * .google.protobuf.Timestamp event_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> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { - eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEventTime(), - getParentForChildren(), - isClean()); + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); eventTime_ = null; } return eventTimeBuilder_; } + @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); } @@ -1088,12 +1215,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PubSubMessage) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PubSubMessage) private static final com.google.cloud.pubsublite.proto.PubSubMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PubSubMessage(); } @@ -1102,27 +1229,27 @@ public static com.google.cloud.pubsublite.proto.PubSubMessage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSubMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSubMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1137,6 +1264,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PubSubMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java index 598a12c21..266fcac17 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface PubSubMessageOrBuilder extends +public interface PubSubMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PubSubMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The key used for routing messages to partitions or for compaction (e.g.,
    * keep the last N messages per key). If the key is empty, the message is
@@ -15,21 +33,27 @@ public interface PubSubMessageOrBuilder extends
    * 
* * bytes key = 1; + * * @return The key. */ com.google.protobuf.ByteString getKey(); /** + * + * *
    * The payload of the message.
    * 
* * bytes data = 2; + * * @return The data. */ com.google.protobuf.ByteString getData(); /** + * + * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -38,21 +62,22 @@ public interface PubSubMessageOrBuilder extends */ int getAttributesCount(); /** + * + * *
    * Optional attributes that can be used for message metadata/headers.
    * 
* * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ - 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(); + getAttributes(); /** + * + * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -60,8 +85,10 @@ boolean containsAttributes( * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ java.util.Map - getAttributesMap(); + getAttributesMap(); /** + * + * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -69,39 +96,48 @@ boolean containsAttributes( * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ /* nullable */ -com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( + com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.pubsublite.proto.AttributeValues defaultValue); + com.google.cloud.pubsublite.proto.AttributeValues defaultValue); /** + * + * *
    * Optional attributes that can be used for message metadata/headers.
    * 
* * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ - com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( - java.lang.String key); + com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow(java.lang.String key); /** + * + * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; + * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** + * + * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; + * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** + * + * *
    * An optional, user-specified event time.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java index 279079608..d39b63535 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java @@ -1,61 +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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request sent from the client to the server on a stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { - } + + 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishRequest.class, com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.PublishRequest.class, + com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); } private int requestTypeCase_ = 0; private java.lang.Object requestType_; + public enum RequestTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL_REQUEST(1), MESSAGE_PUBLISH_REQUEST(2), REQUESTTYPE_NOT_SET(0); private final int value; + private RequestTypeCase(int value) { this.value = value; } @@ -71,30 +92,36 @@ public static RequestTypeCase valueOf(int value) { public static RequestTypeCase forNumber(int value) { switch (value) { - case 1: return INITIAL_REQUEST; - case 2: return MESSAGE_PUBLISH_REQUEST; - case 0: return REQUESTTYPE_NOT_SET; - default: return null; + case 1: + return INITIAL_REQUEST; + case 2: + return MESSAGE_PUBLISH_REQUEST; + case 0: + return REQUESTTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestTypeCase - getRequestTypeCase() { - return RequestTypeCase.forNumber( - requestTypeCase_); + public RequestTypeCase getRequestTypeCase() { + return RequestTypeCase.forNumber(requestTypeCase_); } public static final int INITIAL_REQUEST_FIELD_NUMBER = 1; /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; + * * @return Whether the initialRequest field is set. */ @java.lang.Override @@ -102,21 +129,26 @@ public boolean hasInitialRequest() { return requestTypeCase_ == 1; } /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; + * * @return The initialRequest. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest() { if (requestTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); } /** + * + * *
    * Initial request on the stream.
    * 
@@ -124,20 +156,24 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getInitialRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder + getInitialRequestOrBuilder() { if (requestTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); } public static final int MESSAGE_PUBLISH_REQUEST_FIELD_NUMBER = 2; /** + * + * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; + * * @return Whether the messagePublishRequest field is set. */ @java.lang.Override @@ -145,21 +181,26 @@ public boolean hasMessagePublishRequest() { return requestTypeCase_ == 2; } /** + * + * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; + * * @return The messagePublishRequest. */ @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublishRequest() { if (requestTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); } /** + * + * *
    * Request to publish messages.
    * 
@@ -167,14 +208,16 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublish * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder + getMessagePublishRequestOrBuilder() { if (requestTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,13 +229,14 @@ 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 (requestTypeCase_ == 1) { - output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); + output.writeMessage( + 1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); } if (requestTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); + output.writeMessage( + 2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); } getUnknownFields().writeTo(output); } @@ -204,12 +248,14 @@ public int getSerializedSize() { size = 0; if (requestTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); } if (requestTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,22 +265,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.cloud.pubsublite.proto.PublishRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PublishRequest other = (com.google.cloud.pubsublite.proto.PublishRequest) obj; + com.google.cloud.pubsublite.proto.PublishRequest other = + (com.google.cloud.pubsublite.proto.PublishRequest) obj; if (!getRequestTypeCase().equals(other.getRequestTypeCase())) return false; switch (requestTypeCase_) { case 1: - if (!getInitialRequest() - .equals(other.getInitialRequest())) return false; + if (!getInitialRequest().equals(other.getInitialRequest())) return false; break; case 2: - if (!getMessagePublishRequest() - .equals(other.getMessagePublishRequest())) return false; + if (!getMessagePublishRequest().equals(other.getMessagePublishRequest())) return false; break; case 0: default: @@ -267,130 +312,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PublishRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 sent from the client to the server on a stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.PublishRequest) com.google.cloud.pubsublite.proto.PublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishRequest.class, com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.PublishRequest.class, + com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PublishRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; } @java.lang.Override @@ -428,8 +479,11 @@ public com.google.cloud.pubsublite.proto.PublishRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PublishRequest buildPartial() { - com.google.cloud.pubsublite.proto.PublishRequest result = new com.google.cloud.pubsublite.proto.PublishRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.PublishRequest result = + new com.google.cloud.pubsublite.proto.PublishRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -442,12 +496,10 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PublishRequest resu private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishRequest result) { result.requestTypeCase_ = requestTypeCase_; result.requestType_ = this.requestType_; - if (requestTypeCase_ == 1 && - initialRequestBuilder_ != null) { + if (requestTypeCase_ == 1 && initialRequestBuilder_ != null) { result.requestType_ = initialRequestBuilder_.build(); } - if (requestTypeCase_ == 2 && - messagePublishRequestBuilder_ != null) { + if (requestTypeCase_ == 2 && messagePublishRequestBuilder_ != null) { result.requestType_ = messagePublishRequestBuilder_.build(); } } @@ -456,38 +508,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishRequest 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.cloud.pubsublite.proto.PublishRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.PublishRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.PublishRequest) other); } else { super.mergeFrom(other); return this; @@ -495,19 +548,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PublishRequest other) { - if (other == com.google.cloud.pubsublite.proto.PublishRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.PublishRequest.getDefaultInstance()) + return this; switch (other.getRequestTypeCase()) { - case INITIAL_REQUEST: { - mergeInitialRequest(other.getInitialRequest()); - break; - } - case MESSAGE_PUBLISH_REQUEST: { - mergeMessagePublishRequest(other.getMessagePublishRequest()); - break; - } - case REQUESTTYPE_NOT_SET: { - break; - } + case INITIAL_REQUEST: + { + mergeInitialRequest(other.getInitialRequest()); + break; + } + case MESSAGE_PUBLISH_REQUEST: + { + mergeMessagePublishRequest(other.getMessagePublishRequest()); + break; + } + case REQUESTTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -535,26 +592,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getInitialRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestTypeCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getMessagePublishRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestTypeCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getInitialRequestFieldBuilder().getBuilder(), extensionRegistry); + requestTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getMessagePublishRequestFieldBuilder().getBuilder(), extensionRegistry); + requestTypeCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,12 +621,12 @@ public Builder mergeFrom( } // finally return this; } + private int requestTypeCase_ = 0; private java.lang.Object requestType_; - public RequestTypeCase - getRequestTypeCase() { - return RequestTypeCase.forNumber( - requestTypeCase_); + + public RequestTypeCase getRequestTypeCase() { + return RequestTypeCase.forNumber(requestTypeCase_); } public Builder clearRequestType() { @@ -582,13 +639,19 @@ public Builder clearRequestType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishRequest, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> initialRequestBuilder_; + com.google.cloud.pubsublite.proto.InitialPublishRequest, + com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, + com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> + initialRequestBuilder_; /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; + * * @return Whether the initialRequest field is set. */ @java.lang.Override @@ -596,11 +659,14 @@ public boolean hasInitialRequest() { return requestTypeCase_ == 1; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; + * * @return The initialRequest. */ @java.lang.Override @@ -618,13 +684,16 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest } } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ - public Builder setInitialRequest(com.google.cloud.pubsublite.proto.InitialPublishRequest value) { + public Builder setInitialRequest( + com.google.cloud.pubsublite.proto.InitialPublishRequest value) { if (initialRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,6 +707,8 @@ public Builder setInitialRequest(com.google.cloud.pubsublite.proto.InitialPublis return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -656,18 +727,25 @@ public Builder setInitialRequest( return this; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ - public Builder mergeInitialRequest(com.google.cloud.pubsublite.proto.InitialPublishRequest value) { + public Builder mergeInitialRequest( + com.google.cloud.pubsublite.proto.InitialPublishRequest value) { if (initialRequestBuilder_ == null) { - if (requestTypeCase_ == 1 && - requestType_ != com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) { - requestType_ = com.google.cloud.pubsublite.proto.InitialPublishRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_) - .mergeFrom(value).buildPartial(); + if (requestTypeCase_ == 1 + && requestType_ + != com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) { + requestType_ = + com.google.cloud.pubsublite.proto.InitialPublishRequest.newBuilder( + (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_) + .mergeFrom(value) + .buildPartial(); } else { requestType_ = value; } @@ -683,6 +761,8 @@ public Builder mergeInitialRequest(com.google.cloud.pubsublite.proto.InitialPubl return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -706,16 +786,21 @@ public Builder clearInitialRequest() { return this; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ - public com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder getInitialRequestBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder + getInitialRequestBuilder() { return getInitialRequestFieldBuilder().getBuilder(); } /** + * + * *
      * Initial request on the stream.
      * 
@@ -723,7 +808,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder getInitia * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getInitialRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder + getInitialRequestOrBuilder() { if ((requestTypeCase_ == 1) && (initialRequestBuilder_ != null)) { return initialRequestBuilder_.getMessageOrBuilder(); } else { @@ -734,6 +820,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getIniti } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -741,14 +829,20 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getIniti * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishRequest, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialPublishRequest, + com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, + com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> getInitialRequestFieldBuilder() { if (initialRequestBuilder_ == null) { if (!(requestTypeCase_ == 1)) { - requestType_ = com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); + requestType_ = + com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); } - initialRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishRequest, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder>( + initialRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialPublishRequest, + com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, + com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_, getParentForChildren(), isClean()); @@ -760,13 +854,19 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getIniti } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishRequest, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> messagePublishRequestBuilder_; + com.google.cloud.pubsublite.proto.MessagePublishRequest, + com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, + com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> + messagePublishRequestBuilder_; /** + * + * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; + * * @return Whether the messagePublishRequest field is set. */ @java.lang.Override @@ -774,11 +874,14 @@ public boolean hasMessagePublishRequest() { return requestTypeCase_ == 2; } /** + * + * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; + * * @return The messagePublishRequest. */ @java.lang.Override @@ -796,13 +899,16 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublish } } /** + * + * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - public Builder setMessagePublishRequest(com.google.cloud.pubsublite.proto.MessagePublishRequest value) { + public Builder setMessagePublishRequest( + com.google.cloud.pubsublite.proto.MessagePublishRequest value) { if (messagePublishRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -816,6 +922,8 @@ public Builder setMessagePublishRequest(com.google.cloud.pubsublite.proto.Messag return this; } /** + * + * *
      * Request to publish messages.
      * 
@@ -834,18 +942,25 @@ public Builder setMessagePublishRequest( return this; } /** + * + * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - public Builder mergeMessagePublishRequest(com.google.cloud.pubsublite.proto.MessagePublishRequest value) { + public Builder mergeMessagePublishRequest( + com.google.cloud.pubsublite.proto.MessagePublishRequest value) { if (messagePublishRequestBuilder_ == null) { - if (requestTypeCase_ == 2 && - requestType_ != com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) { - requestType_ = com.google.cloud.pubsublite.proto.MessagePublishRequest.newBuilder((com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_) - .mergeFrom(value).buildPartial(); + if (requestTypeCase_ == 2 + && requestType_ + != com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) { + requestType_ = + com.google.cloud.pubsublite.proto.MessagePublishRequest.newBuilder( + (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_) + .mergeFrom(value) + .buildPartial(); } else { requestType_ = value; } @@ -861,6 +976,8 @@ public Builder mergeMessagePublishRequest(com.google.cloud.pubsublite.proto.Mess return this; } /** + * + * *
      * Request to publish messages.
      * 
@@ -884,16 +1001,21 @@ public Builder clearMessagePublishRequest() { return this; } /** + * + * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder getMessagePublishRequestBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder + getMessagePublishRequestBuilder() { return getMessagePublishRequestFieldBuilder().getBuilder(); } /** + * + * *
      * Request to publish messages.
      * 
@@ -901,7 +1023,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder getMessag * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder + getMessagePublishRequestOrBuilder() { if ((requestTypeCase_ == 2) && (messagePublishRequestBuilder_ != null)) { return messagePublishRequestBuilder_.getMessageOrBuilder(); } else { @@ -912,6 +1035,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessa } } /** + * + * *
      * Request to publish messages.
      * 
@@ -919,14 +1044,20 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessa * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishRequest, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> + com.google.cloud.pubsublite.proto.MessagePublishRequest, + com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, + com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> getMessagePublishRequestFieldBuilder() { if (messagePublishRequestBuilder_ == null) { if (!(requestTypeCase_ == 2)) { - requestType_ = com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); + requestType_ = + com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); } - messagePublishRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishRequest, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder>( + messagePublishRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishRequest, + com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, + com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder>( (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_, getParentForChildren(), isClean()); @@ -936,9 +1067,9 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessa onChanged(); return messagePublishRequestBuilder_; } + @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); } @@ -948,12 +1079,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PublishRequest) private static final com.google.cloud.pubsublite.proto.PublishRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PublishRequest(); } @@ -962,27 +1093,27 @@ public static com.google.cloud.pubsublite.proto.PublishRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java index 8c334522f..6fc8058df 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; -public interface PublishRequestOrBuilder extends +public interface PublishRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PublishRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; + * * @return Whether the initialRequest field is set. */ boolean hasInitialRequest(); /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; + * * @return The initialRequest. */ com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest(); /** + * + * *
    * Initial request on the stream.
    * 
@@ -35,31 +59,40 @@ public interface PublishRequestOrBuilder extends com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getInitialRequestOrBuilder(); /** + * + * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; + * * @return Whether the messagePublishRequest field is set. */ boolean hasMessagePublishRequest(); /** + * + * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; + * * @return The messagePublishRequest. */ com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublishRequest(); /** + * + * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder(); + com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder + getMessagePublishRequestOrBuilder(); public com.google.cloud.pubsublite.proto.PublishRequest.RequestTypeCase getRequestTypeCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java index 948d861aa..1e2f99c8d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java @@ -1,61 +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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response to a PublishRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() { - } + + private PublishResponse() {} @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishResponse.class, com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.PublishResponse.class, + com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); } private int responseTypeCase_ = 0; private java.lang.Object responseType_; + public enum ResponseTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL_RESPONSE(1), MESSAGE_RESPONSE(2), RESPONSETYPE_NOT_SET(0); private final int value; + private ResponseTypeCase(int value) { this.value = value; } @@ -71,30 +92,36 @@ public static ResponseTypeCase valueOf(int value) { public static ResponseTypeCase forNumber(int value) { switch (value) { - case 1: return INITIAL_RESPONSE; - case 2: return MESSAGE_RESPONSE; - case 0: return RESPONSETYPE_NOT_SET; - default: return null; + case 1: + return INITIAL_RESPONSE; + case 2: + return MESSAGE_RESPONSE; + case 0: + return RESPONSETYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResponseTypeCase - getResponseTypeCase() { - return ResponseTypeCase.forNumber( - responseTypeCase_); + public ResponseTypeCase getResponseTypeCase() { + return ResponseTypeCase.forNumber(responseTypeCase_); } public static final int INITIAL_RESPONSE_FIELD_NUMBER = 1; /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; + * * @return Whether the initialResponse field is set. */ @java.lang.Override @@ -102,21 +129,26 @@ public boolean hasInitialResponse() { return responseTypeCase_ == 1; } /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; + * * @return The initialResponse. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialResponse() { if (responseTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); } /** + * + * *
    * Initial response on the stream.
    * 
@@ -124,20 +156,24 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialRespon * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInitialResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder + getInitialResponseOrBuilder() { if (responseTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); } public static final int MESSAGE_RESPONSE_FIELD_NUMBER = 2; /** + * + * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; + * * @return Whether the messageResponse field is set. */ @java.lang.Override @@ -145,21 +181,26 @@ public boolean hasMessageResponse() { return responseTypeCase_ == 2; } /** + * + * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; + * * @return The messageResponse. */ @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageResponse() { if (responseTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); } /** + * + * *
    * Response to publishing messages.
    * 
@@ -167,14 +208,16 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageRespon * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMessageResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder + getMessageResponseOrBuilder() { if (responseTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,13 +229,14 @@ 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 (responseTypeCase_ == 1) { - output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); + output.writeMessage( + 1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); } if (responseTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); + output.writeMessage( + 2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); } getUnknownFields().writeTo(output); } @@ -204,12 +248,14 @@ public int getSerializedSize() { size = 0; if (responseTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); } if (responseTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,22 +265,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.cloud.pubsublite.proto.PublishResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PublishResponse other = (com.google.cloud.pubsublite.proto.PublishResponse) obj; + com.google.cloud.pubsublite.proto.PublishResponse other = + (com.google.cloud.pubsublite.proto.PublishResponse) obj; if (!getResponseTypeCase().equals(other.getResponseTypeCase())) return false; switch (responseTypeCase_) { case 1: - if (!getInitialResponse() - .equals(other.getInitialResponse())) return false; + if (!getInitialResponse().equals(other.getInitialResponse())) return false; break; case 2: - if (!getMessageResponse() - .equals(other.getMessageResponse())) return false; + if (!getMessageResponse().equals(other.getMessageResponse())) return false; break; case 0: default: @@ -268,129 +313,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PublishResponse 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.PublishResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.PublishResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 to a PublishRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.PublishResponse) com.google.cloud.pubsublite.proto.PublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishResponse.class, com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.PublishResponse.class, + com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PublishResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; } @java.lang.Override @@ -428,8 +479,11 @@ public com.google.cloud.pubsublite.proto.PublishResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PublishResponse buildPartial() { - com.google.cloud.pubsublite.proto.PublishResponse result = new com.google.cloud.pubsublite.proto.PublishResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.PublishResponse result = + new com.google.cloud.pubsublite.proto.PublishResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -442,12 +496,10 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PublishResponse res private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishResponse result) { result.responseTypeCase_ = responseTypeCase_; result.responseType_ = this.responseType_; - if (responseTypeCase_ == 1 && - initialResponseBuilder_ != null) { + if (responseTypeCase_ == 1 && initialResponseBuilder_ != null) { result.responseType_ = initialResponseBuilder_.build(); } - if (responseTypeCase_ == 2 && - messageResponseBuilder_ != null) { + if (responseTypeCase_ == 2 && messageResponseBuilder_ != null) { result.responseType_ = messageResponseBuilder_.build(); } } @@ -456,38 +508,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishRespons 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.cloud.pubsublite.proto.PublishResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.PublishResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.PublishResponse) other); } else { super.mergeFrom(other); return this; @@ -495,19 +548,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PublishResponse other) { - if (other == com.google.cloud.pubsublite.proto.PublishResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.PublishResponse.getDefaultInstance()) + return this; switch (other.getResponseTypeCase()) { - case INITIAL_RESPONSE: { - mergeInitialResponse(other.getInitialResponse()); - break; - } - case MESSAGE_RESPONSE: { - mergeMessageResponse(other.getMessageResponse()); - break; - } - case RESPONSETYPE_NOT_SET: { - break; - } + case INITIAL_RESPONSE: + { + mergeInitialResponse(other.getInitialResponse()); + break; + } + case MESSAGE_RESPONSE: + { + mergeMessageResponse(other.getMessageResponse()); + break; + } + case RESPONSETYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -535,26 +592,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getInitialResponseFieldBuilder().getBuilder(), - extensionRegistry); - responseTypeCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getMessageResponseFieldBuilder().getBuilder(), - extensionRegistry); - responseTypeCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getInitialResponseFieldBuilder().getBuilder(), extensionRegistry); + responseTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getMessageResponseFieldBuilder().getBuilder(), extensionRegistry); + responseTypeCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,12 +620,12 @@ public Builder mergeFrom( } // finally return this; } + private int responseTypeCase_ = 0; private java.lang.Object responseType_; - public ResponseTypeCase - getResponseTypeCase() { - return ResponseTypeCase.forNumber( - responseTypeCase_); + + public ResponseTypeCase getResponseTypeCase() { + return ResponseTypeCase.forNumber(responseTypeCase_); } public Builder clearResponseType() { @@ -582,13 +638,19 @@ public Builder clearResponseType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishResponse, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> initialResponseBuilder_; + com.google.cloud.pubsublite.proto.InitialPublishResponse, + com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, + com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> + initialResponseBuilder_; /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; + * * @return Whether the initialResponse field is set. */ @java.lang.Override @@ -596,11 +658,14 @@ public boolean hasInitialResponse() { return responseTypeCase_ == 1; } /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; + * * @return The initialResponse. */ @java.lang.Override @@ -618,13 +683,16 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialRespon } } /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ - public Builder setInitialResponse(com.google.cloud.pubsublite.proto.InitialPublishResponse value) { + public Builder setInitialResponse( + com.google.cloud.pubsublite.proto.InitialPublishResponse value) { if (initialResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,6 +706,8 @@ public Builder setInitialResponse(com.google.cloud.pubsublite.proto.InitialPubli return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -656,18 +726,25 @@ public Builder setInitialResponse( return this; } /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ - public Builder mergeInitialResponse(com.google.cloud.pubsublite.proto.InitialPublishResponse value) { + public Builder mergeInitialResponse( + com.google.cloud.pubsublite.proto.InitialPublishResponse value) { if (initialResponseBuilder_ == null) { - if (responseTypeCase_ == 1 && - responseType_ != com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) { - responseType_ = com.google.cloud.pubsublite.proto.InitialPublishResponse.newBuilder((com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_) - .mergeFrom(value).buildPartial(); + if (responseTypeCase_ == 1 + && responseType_ + != com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) { + responseType_ = + com.google.cloud.pubsublite.proto.InitialPublishResponse.newBuilder( + (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_) + .mergeFrom(value) + .buildPartial(); } else { responseType_ = value; } @@ -683,6 +760,8 @@ public Builder mergeInitialResponse(com.google.cloud.pubsublite.proto.InitialPub return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -706,16 +785,21 @@ public Builder clearInitialResponse() { return this; } /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ - public com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder getInitialResponseBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder + getInitialResponseBuilder() { return getInitialResponseFieldBuilder().getBuilder(); } /** + * + * *
      * Initial response on the stream.
      * 
@@ -723,7 +807,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder getIniti * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInitialResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder + getInitialResponseOrBuilder() { if ((responseTypeCase_ == 1) && (initialResponseBuilder_ != null)) { return initialResponseBuilder_.getMessageOrBuilder(); } else { @@ -734,6 +819,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInit } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -741,14 +828,20 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInit * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishResponse, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> + com.google.cloud.pubsublite.proto.InitialPublishResponse, + com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, + com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> getInitialResponseFieldBuilder() { if (initialResponseBuilder_ == null) { if (!(responseTypeCase_ == 1)) { - responseType_ = com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); + responseType_ = + com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); } - initialResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishResponse, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder>( + initialResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialPublishResponse, + com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, + com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder>( (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_, getParentForChildren(), isClean()); @@ -760,13 +853,19 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInit } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> messageResponseBuilder_; + com.google.cloud.pubsublite.proto.MessagePublishResponse, + com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, + com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> + messageResponseBuilder_; /** + * + * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; + * * @return Whether the messageResponse field is set. */ @java.lang.Override @@ -774,11 +873,14 @@ public boolean hasMessageResponse() { return responseTypeCase_ == 2; } /** + * + * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; + * * @return The messageResponse. */ @java.lang.Override @@ -796,13 +898,16 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageRespon } } /** + * + * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ - public Builder setMessageResponse(com.google.cloud.pubsublite.proto.MessagePublishResponse value) { + public Builder setMessageResponse( + com.google.cloud.pubsublite.proto.MessagePublishResponse value) { if (messageResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -816,6 +921,8 @@ public Builder setMessageResponse(com.google.cloud.pubsublite.proto.MessagePubli return this; } /** + * + * *
      * Response to publishing messages.
      * 
@@ -834,18 +941,25 @@ public Builder setMessageResponse( return this; } /** + * + * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ - public Builder mergeMessageResponse(com.google.cloud.pubsublite.proto.MessagePublishResponse value) { + public Builder mergeMessageResponse( + com.google.cloud.pubsublite.proto.MessagePublishResponse value) { if (messageResponseBuilder_ == null) { - if (responseTypeCase_ == 2 && - responseType_ != com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) { - responseType_ = com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder((com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_) - .mergeFrom(value).buildPartial(); + if (responseTypeCase_ == 2 + && responseType_ + != com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) { + responseType_ = + com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder( + (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_) + .mergeFrom(value) + .buildPartial(); } else { responseType_ = value; } @@ -861,6 +975,8 @@ public Builder mergeMessageResponse(com.google.cloud.pubsublite.proto.MessagePub return this; } /** + * + * *
      * Response to publishing messages.
      * 
@@ -884,16 +1000,21 @@ public Builder clearMessageResponse() { return this; } /** + * + * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder getMessageResponseBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder + getMessageResponseBuilder() { return getMessageResponseFieldBuilder().getBuilder(); } /** + * + * *
      * Response to publishing messages.
      * 
@@ -901,7 +1022,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder getMessa * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMessageResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder + getMessageResponseOrBuilder() { if ((responseTypeCase_ == 2) && (messageResponseBuilder_ != null)) { return messageResponseBuilder_.getMessageOrBuilder(); } else { @@ -912,6 +1034,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMess } } /** + * + * *
      * Response to publishing messages.
      * 
@@ -919,14 +1043,20 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMess * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> + com.google.cloud.pubsublite.proto.MessagePublishResponse, + com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, + com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> getMessageResponseFieldBuilder() { if (messageResponseBuilder_ == null) { if (!(responseTypeCase_ == 2)) { - responseType_ = com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); + responseType_ = + com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); } - messageResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder>( + messageResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishResponse, + com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, + com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder>( (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_, getParentForChildren(), isClean()); @@ -936,9 +1066,9 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMess onChanged(); return messageResponseBuilder_; } + @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); } @@ -948,12 +1078,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PublishResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PublishResponse) private static final com.google.cloud.pubsublite.proto.PublishResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PublishResponse(); } @@ -962,27 +1092,27 @@ public static com.google.cloud.pubsublite.proto.PublishResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,6 +1127,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java index 575dfde0f..b8747aad0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.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/cloud/pubsublite/v1/publisher.proto package com.google.cloud.pubsublite.proto; -public interface PublishResponseOrBuilder extends +public interface PublishResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PublishResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; + * * @return Whether the initialResponse field is set. */ boolean hasInitialResponse(); /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; + * * @return The initialResponse. */ com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialResponse(); /** + * + * *
    * Initial response on the stream.
    * 
@@ -35,24 +59,32 @@ public interface PublishResponseOrBuilder extends com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInitialResponseOrBuilder(); /** + * + * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; + * * @return Whether the messageResponse field is set. */ boolean hasMessageResponse(); /** + * + * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; + * * @return The messageResponse. */ com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageResponse(); /** + * + * *
    * Response to publishing messages.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java new file mode 100644 index 000000000..5fdca7813 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java @@ -0,0 +1,182 @@ +/* + * 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/cloud/pubsublite/v1/publisher.proto + +package com.google.cloud.pubsublite.proto; + +public final class PublisherProto { + private PublisherProto() {} + + 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_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PublishResponse_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*google/cloud/pubsublite/v1/publisher.p" + + "roto\022\032google.cloud.pubsublite.v1\032\034google" + + "/api/annotations.proto\032\027google/api/clien" + + "t.proto\032\'google/cloud/pubsublite/v1/comm" + + "on.proto\"L\n\025InitialPublishRequest\022\r\n\005top" + + "ic\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022\021\n\tclient_id" + + "\030\003 \001(\014\"\030\n\026InitialPublishResponse\"s\n\025Mess" + + "agePublishRequest\022;\n\010messages\030\001 \003(\0132).go" + + "ogle.cloud.pubsublite.v1.PubSubMessage\022\035" + + "\n\025first_sequence_number\030\002 \001(\003\"\232\002\n\026Messag" + + "ePublishResponse\0228\n\014start_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\022U\n\rcu" + + "rsor_ranges\030\002 \003(\0132>.google.cloud.pubsubl" + + "ite.v1.MessagePublishResponse.CursorRang" + + "e\032o\n\013CursorRange\0228\n\014start_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\022\023\n\013st" + + "art_index\030\002 \001(\005\022\021\n\tend_index\030\003 \001(\005\"\304\001\n\016P" + + "ublishRequest\022L\n\017initial_request\030\001 \001(\01321" + + ".google.cloud.pubsublite.v1.InitialPubli" + + "shRequestH\000\022T\n\027message_publish_request\030\002" + + " \001(\01321.google.cloud.pubsublite.v1.Messag" + + "ePublishRequestH\000B\016\n\014request_type\"\302\001\n\017Pu" + + "blishResponse\022N\n\020initial_response\030\001 \001(\0132" + + "2.google.cloud.pubsublite.v1.InitialPubl" + + "ishResponseH\000\022N\n\020message_response\030\002 \001(\0132" + + "2.google.cloud.pubsublite.v1.MessagePubl" + + "ishResponseH\000B\017\n\rresponse_type2\313\001\n\020Publi" + + "sherService\022h\n\007Publish\022*.google.cloud.pu" + + "bsublite.v1.PublishRequest\032+.google.clou" + + "d.pubsublite.v1.PublishResponse\"\000(\0010\001\032M\312" + + "A\031pubsublite.googleapis.com\322A.https://ww" + + "w.googleapis.com/auth/cloud-platformB\322\001\n" + + "!com.google.cloud.pubsublite.protoB\016Publ" + + "isherProtoP\001Z>cloud.google.com/go/pubsub" + + "lite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252" + + "\002\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Cl" + + "oud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSu" + + "bLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor, + new java.lang.String[] { + "Topic", "Partition", "ClientId", + }); + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor, + new java.lang.String[] { + "Messages", "FirstSequenceNumber", + }); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor, + new java.lang.String[] { + "StartCursor", "CursorRanges", + }); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor = + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor, + new java.lang.String[] { + "StartCursor", "StartIndex", "EndIndex", + }); + internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor, + new java.lang.String[] { + "InitialRequest", "MessagePublishRequest", "RequestType", + }); + internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor, + new java.lang.String[] { + "InitialResponse", "MessageResponse", "ResponseType", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java index 25cf373db..f8c1e30d6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java @@ -1,57 +1,79 @@ +/* + * 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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Metadata about a reservation resource.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Reservation} */ -public final class Reservation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Reservation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Reservation) ReservationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Reservation.newBuilder() to construct. private Reservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Reservation() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Reservation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Reservation.class, com.google.cloud.pubsublite.proto.Reservation.Builder.class); + com.google.cloud.pubsublite.proto.Reservation.class, + com.google.cloud.pubsublite.proto.Reservation.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the reservation.
    * Structured like:
@@ -59,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -67,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the reservation.
    * Structured like:
@@ -82,16 +106,15 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -102,6 +125,8 @@ public java.lang.String getName() { public static final int THROUGHPUT_CAPACITY_FIELD_NUMBER = 2; private long throughputCapacity_ = 0L; /** + * + * *
    * The reserved throughput capacity. Every unit of throughput capacity is
    * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -112,6 +137,7 @@ public java.lang.String getName() {
    * 
* * int64 throughput_capacity = 2; + * * @return The throughputCapacity. */ @java.lang.Override @@ -120,6 +146,7 @@ public long getThroughputCapacity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,8 +158,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_); } @@ -152,8 +178,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (throughputCapacity_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, throughputCapacity_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, throughputCapacity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -163,17 +188,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.cloud.pubsublite.proto.Reservation)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Reservation other = (com.google.cloud.pubsublite.proto.Reservation) obj; + com.google.cloud.pubsublite.proto.Reservation other = + (com.google.cloud.pubsublite.proto.Reservation) obj; - if (!getName() - .equals(other.getName())) return false; - if (getThroughputCapacity() - != other.getThroughputCapacity()) return false; + if (!getName().equals(other.getName())) return false; + if (getThroughputCapacity() != other.getThroughputCapacity()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,137 +212,142 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + THROUGHPUT_CAPACITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getThroughputCapacity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThroughputCapacity()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.Reservation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Reservation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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.cloud.pubsublite.proto.Reservation 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; } /** + * + * *
    * Metadata about a reservation resource.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Reservation} */ - 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.cloud.pubsublite.v1.Reservation) com.google.cloud.pubsublite.proto.ReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Reservation.class, com.google.cloud.pubsublite.proto.Reservation.Builder.class); + com.google.cloud.pubsublite.proto.Reservation.class, + com.google.cloud.pubsublite.proto.Reservation.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Reservation.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -329,9 +358,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; } @java.lang.Override @@ -350,8 +379,11 @@ public com.google.cloud.pubsublite.proto.Reservation build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Reservation buildPartial() { - com.google.cloud.pubsublite.proto.Reservation result = new com.google.cloud.pubsublite.proto.Reservation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.Reservation result = + new com.google.cloud.pubsublite.proto.Reservation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -370,38 +402,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Reservation result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Reservation) { - return mergeFrom((com.google.cloud.pubsublite.proto.Reservation)other); + return mergeFrom((com.google.cloud.pubsublite.proto.Reservation) other); } else { super.mergeFrom(other); return this; @@ -444,22 +477,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - throughputCapacity_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + throughputCapacity_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -469,10 +505,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -480,13 +519,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -495,6 +534,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -502,15 +543,14 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -518,6 +558,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -525,18 +567,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -544,6 +590,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -553,6 +600,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -560,12 +609,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -573,8 +624,10 @@ public Builder setNameBytes( return this; } - private long throughputCapacity_ ; + private long throughputCapacity_; /** + * + * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -585,6 +638,7 @@ public Builder setNameBytes(
      * 
* * int64 throughput_capacity = 2; + * * @return The throughputCapacity. */ @java.lang.Override @@ -592,6 +646,8 @@ public long getThroughputCapacity() { return throughputCapacity_; } /** + * + * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -602,17 +658,20 @@ public long getThroughputCapacity() {
      * 
* * int64 throughput_capacity = 2; + * * @param value The throughputCapacity to set. * @return This builder for chaining. */ public Builder setThroughputCapacity(long value) { - + throughputCapacity_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -623,6 +682,7 @@ public Builder setThroughputCapacity(long value) {
      * 
* * int64 throughput_capacity = 2; + * * @return This builder for chaining. */ public Builder clearThroughputCapacity() { @@ -631,9 +691,9 @@ public Builder clearThroughputCapacity() { 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); } @@ -643,12 +703,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Reservation) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Reservation) private static final com.google.cloud.pubsublite.proto.Reservation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Reservation(); } @@ -657,27 +717,27 @@ public static com.google.cloud.pubsublite.proto.Reservation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -692,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Reservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java index 7fadb76b4..b145a361e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface ReservationOrBuilder extends +public interface ReservationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Reservation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the reservation.
    * Structured like:
@@ -15,10 +33,13 @@ public interface ReservationOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the reservation.
    * Structured like:
@@ -26,12 +47,14 @@ public interface ReservationOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The reserved throughput capacity. Every unit of throughput capacity is
    * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -42,6 +65,7 @@ public interface ReservationOrBuilder extends
    * 
* * int64 throughput_capacity = 2; + * * @return The throughputCapacity. */ long getThroughputCapacity(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java index 0f0855564..35eadedd7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request to update the stream's delivery cursor based on the given target.
  * Resets the server available tokens to 0. SeekRequests past head result in
@@ -14,53 +31,57 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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() {
-  }
+
+  private SeekRequest() {}
 
   @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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto
+        .internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.SeekRequest.class, com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.SeekRequest.class,
+            com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * A special target in the partition that takes no other parameters.
    * 
* * Protobuf enum {@code google.cloud.pubsublite.v1.SeekRequest.NamedTarget} */ - public enum NamedTarget - implements com.google.protobuf.ProtocolMessageEnum { + public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -69,6 +90,8 @@ public enum NamedTarget */ NAMED_TARGET_UNSPECIFIED(0), /** + * + * *
      * A target corresponding to the most recently published message in the
      * partition.
@@ -78,6 +101,8 @@ public enum NamedTarget
      */
     HEAD(1),
     /**
+     *
+     *
      * 
      * A target corresponding to the committed cursor for the given subscription
      * and topic partition.
@@ -90,6 +115,8 @@ public enum NamedTarget
     ;
 
     /**
+     *
+     *
      * 
      * Default value. This value is unused.
      * 
@@ -98,6 +125,8 @@ public enum NamedTarget */ public static final int NAMED_TARGET_UNSPECIFIED_VALUE = 0; /** + * + * *
      * A target corresponding to the most recently published message in the
      * partition.
@@ -107,6 +136,8 @@ public enum NamedTarget
      */
     public static final int HEAD_VALUE = 1;
     /**
+     *
+     *
      * 
      * A target corresponding to the committed cursor for the given subscription
      * and topic partition.
@@ -116,7 +147,6 @@ public enum NamedTarget
      */
     public static final int COMMITTED_CURSOR_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -141,49 +171,49 @@ public static NamedTarget valueOf(int value) {
      */
     public static NamedTarget forNumber(int value) {
       switch (value) {
-        case 0: return NAMED_TARGET_UNSPECIFIED;
-        case 1: return HEAD;
-        case 2: return COMMITTED_CURSOR;
-        default: return null;
+        case 0:
+          return NAMED_TARGET_UNSPECIFIED;
+        case 1:
+          return HEAD;
+        case 2:
+          return COMMITTED_CURSOR;
+        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<
-        NamedTarget> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public NamedTarget findValueByNumber(int number) {
-              return NamedTarget.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 NamedTarget findValueByNumber(int number) {
+            return NamedTarget.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.cloud.pubsublite.proto.SeekRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final NamedTarget[] VALUES = values();
 
-    public static NamedTarget valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static NamedTarget 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;
@@ -202,13 +232,16 @@ private NamedTarget(int value) {
 
   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 {
     NAMED_TARGET(1),
     CURSOR(2),
     TARGET_NOT_SET(0);
     private final int value;
+
     private TargetCase(int value) {
       this.value = value;
     }
@@ -224,41 +257,50 @@ public static TargetCase valueOf(int value) {
 
     public static TargetCase forNumber(int value) {
       switch (value) {
-        case 1: return NAMED_TARGET;
-        case 2: return CURSOR;
-        case 0: return TARGET_NOT_SET;
-        default: return null;
+        case 1:
+          return NAMED_TARGET;
+        case 2:
+          return CURSOR;
+        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 NAMED_TARGET_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return Whether the namedTarget field is set. */ public boolean hasNamedTarget() { return targetCase_ == 1; } /** + * + * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return The enum numeric value on the wire for namedTarget. */ public int getNamedTargetValue() { @@ -268,30 +310,39 @@ public int getNamedTargetValue() { return 0; } /** + * + * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return The namedTarget. */ public com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget() { if (targetCase_ == 1) { - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED : result; + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null + ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED + : result; } return com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } public static final int CURSOR_FIELD_NUMBER = 2; /** + * + * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -299,22 +350,27 @@ public boolean hasCursor() { return targetCase_ == 2; } /** + * + * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (targetCase_ == 2) { - return (com.google.cloud.pubsublite.proto.Cursor) target_; + return (com.google.cloud.pubsublite.proto.Cursor) target_; } return com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance(); } /** + * + * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
@@ -325,12 +381,13 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
     if (targetCase_ == 2) {
-       return (com.google.cloud.pubsublite.proto.Cursor) target_;
+      return (com.google.cloud.pubsublite.proto.Cursor) target_;
     }
     return com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -342,8 +399,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 (targetCase_ == 1) {
       output.writeEnum(1, ((java.lang.Integer) target_));
     }
@@ -360,12 +416,13 @@ public int getSerializedSize() {
 
     size = 0;
     if (targetCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, ((java.lang.Integer) target_));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) target_));
     }
     if (targetCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.pubsublite.proto.Cursor) target_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.pubsublite.proto.Cursor) target_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -375,22 +432,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.cloud.pubsublite.proto.SeekRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.SeekRequest other = (com.google.cloud.pubsublite.proto.SeekRequest) obj;
+    com.google.cloud.pubsublite.proto.SeekRequest other =
+        (com.google.cloud.pubsublite.proto.SeekRequest) obj;
 
     if (!getTargetCase().equals(other.getTargetCase())) return false;
     switch (targetCase_) {
       case 1:
-        if (getNamedTargetValue()
-            != other.getNamedTargetValue()) return false;
+        if (getNamedTargetValue() != other.getNamedTargetValue()) return false;
         break;
       case 2:
-        if (!getCursor()
-            .equals(other.getCursor())) return false;
+        if (!getCursor().equals(other.getCursor())) return false;
         break;
       case 0:
       default:
@@ -423,97 +479,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.SeekRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 to update the stream's delivery cursor based on the given target.
    * Resets the server available tokens to 0. SeekRequests past head result in
@@ -524,33 +587,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.SeekRequest)
       com.google.cloud.pubsublite.proto.SeekRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.SeekRequest.class, com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.SeekRequest.class,
+              com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.SeekRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -564,9 +626,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
     }
 
     @java.lang.Override
@@ -585,8 +647,11 @@ public com.google.cloud.pubsublite.proto.SeekRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.SeekRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.SeekRequest result = new com.google.cloud.pubsublite.proto.SeekRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.SeekRequest result =
+          new com.google.cloud.pubsublite.proto.SeekRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -599,8 +664,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekRequest result)
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekRequest result) {
       result.targetCase_ = targetCase_;
       result.target_ = this.target_;
-      if (targetCase_ == 2 &&
-          cursorBuilder_ != null) {
+      if (targetCase_ == 2 && cursorBuilder_ != null) {
         result.target_ = cursorBuilder_.build();
       }
     }
@@ -609,38 +673,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekRequest re
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.SeekRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.SeekRequest)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.SeekRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -650,17 +715,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekRequest other) {
       if (other == com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) return this;
       switch (other.getTargetCase()) {
-        case NAMED_TARGET: {
-          setNamedTargetValue(other.getNamedTargetValue());
-          break;
-        }
-        case CURSOR: {
-          mergeCursor(other.getCursor());
-          break;
-        }
-        case TARGET_NOT_SET: {
-          break;
-        }
+        case NAMED_TARGET:
+          {
+            setNamedTargetValue(other.getNamedTargetValue());
+            break;
+          }
+        case CURSOR:
+          {
+            mergeCursor(other.getCursor());
+            break;
+          }
+        case TARGET_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -688,25 +756,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              int rawValue = input.readEnum();
-              targetCase_ = 1;
-              target_ = rawValue;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getCursorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              targetCase_ = 2;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                int rawValue = input.readEnum();
+                targetCase_ = 1;
+                target_ = rawValue;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
+                targetCase_ = 2;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -716,12 +785,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int targetCase_ = 0;
     private java.lang.Object target_;
-    public TargetCase
-        getTargetCase() {
-      return TargetCase.forNumber(
-          targetCase_);
+
+    public TargetCase getTargetCase() {
+      return TargetCase.forNumber(targetCase_);
     }
 
     public Builder clearTarget() {
@@ -734,11 +803,14 @@ public Builder clearTarget() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return Whether the namedTarget field is set. */ @java.lang.Override @@ -746,11 +818,14 @@ public boolean hasNamedTarget() { return targetCase_ == 1; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return The enum numeric value on the wire for namedTarget. */ @java.lang.Override @@ -761,11 +836,14 @@ public int getNamedTargetValue() { return 0; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @param value The enum numeric value on the wire for namedTarget to set. * @return This builder for chaining. */ @@ -776,28 +854,37 @@ public Builder setNamedTargetValue(int value) { return this; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return The namedTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget() { if (targetCase_ == 1) { - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED : result; + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null + ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED + : result; } return com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @param value The namedTarget to set. * @return This builder for chaining. */ @@ -811,11 +898,14 @@ public Builder setNamedTarget(com.google.cloud.pubsublite.proto.SeekRequest.Name return this; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return This builder for chaining. */ public Builder clearNamedTarget() { @@ -828,14 +918,20 @@ public Builder clearNamedTarget() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + cursorBuilder_; /** + * + * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -843,12 +939,15 @@ public boolean hasCursor() { return targetCase_ == 2; } /** + * + * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return The cursor. */ @java.lang.Override @@ -866,6 +965,8 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { } } /** + * + * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -887,6 +988,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -894,8 +997,7 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 2;
      */
-    public Builder setCursor(
-        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         target_ = builderForValue.build();
         onChanged();
@@ -906,6 +1008,8 @@ public Builder setCursor(
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -915,10 +1019,13 @@ public Builder setCursor(
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (targetCase_ == 2 &&
-            target_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
-          target_ = com.google.cloud.pubsublite.proto.Cursor.newBuilder((com.google.cloud.pubsublite.proto.Cursor) target_)
-              .mergeFrom(value).buildPartial();
+        if (targetCase_ == 2
+            && target_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+          target_ =
+              com.google.cloud.pubsublite.proto.Cursor.newBuilder(
+                      (com.google.cloud.pubsublite.proto.Cursor) target_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           target_ = value;
         }
@@ -934,6 +1041,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -958,6 +1067,8 @@ public Builder clearCursor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -969,6 +1080,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -988,6 +1101,8 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -996,14 +1111,19 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
+            com.google.cloud.pubsublite.proto.Cursor,
+            com.google.cloud.pubsublite.proto.Cursor.Builder,
+            com.google.cloud.pubsublite.proto.CursorOrBuilder>
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
         if (!(targetCase_ == 2)) {
           target_ = com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance();
         }
-        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+        cursorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.Cursor,
+                com.google.cloud.pubsublite.proto.Cursor.Builder,
+                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
                 (com.google.cloud.pubsublite.proto.Cursor) target_,
                 getParentForChildren(),
                 isClean());
@@ -1013,9 +1133,9 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       onChanged();
       return cursorBuilder_;
     }
+
     @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);
     }
 
@@ -1025,12 +1145,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekRequest)
   private static final com.google.cloud.pubsublite.proto.SeekRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekRequest();
   }
@@ -1039,27 +1159,27 @@ public static com.google.cloud.pubsublite.proto.SeekRequest getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SeekRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SeekRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1074,6 +1194,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.SeekRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
index 70a571d83..2e2f9b3a1 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
@@ -1,61 +1,94 @@
+/*
+ * 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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface SeekRequestOrBuilder extends
+public interface SeekRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return Whether the namedTarget field is set. */ boolean hasNamedTarget(); /** + * + * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return The enum numeric value on the wire for namedTarget. */ int getNamedTargetValue(); /** + * + * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return The namedTarget. */ com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget(); /** + * + * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** + * + * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
similarity index 65%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
index f14a15345..845ac4833 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
@@ -1,60 +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/cloud/pubsublite/v1/subscriber.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Response to a SeekRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekResponse.class, com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekResponse.class, + com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); } public static final int CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** + * + * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasCursor() { return cursor_ != null; } /** + * + * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } /** + * + * *
    * The new delivery cursor for the current stream.
    * 
@@ -82,10 +110,13 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +128,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 (cursor_ != null) { output.writeMessage(1, getCursor()); } @@ -112,8 +142,7 @@ public int getSerializedSize() { size = 0; if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +152,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.cloud.pubsublite.proto.SeekResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SeekResponse other = (com.google.cloud.pubsublite.proto.SeekResponse) obj; + com.google.cloud.pubsublite.proto.SeekResponse other = + (com.google.cloud.pubsublite.proto.SeekResponse) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor() - .equals(other.getCursor())) return false; + if (!getCursor().equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -155,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.SeekResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SeekResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 to a SeekRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.SeekResponse) com.google.cloud.pubsublite.proto.SeekResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekResponse.class, com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekResponse.class, + com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SeekResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +327,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; } @java.lang.Override @@ -313,8 +348,11 @@ public com.google.cloud.pubsublite.proto.SeekResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekResponse buildPartial() { - com.google.cloud.pubsublite.proto.SeekResponse result = new com.google.cloud.pubsublite.proto.SeekResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.SeekResponse result = + new com.google.cloud.pubsublite.proto.SeekResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,9 +360,7 @@ public com.google.cloud.pubsublite.proto.SeekResponse buildPartial() { private void buildPartial0(com.google.cloud.pubsublite.proto.SeekResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); } } @@ -332,38 +368,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekResponse result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SeekResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SeekResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.SeekResponse) other); } else { super.mergeFrom(other); return this; @@ -401,19 +438,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,38 +460,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + cursorBuilder_; /** + * + * *
      * The new delivery cursor for the current stream.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } else { return cursorBuilder_.getMessage(); } } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -475,14 +526,15 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ - public Builder setCursor( - com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -493,6 +545,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -501,9 +555,9 @@ public Builder setCursor( */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - cursor_ != null && - cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && cursor_ != null + && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -516,6 +570,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -533,6 +589,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -545,6 +603,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -555,11 +615,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null ? - com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -567,21 +630,24 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), - getParentForChildren(), - isClean()); + cursorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), getParentForChildren(), isClean()); cursor_ = null; } return cursorBuilder_; } + @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); } @@ -591,12 +657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekResponse) private static final com.google.cloud.pubsublite.proto.SeekResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekResponse(); } @@ -605,27 +671,27 @@ public static com.google.cloud.pubsublite.proto.SeekResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeekResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeekResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +706,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java index fd58f7512..7acc60248 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface SeekResponseOrBuilder extends +public interface SeekResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** + * + * *
    * The new delivery cursor for the current stream.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java index 9c10278c4..47d367c8d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java @@ -1,63 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for SeekSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionRequest} */ -public final class SeekSubscriptionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SeekSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SeekSubscriptionRequest) SeekSubscriptionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SeekSubscriptionRequest.newBuilder() to construct. private SeekSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SeekSubscriptionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SeekSubscriptionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); } /** + * + * *
    * A named position with respect to the message backlog.
    * 
* * Protobuf enum {@code google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget} */ - public enum NamedTarget - implements com.google.protobuf.ProtocolMessageEnum { + public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified named target. Do not use.
      * 
@@ -66,6 +88,8 @@ public enum NamedTarget */ NAMED_TARGET_UNSPECIFIED(0), /** + * + * *
      * Seek to the oldest retained message.
      * 
@@ -74,6 +98,8 @@ public enum NamedTarget */ TAIL(1), /** + * + * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -86,6 +112,8 @@ public enum NamedTarget
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified named target. Do not use.
      * 
@@ -94,6 +122,8 @@ public enum NamedTarget */ public static final int NAMED_TARGET_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Seek to the oldest retained message.
      * 
@@ -102,6 +132,8 @@ public enum NamedTarget */ public static final int TAIL_VALUE = 1; /** + * + * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -111,7 +143,6 @@ public enum NamedTarget
      */
     public static final int HEAD_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -136,49 +167,51 @@ public static NamedTarget valueOf(int value) {
      */
     public static NamedTarget forNumber(int value) {
       switch (value) {
-        case 0: return NAMED_TARGET_UNSPECIFIED;
-        case 1: return TAIL;
-        case 2: return HEAD;
-        default: return null;
+        case 0:
+          return NAMED_TARGET_UNSPECIFIED;
+        case 1:
+          return TAIL;
+        case 2:
+          return HEAD;
+        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<
-        NamedTarget> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public NamedTarget findValueByNumber(int number) {
-              return NamedTarget.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 NamedTarget findValueByNumber(int number) {
+            return NamedTarget.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final NamedTarget[] VALUES = values();
 
-    public static NamedTarget valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static NamedTarget 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;
@@ -197,13 +230,16 @@ private NamedTarget(int value) {
 
   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 {
     NAMED_TARGET(2),
     TIME_TARGET(3),
     TARGET_NOT_SET(0);
     private final int value;
+
     private TargetCase(int value) {
       this.value = value;
     }
@@ -219,32 +255,41 @@ public static TargetCase valueOf(int value) {
 
     public static TargetCase forNumber(int value) {
       switch (value) {
-        case 2: return NAMED_TARGET;
-        case 3: return TIME_TARGET;
-        case 0: return TARGET_NOT_SET;
-        default: return null;
+        case 2:
+          return NAMED_TARGET;
+        case 3:
+          return TIME_TARGET;
+        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 NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the subscription to seek.
    * 
* - * 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 @@ -253,29 +298,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the subscription to seek.
    * 
* - * 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 { @@ -285,22 +332,28 @@ public java.lang.String getName() { public static final int NAMED_TARGET_FIELD_NUMBER = 2; /** + * + * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * * @return Whether the namedTarget field is set. */ public boolean hasNamedTarget() { return targetCase_ == 2; } /** + * + * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * * @return The enum numeric value on the wire for namedTarget. */ public int getNamedTargetValue() { @@ -310,24 +363,33 @@ public int getNamedTargetValue() { return 0; } /** + * + * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * * @return The namedTarget. */ public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget getNamedTarget() { if (targetCase_ == 2) { - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED : result; - } - return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null + ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED + : result; + } + return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget + .NAMED_TARGET_UNSPECIFIED; } public static final int TIME_TARGET_FIELD_NUMBER = 3; /** + * + * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -335,6 +397,7 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget get
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return Whether the timeTarget field is set. */ @java.lang.Override @@ -342,6 +405,8 @@ public boolean hasTimeTarget() { return targetCase_ == 3; } /** + * + * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -349,16 +414,19 @@ public boolean hasTimeTarget() {
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return The timeTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget() { if (targetCase_ == 3) { - return (com.google.cloud.pubsublite.proto.TimeTarget) target_; + return (com.google.cloud.pubsublite.proto.TimeTarget) target_; } return com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance(); } /** + * + * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -370,12 +438,13 @@ public com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget() {
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuilder() {
     if (targetCase_ == 3) {
-       return (com.google.cloud.pubsublite.proto.TimeTarget) target_;
+      return (com.google.cloud.pubsublite.proto.TimeTarget) target_;
     }
     return com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -387,8 +456,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_);
     }
@@ -411,12 +479,13 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (targetCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(2, ((java.lang.Integer) target_));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeEnumSize(2, ((java.lang.Integer) target_));
     }
     if (targetCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.cloud.pubsublite.proto.TimeTarget) target_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.cloud.pubsublite.proto.TimeTarget) target_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -426,24 +495,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.cloud.pubsublite.proto.SeekSubscriptionRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.SeekSubscriptionRequest other = (com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) obj;
+    com.google.cloud.pubsublite.proto.SeekSubscriptionRequest other =
+        (com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (!getTargetCase().equals(other.getTargetCase())) return false;
     switch (targetCase_) {
       case 2:
-        if (getNamedTargetValue()
-            != other.getNamedTargetValue()) return false;
+        if (getNamedTargetValue() != other.getNamedTargetValue()) return false;
         break;
       case 3:
-        if (!getTimeTarget()
-            .equals(other.getTimeTarget())) return false;
+        if (!getTimeTarget().equals(other.getTimeTarget())) return false;
         break;
       case 0:
       default:
@@ -479,129 +546,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest 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.cloud.pubsublite.proto.SeekSubscriptionRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.pubsublite.proto.SeekSubscriptionRequest 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 SeekSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionRequest} */ - 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.cloud.pubsublite.v1.SeekSubscriptionRequest) com.google.cloud.pubsublite.proto.SeekSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -616,9 +690,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; } @java.lang.Override @@ -637,8 +711,11 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result = new com.google.cloud.pubsublite.proto.SeekSubscriptionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result = + new com.google.cloud.pubsublite.proto.SeekSubscriptionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -651,11 +728,11 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekSubscriptionReq } } - private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result) { + private void buildPartialOneofs( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result) { result.targetCase_ = targetCase_; result.target_ = this.target_; - if (targetCase_ == 3 && - timeTargetBuilder_ != null) { + if (targetCase_ == 3 && timeTargetBuilder_ != null) { result.target_ = timeTargetBuilder_.build(); } } @@ -664,38 +741,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekSubscripti 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.cloud.pubsublite.proto.SeekSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -703,24 +781,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getTargetCase()) { - case NAMED_TARGET: { - setNamedTargetValue(other.getNamedTargetValue()); - break; - } - case TIME_TARGET: { - mergeTimeTarget(other.getTimeTarget()); - break; - } - case TARGET_NOT_SET: { - break; - } + case NAMED_TARGET: + { + setNamedTargetValue(other.getNamedTargetValue()); + break; + } + case TIME_TARGET: + { + mergeTimeTarget(other.getTimeTarget()); + break; + } + case TARGET_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -748,30 +830,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - int rawValue = input.readEnum(); - targetCase_ = 2; - target_ = rawValue; - break; - } // case 16 - case 26: { - input.readMessage( - getTimeTargetFieldBuilder().getBuilder(), - extensionRegistry); - targetCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int rawValue = input.readEnum(); + targetCase_ = 2; + target_ = rawValue; + break; + } // case 16 + case 26: + { + input.readMessage(getTimeTargetFieldBuilder().getBuilder(), extensionRegistry); + targetCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -781,12 +865,12 @@ public Builder mergeFrom( } // finally return this; } + private int targetCase_ = 0; private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } public Builder clearTarget() { @@ -800,18 +884,22 @@ public Builder clearTarget() { private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the subscription to seek.
      * 
* - * 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; @@ -820,20 +908,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription to seek.
      * 
* - * 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 { @@ -841,28 +932,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription to seek.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the subscription to seek.
      * 
* - * 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() { @@ -872,17 +974,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the subscription to seek.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -891,11 +999,15 @@ public Builder setNameBytes( } /** + * + * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * + * * @return Whether the namedTarget field is set. */ @java.lang.Override @@ -903,11 +1015,15 @@ public boolean hasNamedTarget() { return targetCase_ == 2; } /** + * + * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * + * * @return The enum numeric value on the wire for namedTarget. */ @java.lang.Override @@ -918,11 +1034,15 @@ public int getNamedTargetValue() { return 0; } /** + * + * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * + * * @param value The enum numeric value on the wire for namedTarget to set. * @return This builder for chaining. */ @@ -933,32 +1053,45 @@ public Builder setNamedTargetValue(int value) { return this; } /** + * + * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * + * * @return The namedTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget getNamedTarget() { if (targetCase_ == 2) { - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED : result; + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null + ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED + : result; } - return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; + return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget + .NAMED_TARGET_UNSPECIFIED; } /** + * + * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * + * * @param value The namedTarget to set. * @return This builder for chaining. */ - public Builder setNamedTarget(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget value) { + public Builder setNamedTarget( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget value) { if (value == null) { throw new NullPointerException(); } @@ -968,11 +1101,15 @@ public Builder setNamedTarget(com.google.cloud.pubsublite.proto.SeekSubscription return this; } /** + * + * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * + * * @return This builder for chaining. */ public Builder clearNamedTarget() { @@ -985,8 +1122,13 @@ public Builder clearNamedTarget() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> timeTargetBuilder_; + com.google.cloud.pubsublite.proto.TimeTarget, + com.google.cloud.pubsublite.proto.TimeTarget.Builder, + com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> + timeTargetBuilder_; /** + * + * *
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -994,6 +1136,7 @@ public Builder clearNamedTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return Whether the timeTarget field is set. */ @java.lang.Override @@ -1001,6 +1144,8 @@ public boolean hasTimeTarget() { return targetCase_ == 3; } /** + * + * *
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1008,6 +1153,7 @@ public boolean hasTimeTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return The timeTarget. */ @java.lang.Override @@ -1025,6 +1171,8 @@ public com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget() { } } /** + * + * *
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1047,6 +1195,8 @@ public Builder setTimeTarget(com.google.cloud.pubsublite.proto.TimeTarget value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1067,6 +1217,8 @@ public Builder setTimeTarget(
       return this;
     }
     /**
+     *
+     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1077,10 +1229,13 @@ public Builder setTimeTarget(
      */
     public Builder mergeTimeTarget(com.google.cloud.pubsublite.proto.TimeTarget value) {
       if (timeTargetBuilder_ == null) {
-        if (targetCase_ == 3 &&
-            target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) {
-          target_ = com.google.cloud.pubsublite.proto.TimeTarget.newBuilder((com.google.cloud.pubsublite.proto.TimeTarget) target_)
-              .mergeFrom(value).buildPartial();
+        if (targetCase_ == 3
+            && target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) {
+          target_ =
+              com.google.cloud.pubsublite.proto.TimeTarget.newBuilder(
+                      (com.google.cloud.pubsublite.proto.TimeTarget) target_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           target_ = value;
         }
@@ -1096,6 +1251,8 @@ public Builder mergeTimeTarget(com.google.cloud.pubsublite.proto.TimeTarget valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1121,6 +1278,8 @@ public Builder clearTimeTarget() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1133,6 +1292,8 @@ public com.google.cloud.pubsublite.proto.TimeTarget.Builder getTimeTargetBuilder
       return getTimeTargetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1153,6 +1314,8 @@ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1162,14 +1325,19 @@ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuil
      * .google.cloud.pubsublite.v1.TimeTarget time_target = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> 
+            com.google.cloud.pubsublite.proto.TimeTarget,
+            com.google.cloud.pubsublite.proto.TimeTarget.Builder,
+            com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>
         getTimeTargetFieldBuilder() {
       if (timeTargetBuilder_ == null) {
         if (!(targetCase_ == 3)) {
           target_ = com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance();
         }
-        timeTargetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>(
+        timeTargetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.TimeTarget,
+                com.google.cloud.pubsublite.proto.TimeTarget.Builder,
+                com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>(
                 (com.google.cloud.pubsublite.proto.TimeTarget) target_,
                 getParentForChildren(),
                 isClean());
@@ -1179,9 +1347,9 @@ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuil
       onChanged();
       return timeTargetBuilder_;
     }
+
     @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);
     }
 
@@ -1191,12 +1359,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekSubscriptionRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekSubscriptionRequest)
   private static final com.google.cloud.pubsublite.proto.SeekSubscriptionRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekSubscriptionRequest();
   }
@@ -1205,27 +1373,27 @@ public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SeekSubscriptionRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SeekSubscriptionRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1240,6 +1408,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
index 405bf5bfb..290895611 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
@@ -1,61 +1,97 @@
+/*
+ * 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/cloud/pubsublite/v1/admin.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface SeekSubscriptionRequestOrBuilder extends
+public interface SeekSubscriptionRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekSubscriptionRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The name of the subscription to seek.
    * 
* - * 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 subscription to seek.
    * 
* - * 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(); /** + * + * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * * @return Whether the namedTarget field is set. */ boolean hasNamedTarget(); /** + * + * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * * @return The enum numeric value on the wire for namedTarget. */ int getNamedTargetValue(); /** + * + * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; + * * @return The namedTarget. */ com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget getNamedTarget(); /** + * + * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -63,10 +99,13 @@ public interface SeekSubscriptionRequestOrBuilder extends
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return Whether the timeTarget field is set. */ boolean hasTimeTarget(); /** + * + * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -74,10 +113,13 @@ public interface SeekSubscriptionRequestOrBuilder extends
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return The timeTarget. */ com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget(); /** + * + * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
similarity index 61%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
index 41dd6e7db..aa3cd85a3 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
@@ -1,53 +1,72 @@
+/*
+ * 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/cloud/pubsublite/v1/admin.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Response for SeekSubscription long running operation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionResponse} */ -public final class SeekSubscriptionResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SeekSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SeekSubscriptionResponse) SeekSubscriptionResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SeekSubscriptionResponse.newBuilder() to construct. private SeekSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SeekSubscriptionResponse() { - } + + private SeekSubscriptionResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SeekSubscriptionResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.cloud.pubsublite.proto.SeekSubscriptionResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse other = (com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) obj; + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse other = + (com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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 SeekSubscription long running operation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionResponse} */ - 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.cloud.pubsublite.v1.SeekSubscriptionResponse) com.google.cloud.pubsublite.proto.SeekSubscriptionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse buildPartial() { - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse result = new com.google.cloud.pubsublite.proto.SeekSubscriptionResponse(this); + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse result = + new com.google.cloud.pubsublite.proto.SeekSubscriptionResponse(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse 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.cloud.pubsublite.proto.SeekSubscriptionResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekSubscriptionResponse other) { - if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekSubscriptionResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekSubscriptionResponse) private static final com.google.cloud.pubsublite.proto.SeekSubscriptionResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekSubscriptionResponse(); } @@ -369,27 +399,27 @@ public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeekSubscriptionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeekSubscriptionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java new file mode 100644 index 000000000..833d8b1bf --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface SeekSubscriptionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekSubscriptionResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java index 12e9529e8..e37e44c14 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Streaming request to update the committed cursor. Subsequent
  * SequencedCommitCursorRequests override outstanding ones.
@@ -11,51 +28,55 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorRequest}
  */
-public final class SequencedCommitCursorRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SequencedCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedCommitCursorRequest)
     SequencedCommitCursorRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SequencedCommitCursorRequest.newBuilder() to construct.
   private SequencedCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SequencedCommitCursorRequest() {
-  }
+
+  private SequencedCommitCursorRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SequencedCommitCursorRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CursorProto
+        .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CursorProto
+        .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class,
+            com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
   }
 
   public static final int CURSOR_FIELD_NUMBER = 1;
   private com.google.cloud.pubsublite.proto.Cursor cursor_;
   /**
+   *
+   *
    * 
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -63,18 +84,25 @@ public boolean hasCursor() { return cursor_ != null; } /** + * + * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } /** + * + * *
    * The new value for the committed cursor.
    * 
@@ -83,10 +111,13 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +129,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 (cursor_ != null) { output.writeMessage(1, getCursor()); } @@ -113,8 +143,7 @@ public int getSerializedSize() { size = 0; if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -124,17 +153,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.cloud.pubsublite.proto.SequencedCommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest other = (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest other = + (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor() - .equals(other.getCursor())) return false; + if (!getCursor().equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -157,96 +186,104 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest 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.cloud.pubsublite.proto.SequencedCommitCursorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest 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; } /** + * + * *
    * Streaming request to update the committed cursor. Subsequent
    * SequencedCommitCursorRequests override outstanding ones.
@@ -254,33 +291,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorRequest}
    */
-  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.cloud.pubsublite.v1.SequencedCommitCursorRequest)
       com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CursorProto
+          .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CursorProto
+          .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class,
+              com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -294,13 +330,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CursorProto
+          .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getDefaultInstanceForType() {
+    public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance();
     }
 
@@ -315,18 +352,20 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result = new com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result =
+          new com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result) {
+    private void buildPartial0(
+        com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.cursor_ = cursorBuilder_ == null
-            ? cursor_
-            : cursorBuilder_.build();
+        result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build();
       }
     }
 
@@ -334,38 +373,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedCommitCurs
     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.cloud.pubsublite.proto.SequencedCommitCursorRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -373,7 +413,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance())
+        return this;
       if (other.hasCursor()) {
         mergeCursor(other.getCursor());
       }
@@ -403,19 +445,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getCursorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,38 +467,52 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.pubsublite.proto.Cursor cursor_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_;
+            com.google.cloud.pubsublite.proto.Cursor,
+            com.google.cloud.pubsublite.proto.Cursor.Builder,
+            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        cursorBuilder_;
     /**
+     *
+     *
      * 
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } else { return cursorBuilder_.getMessage(); } } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -477,14 +533,15 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ - public Builder setCursor( - com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -495,6 +552,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -503,9 +562,9 @@ public Builder setCursor( */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - cursor_ != null && - cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && cursor_ != null + && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -518,6 +577,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -535,6 +596,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -547,6 +610,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -557,11 +622,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null ? - com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -569,21 +637,24 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), - getParentForChildren(), - isClean()); + cursorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), getParentForChildren(), isClean()); cursor_ = null; } return cursorBuilder_; } + @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); } @@ -593,41 +664,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SequencedCommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SequencedCommitCursorRequest) - private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest(); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequencedCommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequencedCommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,9 +712,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java index ad9be1cdc..c91ba2d0e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface SequencedCommitCursorRequestOrBuilder extends +public interface SequencedCommitCursorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedCommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** + * + * *
    * The new value for the committed cursor.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java index cd8e74666..fb73a25fb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java @@ -1,55 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response to a SequencedCommitCursorRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorResponse} */ -public final class SequencedCommitCursorResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SequencedCommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) SequencedCommitCursorResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SequencedCommitCursorResponse.newBuilder() to construct. private SequencedCommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SequencedCommitCursorResponse() { - } + + private SequencedCommitCursorResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SequencedCommitCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); } public static final int ACKNOWLEDGED_COMMITS_FIELD_NUMBER = 1; private long acknowledgedCommits_ = 0L; /** + * + * *
    * The number of outstanding SequencedCommitCursorRequests acknowledged by
    * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -57,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * int64 acknowledged_commits = 1; + * * @return The acknowledgedCommits. */ @java.lang.Override @@ -65,6 +86,7 @@ public long getAcknowledgedCommits() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -76,8 +98,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 (acknowledgedCommits_ != 0L) { output.writeInt64(1, acknowledgedCommits_); } @@ -91,8 +112,7 @@ public int getSerializedSize() { size = 0; if (acknowledgedCommits_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, acknowledgedCommits_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, acknowledgedCommits_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -102,15 +122,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.cloud.pubsublite.proto.SequencedCommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other = (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other = + (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) obj; - if (getAcknowledgedCommits() - != other.getAcknowledgedCommits()) return false; + if (getAcknowledgedCommits() != other.getAcknowledgedCommits()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -123,137 +143,143 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACKNOWLEDGED_COMMITS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAcknowledgedCommits()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcknowledgedCommits()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse 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.cloud.pubsublite.proto.SequencedCommitCursorResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse 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 to a SequencedCommitCursorRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorResponse} */ - 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.cloud.pubsublite.v1.SequencedCommitCursorResponse) com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -263,13 +289,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } @@ -284,13 +311,17 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result = new com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result = + new com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.acknowledgedCommits_ = acknowledgedCommits_; @@ -301,46 +332,50 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedCommitCurs 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.cloud.pubsublite.proto.SequencedCommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other) { - if (other == com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other) { + if (other + == com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance()) + return this; if (other.getAcknowledgedCommits() != 0L) { setAcknowledgedCommits(other.getAcknowledgedCommits()); } @@ -370,17 +405,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - acknowledgedCommits_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + acknowledgedCommits_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -390,10 +427,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long acknowledgedCommits_ ; + private long acknowledgedCommits_; /** + * + * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -401,6 +441,7 @@ public Builder mergeFrom(
      * 
* * int64 acknowledged_commits = 1; + * * @return The acknowledgedCommits. */ @java.lang.Override @@ -408,6 +449,8 @@ public long getAcknowledgedCommits() { return acknowledgedCommits_; } /** + * + * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -415,17 +458,20 @@ public long getAcknowledgedCommits() {
      * 
* * int64 acknowledged_commits = 1; + * * @param value The acknowledgedCommits to set. * @return This builder for chaining. */ public Builder setAcknowledgedCommits(long value) { - + acknowledgedCommits_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -433,6 +479,7 @@ public Builder setAcknowledgedCommits(long value) {
      * 
* * int64 acknowledged_commits = 1; + * * @return This builder for chaining. */ public Builder clearAcknowledgedCommits() { @@ -441,9 +488,9 @@ public Builder clearAcknowledgedCommits() { 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); } @@ -453,41 +500,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) - private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse(); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequencedCommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequencedCommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -499,9 +548,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java new file mode 100644 index 000000000..72fd81666 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java @@ -0,0 +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/cloud/pubsublite/v1/cursor.proto + +package com.google.cloud.pubsublite.proto; + +public interface SequencedCommitCursorResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of outstanding SequencedCommitCursorRequests acknowledged by
+   * this response. Note that SequencedCommitCursorRequests are acknowledged in
+   * the order that they are received.
+   * 
+ * + * int64 acknowledged_commits = 1; + * + * @return The acknowledgedCommits. + */ + long getAcknowledgedCommits(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java index d9f1a014e..0523b4a6f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java @@ -1,60 +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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * A message that has been stored and sequenced by the Pub/Sub Lite system.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedMessage} */ -public final class SequencedMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SequencedMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedMessage) SequencedMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SequencedMessage.newBuilder() to construct. private SequencedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SequencedMessage() { - } + + private SequencedMessage() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SequencedMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedMessage.class, com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); + com.google.cloud.pubsublite.proto.SequencedMessage.class, + com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); } public static final int CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** + * + * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasCursor() { return cursor_ != null; } /** + * + * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } /** + * + * *
    * The position of a message within the partition where it is stored.
    * 
@@ -82,18 +110,23 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } public static final int PUBLISH_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp publishTime_; /** + * + * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; + * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -101,12 +134,15 @@ public boolean hasPublishTime() { return publishTime_ != null; } /** + * + * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; + * * @return The publishTime. */ @java.lang.Override @@ -114,6 +150,8 @@ public com.google.protobuf.Timestamp getPublishTime() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } /** + * + * *
    * The time when the message was received by the server when it was first
    * published.
@@ -129,11 +167,14 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
   public static final int MESSAGE_FIELD_NUMBER = 3;
   private com.google.cloud.pubsublite.proto.PubSubMessage message_;
   /**
+   *
+   *
    * 
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; + * * @return Whether the message field is set. */ @java.lang.Override @@ -141,18 +182,25 @@ public boolean hasMessage() { return message_ != null; } /** + * + * *
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; + * * @return The message. */ @java.lang.Override public com.google.cloud.pubsublite.proto.PubSubMessage getMessage() { - return message_ == null ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; + return message_ == null + ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() + : message_; } /** + * + * *
    * The user message.
    * 
@@ -161,17 +209,22 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessage() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuilder() { - return message_ == null ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; + return message_ == null + ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() + : message_; } public static final int SIZE_BYTES_FIELD_NUMBER = 4; private long sizeBytes_ = 0L; /** + * + * *
    * The size in bytes of this message for flow control and quota purposes.
    * 
* * int64 size_bytes = 4; + * * @return The sizeBytes. */ @java.lang.Override @@ -180,6 +233,7 @@ public long getSizeBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,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 (cursor_ != null) { output.writeMessage(1, getCursor()); } @@ -215,20 +268,16 @@ public int getSerializedSize() { size = 0; if (cursor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); } if (publishTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPublishTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPublishTime()); } if (message_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMessage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessage()); } if (sizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, sizeBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, sizeBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,30 +287,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.cloud.pubsublite.proto.SequencedMessage)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SequencedMessage other = (com.google.cloud.pubsublite.proto.SequencedMessage) obj; + com.google.cloud.pubsublite.proto.SequencedMessage other = + (com.google.cloud.pubsublite.proto.SequencedMessage) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor() - .equals(other.getCursor())) return false; + if (!getCursor().equals(other.getCursor())) 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 (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; } - if (getSizeBytes() - != other.getSizeBytes()) return false; + if (getSizeBytes() != other.getSizeBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -286,137 +332,142 @@ public int hashCode() { hash = (53 * hash) + getMessage().hashCode(); } hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SequencedMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage 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.cloud.pubsublite.proto.SequencedMessage 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 has been stored and sequenced by the Pub/Sub Lite system.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedMessage} */ - 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.cloud.pubsublite.v1.SequencedMessage) com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedMessage.class, com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); + com.google.cloud.pubsublite.proto.SequencedMessage.class, + com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SequencedMessage.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; } @java.lang.Override @@ -462,8 +513,11 @@ public com.google.cloud.pubsublite.proto.SequencedMessage build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedMessage buildPartial() { - com.google.cloud.pubsublite.proto.SequencedMessage result = new com.google.cloud.pubsublite.proto.SequencedMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.SequencedMessage result = + new com.google.cloud.pubsublite.proto.SequencedMessage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -471,19 +525,14 @@ public com.google.cloud.pubsublite.proto.SequencedMessage buildPartial() { private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.publishTime_ = publishTimeBuilder_ == null - ? publishTime_ - : publishTimeBuilder_.build(); + result.publishTime_ = + publishTimeBuilder_ == null ? publishTime_ : publishTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.message_ = messageBuilder_ == null - ? message_ - : messageBuilder_.build(); + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.sizeBytes_ = sizeBytes_; @@ -494,38 +543,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedMessage re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SequencedMessage) { - return mergeFrom((com.google.cloud.pubsublite.proto.SequencedMessage)other); + return mergeFrom((com.google.cloud.pubsublite.proto.SequencedMessage) other); } else { super.mergeFrom(other); return this; @@ -533,7 +583,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SequencedMessage other) { - if (other == com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()) + return this; if (other.hasCursor()) { mergeCursor(other.getCursor()); } @@ -572,38 +623,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getPublishTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getMessageFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - sizeBytes_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -613,38 +663,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + cursorBuilder_; /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } else { return cursorBuilder_.getMessage(); } } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -665,14 +729,15 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ - public Builder setCursor( - com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -683,6 +748,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -691,9 +758,9 @@ public Builder setCursor( */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - cursor_ != null && - cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && cursor_ != null + && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -706,6 +773,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -723,6 +792,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -735,6 +806,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -745,11 +818,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null ? - com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; + return cursor_ == null + ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() + : cursor_; } } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -757,14 +833,17 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), - getParentForChildren(), - isClean()); + cursorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), getParentForChildren(), isClean()); cursor_ = null; } return cursorBuilder_; @@ -772,36 +851,49 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { 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 when the message was received by the server when it was first
      * published.
      * 
* * .google.protobuf.Timestamp publish_time = 2; + * * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time when the message was received by the server when it was first
      * published.
      * 
* * .google.protobuf.Timestamp publish_time = 2; + * * @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 when the message was received by the server when it was first
      * published.
@@ -823,6 +915,8 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -830,8 +924,7 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp publish_time = 2;
      */
-    public Builder setPublishTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (publishTimeBuilder_ == null) {
         publishTime_ = builderForValue.build();
       } else {
@@ -842,6 +935,8 @@ public Builder setPublishTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -851,9 +946,9 @@ public Builder setPublishTime(
      */
     public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          publishTime_ != null &&
-          publishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && publishTime_ != null
+            && publishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getPublishTimeBuilder().mergeFrom(value);
         } else {
           publishTime_ = value;
@@ -866,6 +961,8 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -884,6 +981,8 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -897,6 +996,8 @@ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
       return getPublishTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -908,11 +1009,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 when the message was received by the server when it was first
      * published.
@@ -921,14 +1025,17 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp publish_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>
         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_;
@@ -936,34 +1043,47 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
 
     private com.google.cloud.pubsublite.proto.PubSubMessage message_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> messageBuilder_;
+            com.google.cloud.pubsublite.proto.PubSubMessage,
+            com.google.cloud.pubsublite.proto.PubSubMessage.Builder,
+            com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>
+        messageBuilder_;
     /**
+     *
+     *
      * 
      * The user message.
      * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; + * * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The user message.
      * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; + * * @return The message. */ public com.google.cloud.pubsublite.proto.PubSubMessage getMessage() { if (messageBuilder_ == null) { - return message_ == null ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; + return message_ == null + ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() + : message_; } else { return messageBuilder_.getMessage(); } } /** + * + * *
      * The user message.
      * 
@@ -984,6 +1104,8 @@ public Builder setMessage(com.google.cloud.pubsublite.proto.PubSubMessage value) return this; } /** + * + * *
      * The user message.
      * 
@@ -1002,6 +1124,8 @@ public Builder setMessage( return this; } /** + * + * *
      * The user message.
      * 
@@ -1010,9 +1134,9 @@ public Builder setMessage( */ public Builder mergeMessage(com.google.cloud.pubsublite.proto.PubSubMessage value) { if (messageBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - message_ != null && - message_ != com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && message_ != null + && message_ != com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) { getMessageBuilder().mergeFrom(value); } else { message_ = value; @@ -1025,6 +1149,8 @@ public Builder mergeMessage(com.google.cloud.pubsublite.proto.PubSubMessage valu return this; } /** + * + * *
      * The user message.
      * 
@@ -1042,6 +1168,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * The user message.
      * 
@@ -1054,6 +1182,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessageBuilder return getMessageFieldBuilder().getBuilder(); } /** + * + * *
      * The user message.
      * 
@@ -1064,11 +1194,14 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuil if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { - return message_ == null ? - com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; + return message_ == null + ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() + : message_; } } /** + * + * *
      * The user message.
      * 
@@ -1076,26 +1209,32 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuil * .google.cloud.pubsublite.v1.PubSubMessage message = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> + com.google.cloud.pubsublite.proto.PubSubMessage, + com.google.cloud.pubsublite.proto.PubSubMessage.Builder, + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( - getMessage(), - getParentForChildren(), - isClean()); + messageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.PubSubMessage, + com.google.cloud.pubsublite.proto.PubSubMessage.Builder, + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( + getMessage(), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; } - private long sizeBytes_ ; + private long sizeBytes_; /** + * + * *
      * The size in bytes of this message for flow control and quota purposes.
      * 
* * int64 size_bytes = 4; + * * @return The sizeBytes. */ @java.lang.Override @@ -1103,27 +1242,33 @@ public long getSizeBytes() { return sizeBytes_; } /** + * + * *
      * The size in bytes of this message for flow control and quota purposes.
      * 
* * int64 size_bytes = 4; + * * @param value The sizeBytes to set. * @return This builder for chaining. */ public Builder setSizeBytes(long value) { - + sizeBytes_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The size in bytes of this message for flow control and quota purposes.
      * 
* * int64 size_bytes = 4; + * * @return This builder for chaining. */ public Builder clearSizeBytes() { @@ -1132,9 +1277,9 @@ public Builder clearSizeBytes() { 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); } @@ -1144,12 +1289,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SequencedMessage) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SequencedMessage) private static final com.google.cloud.pubsublite.proto.SequencedMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SequencedMessage(); } @@ -1158,27 +1303,27 @@ public static com.google.cloud.pubsublite.proto.SequencedMessage getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequencedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequencedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1193,6 +1338,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SequencedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java index 8128316c7..f9db9fdd3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface SequencedMessageOrBuilder extends +public interface SequencedMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** + * + * *
    * The position of a message within the partition where it is stored.
    * 
@@ -35,26 +59,34 @@ public interface SequencedMessageOrBuilder extends com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder(); /** + * + * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; + * * @return Whether the publishTime field is set. */ boolean hasPublishTime(); /** + * + * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; + * * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); /** + * + * *
    * The time when the message was received by the server when it was first
    * published.
@@ -65,24 +97,32 @@ public interface SequencedMessageOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; + * * @return Whether the message field is set. */ boolean hasMessage(); /** + * + * *
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; + * * @return The message. */ com.google.cloud.pubsublite.proto.PubSubMessage getMessage(); /** + * + * *
    * The user message.
    * 
@@ -92,11 +132,14 @@ public interface SequencedMessageOrBuilder extends com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuilder(); /** + * + * *
    * The size in bytes of this message for flow control and quota purposes.
    * 
* * int64 size_bytes = 4; + * * @return The sizeBytes. */ long getSizeBytes(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java index 68c1139ed..ba4a8798a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java @@ -1,61 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * A request sent from the client to the server on a stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorRequest} */ -public final class StreamingCommitCursorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamingCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) StreamingCommitCursorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamingCommitCursorRequest.newBuilder() to construct. private StreamingCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamingCommitCursorRequest() { - } + + private StreamingCommitCursorRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingCommitCursorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; + public enum RequestCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), COMMIT(2), REQUEST_NOT_SET(0); private final int value; + private RequestCase(int value) { this.value = value; } @@ -71,30 +92,36 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: return INITIAL; - case 2: return COMMIT; - case 0: return REQUEST_NOT_SET; - default: return null; + case 1: + return INITIAL; + case 2: + return COMMIT; + case 0: + return REQUEST_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -102,21 +129,26 @@ public boolean hasInitial() { return requestCase_ == 1; } /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; + * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); } /** + * + * *
    * Initial request on the stream.
    * 
@@ -124,20 +156,24 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder + getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 2; /** + * + * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; + * * @return Whether the commit field is set. */ @java.lang.Override @@ -145,21 +181,26 @@ public boolean hasCommit() { return requestCase_ == 2; } /** + * + * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; + * * @return The commit. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); } /** + * + * *
    * Request to commit a new cursor value.
    * 
@@ -167,14 +208,16 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit( * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder + getCommitOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,13 +229,14 @@ 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 (requestCase_ == 1) { - output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); + output.writeMessage( + 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); } if (requestCase_ == 2) { - output.writeMessage(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); + output.writeMessage( + 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); } getUnknownFields().writeTo(output); } @@ -204,12 +248,14 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); } if (requestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,22 +265,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.cloud.pubsublite.proto.StreamingCommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest other = (com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest other = + (com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial() - .equals(other.getInitial())) return false; + if (!getInitial().equals(other.getInitial())) return false; break; case 2: - if (!getCommit() - .equals(other.getCommit())) return false; + if (!getCommit().equals(other.getCommit())) return false; break; case 0: default: @@ -268,129 +313,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest 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.cloud.pubsublite.proto.StreamingCommitCursorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest 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 request sent from the client to the server on a stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorRequest} */ - 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.cloud.pubsublite.v1.StreamingCommitCursorRequest) com.google.cloud.pubsublite.proto.StreamingCommitCursorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -407,13 +459,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance(); } @@ -428,26 +481,29 @@ public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest buildPartial() { - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result = new com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result = + new com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { + private void buildPartialOneofs( + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && - initialBuilder_ != null) { + if (requestCase_ == 1 && initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && - commitBuilder_ != null) { + if (requestCase_ == 2 && commitBuilder_ != null) { result.request_ = commitBuilder_.build(); } } @@ -456,38 +512,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.StreamingCommi 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.cloud.pubsublite.proto.StreamingCommitCursorRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) other); } else { super.mergeFrom(other); return this; @@ -495,19 +552,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest other) { - if (other == com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance()) + return this; switch (other.getRequestCase()) { - case INITIAL: { - mergeInitial(other.getInitial()); - break; - } - case COMMIT: { - mergeCommit(other.getCommit()); - break; - } - case REQUEST_NOT_SET: { - break; - } + case INITIAL: + { + mergeInitial(other.getInitial()); + break; + } + case COMMIT: + { + mergeCommit(other.getCommit()); + break; + } + case REQUEST_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -535,26 +597,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getInitialFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getCommitFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCommitFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,12 +625,12 @@ public Builder mergeFrom( } // finally return this; } + private int requestCase_ = 0; private java.lang.Object request_; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public Builder clearRequest() { @@ -582,13 +643,19 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> initialBuilder_; + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, + com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> + initialBuilder_; /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -596,11 +663,14 @@ public boolean hasInitial() { return requestCase_ == 1; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; + * * @return The initial. */ @java.lang.Override @@ -618,6 +688,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -638,6 +710,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -656,18 +730,26 @@ public Builder setInitial( return this; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ - public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest value) { + public Builder mergeInitial( + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 && - request_ != com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance()) { - request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 1 + && request_ + != com.google.cloud.pubsublite.proto.InitialCommitCursorRequest + .getDefaultInstance()) { + request_ = + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.newBuilder( + (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -683,6 +765,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCurso return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -706,16 +790,21 @@ public Builder clearInitial() { return this; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ - public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder getInitialBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder + getInitialBuilder() { return getInitialFieldBuilder().getBuilder(); } /** + * + * *
      * Initial request on the stream.
      * 
@@ -723,7 +812,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder getI * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder + getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -734,6 +824,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder get } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -741,14 +833,20 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder get * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, + com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { - request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); + request_ = + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); } - initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder>( + initialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, + com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_, getParentForChildren(), isClean()); @@ -760,13 +858,19 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder get } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> commitBuilder_; + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> + commitBuilder_; /** + * + * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; + * * @return Whether the commit field is set. */ @java.lang.Override @@ -774,11 +878,14 @@ public boolean hasCommit() { return requestCase_ == 2; } /** + * + * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; + * * @return The commit. */ @java.lang.Override @@ -796,6 +903,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit( } } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -816,6 +925,8 @@ public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursor return this; } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -834,18 +945,26 @@ public Builder setCommit( return this; } /** + * + * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ - public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest value) { + public Builder mergeCommit( + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest value) { if (commitBuilder_ == null) { - if (requestCase_ == 2 && - request_ != com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance()) { - request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.newBuilder((com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 2 + && request_ + != com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest + .getDefaultInstance()) { + request_ = + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.newBuilder( + (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -861,6 +980,8 @@ public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCurs return this; } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -884,16 +1005,21 @@ public Builder clearCommit() { return this; } /** + * + * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder getCommitBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder + getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -901,7 +1027,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder ge * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder + getCommitOrBuilder() { if ((requestCase_ == 2) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { @@ -912,6 +1039,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder g } } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -919,14 +1048,20 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder g * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(requestCase_ == 2)) { - request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); + request_ = + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); } - commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder>( + commitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder>( (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_, getParentForChildren(), isClean()); @@ -936,9 +1071,9 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder g onChanged(); return commitBuilder_; } + @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); } @@ -948,41 +1083,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) - private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest(); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingCommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingCommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,9 +1131,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java index d1369a32c..dc928ed1b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface StreamingCommitCursorRequestOrBuilder extends +public interface StreamingCommitCursorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; + * * @return Whether the initial field is set. */ boolean hasInitial(); /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; + * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial(); /** + * + * *
    * Initial request on the stream.
    * 
@@ -35,24 +59,32 @@ public interface StreamingCommitCursorRequestOrBuilder extends com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder getInitialOrBuilder(); /** + * + * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; + * * @return Whether the commit field is set. */ boolean hasCommit(); /** + * + * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; + * * @return The commit. */ com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit(); /** + * + * *
    * Request to commit a new cursor value.
    * 
@@ -61,5 +93,6 @@ public interface StreamingCommitCursorRequestOrBuilder extends */ com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder getCommitOrBuilder(); - public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.RequestCase getRequestCase(); + public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.RequestCase + getRequestCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java index 0b8ae18a1..ba8c0fb27 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java @@ -1,61 +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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response to a StreamingCommitCursorRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorResponse} */ -public final class StreamingCommitCursorResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamingCommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) StreamingCommitCursorResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamingCommitCursorResponse.newBuilder() to construct. private StreamingCommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamingCommitCursorResponse() { - } + + private StreamingCommitCursorResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingCommitCursorResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; + public enum RequestCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), COMMIT(2), REQUEST_NOT_SET(0); private final int value; + private RequestCase(int value) { this.value = value; } @@ -71,30 +92,36 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: return INITIAL; - case 2: return COMMIT; - case 0: return REQUEST_NOT_SET; - default: return null; + case 1: + return INITIAL; + case 2: + return COMMIT; + case 0: + return REQUEST_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -102,21 +129,26 @@ public boolean hasInitial() { return requestCase_ == 1; } /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; + * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } /** + * + * *
    * Initial response on the stream.
    * 
@@ -124,20 +156,24 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial( * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder + getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 2; /** + * + * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; + * * @return Whether the commit field is set. */ @java.lang.Override @@ -145,21 +181,26 @@ public boolean hasCommit() { return requestCase_ == 2; } /** + * + * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; + * * @return The commit. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } /** + * + * *
    * Response to committing a new cursor value.
    * 
@@ -167,14 +208,16 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder + getCommitOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,13 +229,14 @@ 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 (requestCase_ == 1) { - output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); + output.writeMessage( + 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); } if (requestCase_ == 2) { - output.writeMessage(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); + output.writeMessage( + 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); } getUnknownFields().writeTo(output); } @@ -204,12 +248,14 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); } if (requestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,22 +265,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.cloud.pubsublite.proto.StreamingCommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other = (com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other = + (com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial() - .equals(other.getInitial())) return false; + if (!getInitial().equals(other.getInitial())) return false; break; case 2: - if (!getCommit() - .equals(other.getCommit())) return false; + if (!getCommit().equals(other.getCommit())) return false; break; case 0: default: @@ -268,129 +313,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse 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.cloud.pubsublite.proto.StreamingCommitCursorResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse 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 to a StreamingCommitCursorRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorResponse} */ - 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.cloud.pubsublite.v1.StreamingCommitCursorResponse) com.google.cloud.pubsublite.proto.StreamingCommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -407,13 +459,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance(); } @@ -428,26 +481,29 @@ public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result = new com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result = + new com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { + private void buildPartialOneofs( + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && - initialBuilder_ != null) { + if (requestCase_ == 1 && initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && - commitBuilder_ != null) { + if (requestCase_ == 2 && commitBuilder_ != null) { result.request_ = commitBuilder_.build(); } } @@ -456,58 +512,65 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.StreamingCommi 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.cloud.pubsublite.proto.StreamingCommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other) { - if (other == com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other) { + if (other + == com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance()) + return this; switch (other.getRequestCase()) { - case INITIAL: { - mergeInitial(other.getInitial()); - break; - } - case COMMIT: { - mergeCommit(other.getCommit()); - break; - } - case REQUEST_NOT_SET: { - break; - } + case INITIAL: + { + mergeInitial(other.getInitial()); + break; + } + case COMMIT: + { + mergeCommit(other.getCommit()); + break; + } + case REQUEST_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -535,26 +598,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getInitialFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getCommitFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCommitFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,12 +626,12 @@ public Builder mergeFrom( } // finally return this; } + private int requestCase_ = 0; private java.lang.Object request_; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public Builder clearRequest() { @@ -582,13 +644,19 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> initialBuilder_; + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, + com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> + initialBuilder_; /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -596,11 +664,14 @@ public boolean hasInitial() { return requestCase_ == 1; } /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; + * * @return The initial. */ @java.lang.Override @@ -618,6 +689,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial( } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -638,6 +711,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -656,18 +731,26 @@ public Builder setInitial( return this; } /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ - public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorResponse value) { + public Builder mergeInitial( + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 && - request_ != com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance()) { - request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.newBuilder((com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 1 + && request_ + != com.google.cloud.pubsublite.proto.InitialCommitCursorResponse + .getDefaultInstance()) { + request_ = + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.newBuilder( + (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -683,6 +766,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCurso return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -706,16 +791,21 @@ public Builder clearInitial() { return this; } /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder getInitialBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder + getInitialBuilder() { return getInitialFieldBuilder().getBuilder(); } /** + * + * *
      * Initial response on the stream.
      * 
@@ -723,7 +813,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder get * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder + getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -734,6 +825,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder ge } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -741,14 +834,20 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder ge * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, + com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { - request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); + request_ = + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } - initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder>( + initialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, + com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder>( (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_, getParentForChildren(), isClean()); @@ -760,13 +859,19 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder ge } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> commitBuilder_; + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> + commitBuilder_; /** + * + * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; + * * @return Whether the commit field is set. */ @java.lang.Override @@ -774,11 +879,14 @@ public boolean hasCommit() { return requestCase_ == 2; } /** + * + * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; + * * @return The commit. */ @java.lang.Override @@ -796,13 +904,16 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit } } /** + * + * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ - public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { + public Builder setCommit( + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { if (commitBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -816,6 +927,8 @@ public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursor return this; } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -834,18 +947,26 @@ public Builder setCommit( return this; } /** + * + * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ - public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { + public Builder mergeCommit( + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { if (commitBuilder_ == null) { - if (requestCase_ == 2 && - request_ != com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance()) { - request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.newBuilder((com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 2 + && request_ + != com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse + .getDefaultInstance()) { + request_ = + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.newBuilder( + (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -861,6 +982,8 @@ public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCurs return this; } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -884,16 +1007,21 @@ public Builder clearCommit() { return this; } /** + * + * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder getCommitBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder + getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -901,7 +1029,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder g * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder + getCommitOrBuilder() { if ((requestCase_ == 2) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { @@ -912,6 +1041,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder } } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -919,14 +1050,20 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(requestCase_ == 2)) { - request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); + request_ = + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } - commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder>( + commitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder>( (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_, getParentForChildren(), isClean()); @@ -936,9 +1073,9 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder onChanged(); return commitBuilder_; } + @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); } @@ -948,41 +1085,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) - private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse(); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingCommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingCommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,9 +1133,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java index c5853a513..fee1fddd7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.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/cloud/pubsublite/v1/cursor.proto package com.google.cloud.pubsublite.proto; -public interface StreamingCommitCursorResponseOrBuilder extends +public interface StreamingCommitCursorResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; + * * @return Whether the initial field is set. */ boolean hasInitial(); /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; + * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial(); /** + * + * *
    * Initial response on the stream.
    * 
@@ -35,24 +59,32 @@ public interface StreamingCommitCursorResponseOrBuilder extends com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder getInitialOrBuilder(); /** + * + * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; + * * @return Whether the commit field is set. */ boolean hasCommit(); /** + * + * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; + * * @return The commit. */ com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit(); /** + * + * *
    * Response to committing a new cursor value.
    * 
@@ -61,5 +93,6 @@ public interface StreamingCommitCursorResponseOrBuilder extends */ com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder getCommitOrBuilder(); - public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.RequestCase getRequestCase(); + public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.RequestCase + getRequestCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java index 771b035e4..4df35201a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java @@ -1,62 +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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * A request sent from the client to the server on a stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeRequest} */ -public final class SubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SubscribeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SubscribeRequest) SubscribeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubscribeRequest.newBuilder() to construct. private SubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubscribeRequest() { - } + + private SubscribeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubscribeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeRequest.class, com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeRequest.class, + com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; + public enum RequestCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), SEEK(2), FLOW_CONTROL(3), REQUEST_NOT_SET(0); private final int value; + private RequestCase(int value) { this.value = value; } @@ -72,31 +93,38 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: return INITIAL; - case 2: return SEEK; - case 3: return FLOW_CONTROL; - case 0: return REQUEST_NOT_SET; - default: return null; + case 1: + return INITIAL; + case 2: + return SEEK; + case 3: + return FLOW_CONTROL; + case 0: + return REQUEST_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -104,21 +132,26 @@ public boolean hasInitial() { return requestCase_ == 1; } /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; + * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; } return com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance(); } /** + * + * *
    * Initial request on the stream.
    * 
@@ -128,18 +161,21 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; } return com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance(); } public static final int SEEK_FIELD_NUMBER = 2; /** + * + * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; + * * @return Whether the seek field is set. */ @java.lang.Override @@ -147,21 +183,26 @@ public boolean hasSeek() { return requestCase_ == 2; } /** + * + * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; + * * @return The seek. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekRequest) request_; + return (com.google.cloud.pubsublite.proto.SeekRequest) request_; } return com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance(); } /** + * + * *
    * Request to update the stream's delivery cursor.
    * 
@@ -171,18 +212,21 @@ public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekRequest) request_; + return (com.google.cloud.pubsublite.proto.SeekRequest) request_; } return com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance(); } public static final int FLOW_CONTROL_FIELD_NUMBER = 3; /** + * + * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; + * * @return Whether the flowControl field is set. */ @java.lang.Override @@ -190,21 +234,26 @@ public boolean hasFlowControl() { return requestCase_ == 3; } /** + * + * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; + * * @return The flowControl. */ @java.lang.Override public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { if (requestCase_ == 3) { - return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; + return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; } return com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance(); } /** + * + * *
    * Request to grant tokens to the server,
    * 
@@ -214,12 +263,13 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { @java.lang.Override public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowControlOrBuilder() { if (requestCase_ == 3) { - return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; + return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; } return com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +281,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 (requestCase_ == 1) { output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); } @@ -252,16 +301,19 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); } if (requestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SeekRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.pubsublite.proto.SeekRequest) request_); } if (requestCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.pubsublite.proto.FlowControlRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.pubsublite.proto.FlowControlRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,26 +323,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.cloud.pubsublite.proto.SubscribeRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SubscribeRequest other = (com.google.cloud.pubsublite.proto.SubscribeRequest) obj; + com.google.cloud.pubsublite.proto.SubscribeRequest other = + (com.google.cloud.pubsublite.proto.SubscribeRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial() - .equals(other.getInitial())) return false; + if (!getInitial().equals(other.getInitial())) return false; break; case 2: - if (!getSeek() - .equals(other.getSeek())) return false; + if (!getSeek().equals(other.getSeek())) return false; break; case 3: - if (!getFlowControl() - .equals(other.getFlowControl())) return false; + if (!getFlowControl().equals(other.getFlowControl())) return false; break; case 0: default: @@ -328,129 +378,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SubscribeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest 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.cloud.pubsublite.proto.SubscribeRequest 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 request sent from the client to the server on a stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeRequest} */ - 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.cloud.pubsublite.v1.SubscribeRequest) com.google.cloud.pubsublite.proto.SubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeRequest.class, com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeRequest.class, + com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SubscribeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; } @java.lang.Override @@ -491,8 +547,11 @@ public com.google.cloud.pubsublite.proto.SubscribeRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SubscribeRequest buildPartial() { - com.google.cloud.pubsublite.proto.SubscribeRequest result = new com.google.cloud.pubsublite.proto.SubscribeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.SubscribeRequest result = + new com.google.cloud.pubsublite.proto.SubscribeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -505,16 +564,13 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SubscribeRequest re private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeRequest result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && - initialBuilder_ != null) { + if (requestCase_ == 1 && initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && - seekBuilder_ != null) { + if (requestCase_ == 2 && seekBuilder_ != null) { result.request_ = seekBuilder_.build(); } - if (requestCase_ == 3 && - flowControlBuilder_ != null) { + if (requestCase_ == 3 && flowControlBuilder_ != null) { result.request_ = flowControlBuilder_.build(); } } @@ -523,38 +579,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeReque 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.cloud.pubsublite.proto.SubscribeRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeRequest) other); } else { super.mergeFrom(other); return this; @@ -562,23 +619,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SubscribeRequest other) { - if (other == com.google.cloud.pubsublite.proto.SubscribeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.SubscribeRequest.getDefaultInstance()) + return this; switch (other.getRequestCase()) { - case INITIAL: { - mergeInitial(other.getInitial()); - break; - } - case SEEK: { - mergeSeek(other.getSeek()); - break; - } - case FLOW_CONTROL: { - mergeFlowControl(other.getFlowControl()); - break; - } - case REQUEST_NOT_SET: { - break; - } + case INITIAL: + { + mergeInitial(other.getInitial()); + break; + } + case SEEK: + { + mergeSeek(other.getSeek()); + break; + } + case FLOW_CONTROL: + { + mergeFlowControl(other.getFlowControl()); + break; + } + case REQUEST_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -606,33 +668,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getInitialFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getSeekFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getFlowControlFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getSeekFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getFlowControlFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,12 +702,12 @@ public Builder mergeFrom( } // finally return this; } + private int requestCase_ = 0; private java.lang.Object request_; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public Builder clearRequest() { @@ -660,13 +720,19 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeRequest, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> initialBuilder_; + com.google.cloud.pubsublite.proto.InitialSubscribeRequest, + com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, + com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> + initialBuilder_; /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -674,11 +740,14 @@ public boolean hasInitial() { return requestCase_ == 1; } /** + * + * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; + * * @return The initial. */ @java.lang.Override @@ -696,6 +765,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -716,6 +787,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRequ return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -734,6 +807,8 @@ public Builder setInitial( return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -742,10 +817,14 @@ public Builder setInitial( */ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRequest value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 && - request_ != com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance()) { - request_ = com.google.cloud.pubsublite.proto.InitialSubscribeRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 1 + && request_ + != com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance()) { + request_ = + com.google.cloud.pubsublite.proto.InitialSubscribeRequest.newBuilder( + (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -761,6 +840,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -784,6 +865,8 @@ public Builder clearInitial() { return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -794,6 +877,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit return getInitialFieldBuilder().getBuilder(); } /** + * + * *
      * Initial request on the stream.
      * 
@@ -801,7 +886,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder + getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -812,6 +898,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getIni } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -819,14 +907,19 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getIni * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeRequest, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialSubscribeRequest, + com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, + com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance(); } - initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeRequest, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder>( + initialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialSubscribeRequest, + com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, + com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_, getParentForChildren(), isClean()); @@ -838,13 +931,19 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getIni } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> seekBuilder_; + com.google.cloud.pubsublite.proto.SeekRequest, + com.google.cloud.pubsublite.proto.SeekRequest.Builder, + com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> + seekBuilder_; /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; + * * @return Whether the seek field is set. */ @java.lang.Override @@ -852,11 +951,14 @@ public boolean hasSeek() { return requestCase_ == 2; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; + * * @return The seek. */ @java.lang.Override @@ -874,6 +976,8 @@ public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { } } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -894,14 +998,15 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; */ - public Builder setSeek( - com.google.cloud.pubsublite.proto.SeekRequest.Builder builderForValue) { + public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest.Builder builderForValue) { if (seekBuilder_ == null) { request_ = builderForValue.build(); onChanged(); @@ -912,6 +1017,8 @@ public Builder setSeek( return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -920,10 +1027,13 @@ public Builder setSeek( */ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { if (seekBuilder_ == null) { - if (requestCase_ == 2 && - request_ != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { - request_ = com.google.cloud.pubsublite.proto.SeekRequest.newBuilder((com.google.cloud.pubsublite.proto.SeekRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 2 + && request_ != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { + request_ = + com.google.cloud.pubsublite.proto.SeekRequest.newBuilder( + (com.google.cloud.pubsublite.proto.SeekRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -939,6 +1049,8 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -962,6 +1074,8 @@ public Builder clearSeek() { return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -972,6 +1086,8 @@ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -990,6 +1106,8 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() } } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -997,14 +1115,19 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() * .google.cloud.pubsublite.v1.SeekRequest seek = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> + com.google.cloud.pubsublite.proto.SeekRequest, + com.google.cloud.pubsublite.proto.SeekRequest.Builder, + com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> getSeekFieldBuilder() { if (seekBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance(); } - seekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( + seekBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SeekRequest, + com.google.cloud.pubsublite.proto.SeekRequest.Builder, + com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( (com.google.cloud.pubsublite.proto.SeekRequest) request_, getParentForChildren(), isClean()); @@ -1016,13 +1139,19 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.FlowControlRequest, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> flowControlBuilder_; + com.google.cloud.pubsublite.proto.FlowControlRequest, + com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, + com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> + flowControlBuilder_; /** + * + * *
      * Request to grant tokens to the server,
      * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; + * * @return Whether the flowControl field is set. */ @java.lang.Override @@ -1030,11 +1159,14 @@ public boolean hasFlowControl() { return requestCase_ == 3; } /** + * + * *
      * Request to grant tokens to the server,
      * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; + * * @return The flowControl. */ @java.lang.Override @@ -1052,6 +1184,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { } } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1072,6 +1206,8 @@ public Builder setFlowControl(com.google.cloud.pubsublite.proto.FlowControlReque return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1090,6 +1226,8 @@ public Builder setFlowControl( return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1098,10 +1236,14 @@ public Builder setFlowControl( */ public Builder mergeFlowControl(com.google.cloud.pubsublite.proto.FlowControlRequest value) { if (flowControlBuilder_ == null) { - if (requestCase_ == 3 && - request_ != com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance()) { - request_ = com.google.cloud.pubsublite.proto.FlowControlRequest.newBuilder((com.google.cloud.pubsublite.proto.FlowControlRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 3 + && request_ + != com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance()) { + request_ = + com.google.cloud.pubsublite.proto.FlowControlRequest.newBuilder( + (com.google.cloud.pubsublite.proto.FlowControlRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -1117,6 +1259,8 @@ public Builder mergeFlowControl(com.google.cloud.pubsublite.proto.FlowControlReq return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1140,6 +1284,8 @@ public Builder clearFlowControl() { return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1150,6 +1296,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest.Builder getFlowContr return getFlowControlFieldBuilder().getBuilder(); } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1168,6 +1316,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont } } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1175,14 +1325,19 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.FlowControlRequest, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> + com.google.cloud.pubsublite.proto.FlowControlRequest, + com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, + com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> getFlowControlFieldBuilder() { if (flowControlBuilder_ == null) { if (!(requestCase_ == 3)) { request_ = com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance(); } - flowControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.FlowControlRequest, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder>( + flowControlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.FlowControlRequest, + com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, + com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder>( (com.google.cloud.pubsublite.proto.FlowControlRequest) request_, getParentForChildren(), isClean()); @@ -1192,9 +1347,9 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont onChanged(); return flowControlBuilder_; } + @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); } @@ -1204,12 +1359,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SubscribeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SubscribeRequest) private static final com.google.cloud.pubsublite.proto.SubscribeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SubscribeRequest(); } @@ -1218,27 +1373,27 @@ public static com.google.cloud.pubsublite.proto.SubscribeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1253,6 +1408,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SubscribeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java index 381f15abd..bb7dbe64f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface SubscribeRequestOrBuilder extends +public interface SubscribeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SubscribeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; + * * @return Whether the initial field is set. */ boolean hasInitial(); /** + * + * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; + * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial(); /** + * + * *
    * Initial request on the stream.
    * 
@@ -35,24 +59,32 @@ public interface SubscribeRequestOrBuilder extends com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getInitialOrBuilder(); /** + * + * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; + * * @return Whether the seek field is set. */ boolean hasSeek(); /** + * + * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; + * * @return The seek. */ com.google.cloud.pubsublite.proto.SeekRequest getSeek(); /** + * + * *
    * Request to update the stream's delivery cursor.
    * 
@@ -62,24 +94,32 @@ public interface SubscribeRequestOrBuilder extends com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder(); /** + * + * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; + * * @return Whether the flowControl field is set. */ boolean hasFlowControl(); /** + * + * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; + * * @return The flowControl. */ com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl(); /** + * + * *
    * Request to grant tokens to the server,
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java index 487b4a8da..41e5ba05d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java @@ -1,62 +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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response to SubscribeRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeResponse} */ -public final class SubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SubscribeResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SubscribeResponse) SubscribeResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubscribeResponse.newBuilder() to construct. private SubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubscribeResponse() { - } + + private SubscribeResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubscribeResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeResponse.class, com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeResponse.class, + com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); } private int responseCase_ = 0; private java.lang.Object response_; + public enum ResponseCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), SEEK(2), MESSAGES(3), RESPONSE_NOT_SET(0); private final int value; + private ResponseCase(int value) { this.value = value; } @@ -72,31 +93,38 @@ public static ResponseCase valueOf(int value) { public static ResponseCase forNumber(int value) { switch (value) { - case 1: return INITIAL; - case 2: return SEEK; - case 3: return MESSAGES; - case 0: return RESPONSE_NOT_SET; - default: return null; + case 1: + return INITIAL; + case 2: + return SEEK; + case 3: + return MESSAGES; + case 0: + return RESPONSE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -104,21 +132,26 @@ public boolean hasInitial() { return responseCase_ == 1; } /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; + * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { if (responseCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; } return com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); } /** + * + * *
    * Initial response on the stream.
    * 
@@ -128,18 +161,21 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getInitialOrBuilder() { if (responseCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; } return com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); } public static final int SEEK_FIELD_NUMBER = 2; /** + * + * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; + * * @return Whether the seek field is set. */ @java.lang.Override @@ -147,21 +183,26 @@ public boolean hasSeek() { return responseCase_ == 2; } /** + * + * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; + * * @return The seek. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { if (responseCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekResponse) response_; + return (com.google.cloud.pubsublite.proto.SeekResponse) response_; } return com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance(); } /** + * + * *
    * Response to a Seek operation.
    * 
@@ -171,18 +212,21 @@ public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder() { if (responseCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekResponse) response_; + return (com.google.cloud.pubsublite.proto.SeekResponse) response_; } return com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance(); } public static final int MESSAGES_FIELD_NUMBER = 3; /** + * + * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; + * * @return Whether the messages field is set. */ @java.lang.Override @@ -190,21 +234,26 @@ public boolean hasMessages() { return responseCase_ == 3; } /** + * + * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; + * * @return The messages. */ @java.lang.Override public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { if (responseCase_ == 3) { - return (com.google.cloud.pubsublite.proto.MessageResponse) response_; + return (com.google.cloud.pubsublite.proto.MessageResponse) response_; } return com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance(); } /** + * + * *
    * Response containing messages from the topic partition.
    * 
@@ -214,12 +263,13 @@ public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { @java.lang.Override public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrBuilder() { if (responseCase_ == 3) { - return (com.google.cloud.pubsublite.proto.MessageResponse) response_; + return (com.google.cloud.pubsublite.proto.MessageResponse) response_; } return com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,10 +281,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 { if (responseCase_ == 1) { - output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); + output.writeMessage( + 1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); } if (responseCase_ == 2) { output.writeMessage(2, (com.google.cloud.pubsublite.proto.SeekResponse) response_); @@ -252,16 +302,19 @@ public int getSerializedSize() { size = 0; if (responseCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); } if (responseCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SeekResponse) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.pubsublite.proto.SeekResponse) response_); } if (responseCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.pubsublite.proto.MessageResponse) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.pubsublite.proto.MessageResponse) response_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,26 +324,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.cloud.pubsublite.proto.SubscribeResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SubscribeResponse other = (com.google.cloud.pubsublite.proto.SubscribeResponse) obj; + com.google.cloud.pubsublite.proto.SubscribeResponse other = + (com.google.cloud.pubsublite.proto.SubscribeResponse) obj; if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 1: - if (!getInitial() - .equals(other.getInitial())) return false; + if (!getInitial().equals(other.getInitial())) return false; break; case 2: - if (!getSeek() - .equals(other.getSeek())) return false; + if (!getSeek().equals(other.getSeek())) return false; break; case 3: - if (!getMessages() - .equals(other.getMessages())) return false; + if (!getMessages().equals(other.getMessages())) return false; break; case 0: default: @@ -328,129 +379,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.SubscribeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse 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.cloud.pubsublite.proto.SubscribeResponse 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 to SubscribeRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeResponse} */ - 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.cloud.pubsublite.v1.SubscribeResponse) com.google.cloud.pubsublite.proto.SubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeResponse.class, com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeResponse.class, + com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SubscribeResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +527,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto + .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; } @java.lang.Override @@ -491,8 +548,11 @@ public com.google.cloud.pubsublite.proto.SubscribeResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SubscribeResponse buildPartial() { - com.google.cloud.pubsublite.proto.SubscribeResponse result = new com.google.cloud.pubsublite.proto.SubscribeResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.SubscribeResponse result = + new com.google.cloud.pubsublite.proto.SubscribeResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -505,16 +565,13 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SubscribeResponse r private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeResponse result) { result.responseCase_ = responseCase_; result.response_ = this.response_; - if (responseCase_ == 1 && - initialBuilder_ != null) { + if (responseCase_ == 1 && initialBuilder_ != null) { result.response_ = initialBuilder_.build(); } - if (responseCase_ == 2 && - seekBuilder_ != null) { + if (responseCase_ == 2 && seekBuilder_ != null) { result.response_ = seekBuilder_.build(); } - if (responseCase_ == 3 && - messagesBuilder_ != null) { + if (responseCase_ == 3 && messagesBuilder_ != null) { result.response_ = messagesBuilder_.build(); } } @@ -523,38 +580,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeRespo 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.cloud.pubsublite.proto.SubscribeResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeResponse)other); + return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeResponse) other); } else { super.mergeFrom(other); return this; @@ -562,23 +620,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SubscribeResponse other) { - if (other == com.google.cloud.pubsublite.proto.SubscribeResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.SubscribeResponse.getDefaultInstance()) + return this; switch (other.getResponseCase()) { - case INITIAL: { - mergeInitial(other.getInitial()); - break; - } - case SEEK: { - mergeSeek(other.getSeek()); - break; - } - case MESSAGES: { - mergeMessages(other.getMessages()); - break; - } - case RESPONSE_NOT_SET: { - break; - } + case INITIAL: + { + mergeInitial(other.getInitial()); + break; + } + case SEEK: + { + mergeSeek(other.getSeek()); + break; + } + case MESSAGES: + { + mergeMessages(other.getMessages()); + break; + } + case RESPONSE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -606,33 +669,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getInitialFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getSeekFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getMessagesFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getSeekFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getMessagesFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,12 +703,12 @@ public Builder mergeFrom( } // finally return this; } + private int responseCase_ = 0; private java.lang.Object response_; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public Builder clearResponse() { @@ -660,13 +721,19 @@ public Builder clearResponse() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeResponse, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> initialBuilder_; + com.google.cloud.pubsublite.proto.InitialSubscribeResponse, + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, + com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> + initialBuilder_; /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; + * * @return Whether the initial field is set. */ @java.lang.Override @@ -674,11 +741,14 @@ public boolean hasInitial() { return responseCase_ == 1; } /** + * + * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; + * * @return The initial. */ @java.lang.Override @@ -696,6 +766,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -716,6 +788,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeResp return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -734,6 +808,8 @@ public Builder setInitial( return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -742,10 +818,15 @@ public Builder setInitial( */ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeResponse value) { if (initialBuilder_ == null) { - if (responseCase_ == 1 && - response_ != com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance()) { - response_ = com.google.cloud.pubsublite.proto.InitialSubscribeResponse.newBuilder((com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 1 + && response_ + != com.google.cloud.pubsublite.proto.InitialSubscribeResponse + .getDefaultInstance()) { + response_ = + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.newBuilder( + (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -761,6 +842,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -784,6 +867,8 @@ public Builder clearInitial() { return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -794,6 +879,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni return getInitialFieldBuilder().getBuilder(); } /** + * + * *
      * Initial response on the stream.
      * 
@@ -801,7 +888,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder + getInitialOrBuilder() { if ((responseCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -812,6 +900,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getIn } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -819,14 +909,20 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getIn * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeResponse, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> + com.google.cloud.pubsublite.proto.InitialSubscribeResponse, + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, + com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(responseCase_ == 1)) { - response_ = com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); + response_ = + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); } - initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeResponse, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder>( + initialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialSubscribeResponse, + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, + com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder>( (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_, getParentForChildren(), isClean()); @@ -838,13 +934,19 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getIn } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekResponse, com.google.cloud.pubsublite.proto.SeekResponse.Builder, com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> seekBuilder_; + com.google.cloud.pubsublite.proto.SeekResponse, + com.google.cloud.pubsublite.proto.SeekResponse.Builder, + com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> + seekBuilder_; /** + * + * *
      * Response to a Seek operation.
      * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; + * * @return Whether the seek field is set. */ @java.lang.Override @@ -852,11 +954,14 @@ public boolean hasSeek() { return responseCase_ == 2; } /** + * + * *
      * Response to a Seek operation.
      * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; + * * @return The seek. */ @java.lang.Override @@ -874,6 +979,8 @@ public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { } } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -894,14 +1001,15 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { return this; } /** + * + * *
      * Response to a Seek operation.
      * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; */ - public Builder setSeek( - com.google.cloud.pubsublite.proto.SeekResponse.Builder builderForValue) { + public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse.Builder builderForValue) { if (seekBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -912,6 +1020,8 @@ public Builder setSeek( return this; } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -920,10 +1030,13 @@ public Builder setSeek( */ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { if (seekBuilder_ == null) { - if (responseCase_ == 2 && - response_ != com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance()) { - response_ = com.google.cloud.pubsublite.proto.SeekResponse.newBuilder((com.google.cloud.pubsublite.proto.SeekResponse) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 2 + && response_ != com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance()) { + response_ = + com.google.cloud.pubsublite.proto.SeekResponse.newBuilder( + (com.google.cloud.pubsublite.proto.SeekResponse) response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -939,6 +1052,8 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { return this; } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -962,6 +1077,8 @@ public Builder clearSeek() { return this; } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -972,6 +1089,8 @@ public com.google.cloud.pubsublite.proto.SeekResponse.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -990,6 +1109,8 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( } } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -997,14 +1118,19 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( * .google.cloud.pubsublite.v1.SeekResponse seek = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekResponse, com.google.cloud.pubsublite.proto.SeekResponse.Builder, com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> + com.google.cloud.pubsublite.proto.SeekResponse, + com.google.cloud.pubsublite.proto.SeekResponse.Builder, + com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> getSeekFieldBuilder() { if (seekBuilder_ == null) { if (!(responseCase_ == 2)) { response_ = com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance(); } - seekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekResponse, com.google.cloud.pubsublite.proto.SeekResponse.Builder, com.google.cloud.pubsublite.proto.SeekResponseOrBuilder>( + seekBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SeekResponse, + com.google.cloud.pubsublite.proto.SeekResponse.Builder, + com.google.cloud.pubsublite.proto.SeekResponseOrBuilder>( (com.google.cloud.pubsublite.proto.SeekResponse) response_, getParentForChildren(), isClean()); @@ -1016,13 +1142,19 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessageResponse, com.google.cloud.pubsublite.proto.MessageResponse.Builder, com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> messagesBuilder_; + com.google.cloud.pubsublite.proto.MessageResponse, + com.google.cloud.pubsublite.proto.MessageResponse.Builder, + com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> + messagesBuilder_; /** + * + * *
      * Response containing messages from the topic partition.
      * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; + * * @return Whether the messages field is set. */ @java.lang.Override @@ -1030,11 +1162,14 @@ public boolean hasMessages() { return responseCase_ == 3; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; + * * @return The messages. */ @java.lang.Override @@ -1052,6 +1187,8 @@ public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { } } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1072,6 +1209,8 @@ public Builder setMessages(com.google.cloud.pubsublite.proto.MessageResponse val return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1090,6 +1229,8 @@ public Builder setMessages( return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1098,10 +1239,14 @@ public Builder setMessages( */ public Builder mergeMessages(com.google.cloud.pubsublite.proto.MessageResponse value) { if (messagesBuilder_ == null) { - if (responseCase_ == 3 && - response_ != com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance()) { - response_ = com.google.cloud.pubsublite.proto.MessageResponse.newBuilder((com.google.cloud.pubsublite.proto.MessageResponse) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 3 + && response_ + != com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance()) { + response_ = + com.google.cloud.pubsublite.proto.MessageResponse.newBuilder( + (com.google.cloud.pubsublite.proto.MessageResponse) response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -1117,6 +1262,8 @@ public Builder mergeMessages(com.google.cloud.pubsublite.proto.MessageResponse v return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1140,6 +1287,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1150,6 +1299,8 @@ public com.google.cloud.pubsublite.proto.MessageResponse.Builder getMessagesBuil return getMessagesFieldBuilder().getBuilder(); } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1168,6 +1319,8 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB } } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1175,14 +1328,19 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB * .google.cloud.pubsublite.v1.MessageResponse messages = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessageResponse, com.google.cloud.pubsublite.proto.MessageResponse.Builder, com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> + com.google.cloud.pubsublite.proto.MessageResponse, + com.google.cloud.pubsublite.proto.MessageResponse.Builder, + com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance(); } - messagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessageResponse, com.google.cloud.pubsublite.proto.MessageResponse.Builder, com.google.cloud.pubsublite.proto.MessageResponseOrBuilder>( + messagesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessageResponse, + com.google.cloud.pubsublite.proto.MessageResponse.Builder, + com.google.cloud.pubsublite.proto.MessageResponseOrBuilder>( (com.google.cloud.pubsublite.proto.MessageResponse) response_, getParentForChildren(), isClean()); @@ -1192,9 +1350,9 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB onChanged(); 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); } @@ -1204,12 +1362,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SubscribeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SubscribeResponse) private static final com.google.cloud.pubsublite.proto.SubscribeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SubscribeResponse(); } @@ -1218,27 +1376,27 @@ public static com.google.cloud.pubsublite.proto.SubscribeResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1253,6 +1411,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SubscribeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java index f50b36bdd..a0b75eb32 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.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/cloud/pubsublite/v1/subscriber.proto package com.google.cloud.pubsublite.proto; -public interface SubscribeResponseOrBuilder extends +public interface SubscribeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SubscribeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; + * * @return Whether the initial field is set. */ boolean hasInitial(); /** + * + * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; + * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial(); /** + * + * *
    * Initial response on the stream.
    * 
@@ -35,24 +59,32 @@ public interface SubscribeResponseOrBuilder extends com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getInitialOrBuilder(); /** + * + * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; + * * @return Whether the seek field is set. */ boolean hasSeek(); /** + * + * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; + * * @return The seek. */ com.google.cloud.pubsublite.proto.SeekResponse getSeek(); /** + * + * *
    * Response to a Seek operation.
    * 
@@ -62,24 +94,32 @@ public interface SubscribeResponseOrBuilder extends com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder(); /** + * + * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; + * * @return Whether the messages field is set. */ boolean hasMessages(); /** + * + * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; + * * @return The messages. */ com.google.cloud.pubsublite.proto.MessageResponse getMessages(); /** + * + * *
    * Response containing messages from the topic partition.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java new file mode 100644 index 000000000..47c3bffdf --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java @@ -0,0 +1,264 @@ +/* + * 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/cloud/pubsublite/v1/subscriber.proto + +package com.google.cloud.pubsublite.proto; + +public final class SubscriberProto { + private SubscriberProto() {} + + 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_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_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+google/cloud/pubsublite/v1/subscriber." + + "proto\022\032google.cloud.pubsublite.v1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\'google/cloud/pubsublite/v1/common.pro" + + "to\"\212\001\n\027InitialSubscribeRequest\022\024\n\014subscr" + + "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022F\n\020initi" + + "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" + + "ite.v1.SeekRequestB\003\340A\001\"N\n\030InitialSubscr" + + "ibeResponse\0222\n\006cursor\030\001 \001(\0132\".google.clo" + + "ud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest\022" + + "K\n\014named_target\030\001 \001(\01623.google.cloud.pub" + + "sublite.v1.SeekRequest.NamedTargetH\000\0224\n\006" + + "cursor\030\002 \001(\0132\".google.cloud.pubsublite.v" + + "1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARGE" + + "T_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_C" + + "URSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cur" + + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + + "ursor\"E\n\022FlowControlRequest\022\030\n\020allowed_m" + + "essages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001\n" + + "\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.goo" + + "gle.cloud.pubsublite.v1.InitialSubscribe" + + "RequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud.p" + + "ubsublite.v1.SeekRequestH\000\022F\n\014flow_contr" + + "ol\030\003 \001(\0132..google.cloud.pubsublite.v1.Fl" + + "owControlRequestH\000B\t\n\007request\"Q\n\017Message" + + "Response\022>\n\010messages\030\001 \003(\0132,.google.clou" + + "d.pubsublite.v1.SequencedMessage\"\343\001\n\021Sub" + + "scribeResponse\022G\n\007initial\030\001 \001(\01324.google" + + ".cloud.pubsublite.v1.InitialSubscribeRes" + + "ponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pub" + + "sublite.v1.SeekResponseH\000\022?\n\010messages\030\003 " + + "\001(\0132+.google.cloud.pubsublite.v1.Message" + + "ResponseH\000B\n\n\010response\"L\n!InitialPartiti" + + "onAssignmentRequest\022\024\n\014subscription\030\001 \001(" + + "\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssignm" + + "ent\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAssi" + + "gnmentAck\"\274\001\n\032PartitionAssignmentRequest" + + "\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsubl" + + "ite.v1.InitialPartitionAssignmentRequest" + + "H\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsublit" + + "e.v1.PartitionAssignmentAckH\000B\t\n\007request" + + "2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.go" + + "ogle.cloud.pubsublite.v1.SubscribeReques" + + "t\032-.google.cloud.pubsublite.v1.Subscribe" + + "Response\"\000(\0010\001\032M\312A\031pubsublite.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platform2\357\001\n\032PartitionAssignmentSer" + + "vice\022\201\001\n\020AssignPartitions\0226.google.cloud" + + ".pubsublite.v1.PartitionAssignmentReques" + + "t\032/.google.cloud.pubsublite.v1.Partition" + + "Assignment\"\000(\0010\001\032M\312A\031pubsublite.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\323\001\n!com.google.cloud.pub" + + "sublite.protoB\017SubscriberProtoP\001Z>cloud." + + "google.com/go/pubsublite/apiv1/pubsublit" + + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + + "Google::Cloud::PubSubLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor, + new java.lang.String[] { + "Subscription", "Partition", "InitialLocation", + }); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor, + new java.lang.String[] { + "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor, + new java.lang.String[] { + "NamedTarget", "Cursor", "Target", + }); + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor, + new java.lang.String[] { + "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor, + new java.lang.String[] { + "AllowedMessages", "AllowedBytes", + }); + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor, + new java.lang.String[] { + "Initial", "Seek", "FlowControl", "Request", + }); + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor, + new java.lang.String[] { + "Messages", + }); + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor, + new java.lang.String[] { + "Initial", "Seek", "Messages", "Response", + }); + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor, + new java.lang.String[] { + "Subscription", "ClientId", + }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor, + new java.lang.String[] { + "Partitions", + }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor, + new java.lang.String[] { + "Initial", "Ack", "Request", + }); + 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.ClientProto.oauthScopes); + 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java index 2530d3dd3..75c65586b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Metadata about a subscription resource.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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_ = ""; @@ -26,109 +44,130 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.class, com.google.cloud.pubsublite.proto.Subscription.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.class, + com.google.cloud.pubsublite.proto.Subscription.Builder.class); } - public interface DeliveryConfigOrBuilder extends + public interface DeliveryConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The DeliveryRequirement for this subscription.
      * 
* - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * * @return The enum numeric value on the wire for deliveryRequirement. */ int getDeliveryRequirementValue(); /** + * + * *
      * The DeliveryRequirement for this subscription.
      * 
* - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * * @return The deliveryRequirement. */ - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement(); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement + getDeliveryRequirement(); } /** + * + * *
    * The settings for a subscription's message delivery.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Subscription.DeliveryConfig} */ - public static final class DeliveryConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DeliveryConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) DeliveryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeliveryConfig.newBuilder() to construct. private DeliveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeliveryConfig() { deliveryRequirement_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeliveryConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); } /** + * + * *
      * When this subscription should send messages to subscribers relative to
      * messages persistence in storage. For details, see [Creating Lite
      * subscriptions](https://cloud.google.com/pubsub/lite/docs/subscriptions#creating_lite_subscriptions).
      * 
* - * Protobuf enum {@code google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement} + * Protobuf enum {@code + * google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement} */ - public enum DeliveryRequirement - implements com.google.protobuf.ProtocolMessageEnum { + public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Default value. This value is unused.
        * 
@@ -137,6 +176,8 @@ public enum DeliveryRequirement */ DELIVERY_REQUIREMENT_UNSPECIFIED(0), /** + * + * *
        * The server does not wait for a published message to be successfully
        * written to storage before delivering it to subscribers.
@@ -146,6 +187,8 @@ public enum DeliveryRequirement
        */
       DELIVER_IMMEDIATELY(1),
       /**
+       *
+       *
        * 
        * The server will not deliver a published message to subscribers until
        * the message has been successfully written to storage. This will result
@@ -159,6 +202,8 @@ public enum DeliveryRequirement
       ;
 
       /**
+       *
+       *
        * 
        * Default value. This value is unused.
        * 
@@ -167,6 +212,8 @@ public enum DeliveryRequirement */ public static final int DELIVERY_REQUIREMENT_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The server does not wait for a published message to be successfully
        * written to storage before delivering it to subscribers.
@@ -176,6 +223,8 @@ public enum DeliveryRequirement
        */
       public static final int DELIVER_IMMEDIATELY_VALUE = 1;
       /**
+       *
+       *
        * 
        * The server will not deliver a published message to subscribers until
        * the message has been successfully written to storage. This will result
@@ -186,7 +235,6 @@ public enum DeliveryRequirement
        */
       public static final int DELIVER_AFTER_STORED_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -211,10 +259,14 @@ public static DeliveryRequirement valueOf(int value) {
        */
       public static DeliveryRequirement forNumber(int value) {
         switch (value) {
-          case 0: return DELIVERY_REQUIREMENT_UNSPECIFIED;
-          case 1: return DELIVER_IMMEDIATELY;
-          case 2: return DELIVER_AFTER_STORED;
-          default: return null;
+          case 0:
+            return DELIVERY_REQUIREMENT_UNSPECIFIED;
+          case 1:
+            return DELIVER_IMMEDIATELY;
+          case 2:
+            return DELIVER_AFTER_STORED;
+          default:
+            return null;
         }
       }
 
@@ -222,29 +274,31 @@ public static DeliveryRequirement forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          DeliveryRequirement> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public DeliveryRequirement findValueByNumber(int number) {
-                return DeliveryRequirement.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 DeliveryRequirement findValueByNumber(int number) {
+                  return DeliveryRequirement.forNumber(number);
+                }
+              };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final DeliveryRequirement[] VALUES = values();
@@ -252,8 +306,7 @@ public DeliveryRequirement findValueByNumber(int number) {
       public static DeliveryRequirement 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;
@@ -273,30 +326,49 @@ private DeliveryRequirement(int value) {
     public static final int DELIVERY_REQUIREMENT_FIELD_NUMBER = 3;
     private int deliveryRequirement_ = 0;
     /**
+     *
+     *
      * 
      * The DeliveryRequirement for this subscription.
      * 
* - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * * @return The enum numeric value on the wire for deliveryRequirement. */ - @java.lang.Override public int getDeliveryRequirementValue() { + @java.lang.Override + public int getDeliveryRequirementValue() { return deliveryRequirement_; } /** + * + * *
      * The DeliveryRequirement for this subscription.
      * 
* - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * * @return The deliveryRequirement. */ - @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement() { - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.forNumber(deliveryRequirement_); - return result == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement + getDeliveryRequirement() { + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement + .forNumber(deliveryRequirement_); + return result == null + ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement + .UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,9 +380,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (deliveryRequirement_ != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.DELIVERY_REQUIREMENT_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (deliveryRequirement_ + != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement + .DELIVERY_REQUIREMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(3, deliveryRequirement_); } getUnknownFields().writeTo(output); @@ -322,9 +396,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (deliveryRequirement_ != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.DELIVERY_REQUIREMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, deliveryRequirement_); + if (deliveryRequirement_ + != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement + .DELIVERY_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, deliveryRequirement_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -334,12 +410,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.cloud.pubsublite.proto.Subscription.DeliveryConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other = (com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) obj; + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other = + (com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) obj; if (deliveryRequirement_ != other.deliveryRequirement_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -361,87 +438,94 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig 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.cloud.pubsublite.proto.Subscription.DeliveryConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig 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 @@ -451,39 +535,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The settings for a subscription's message delivery.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Subscription.DeliveryConfig} */ - 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.cloud.pubsublite.v1.Subscription.DeliveryConfig) com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -493,13 +579,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance(); } @@ -514,13 +601,17 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig buildPartial() { - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result = new com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result = + new com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.deliveryRequirement_ = deliveryRequirement_; @@ -531,46 +622,52 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription.Delive 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.cloud.pubsublite.proto.Subscription.DeliveryConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig)other); + return mergeFrom((com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other) { - if (other == com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other) { + if (other + == com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance()) + return this; if (other.deliveryRequirement_ != 0) { setDeliveryRequirementValue(other.getDeliveryRequirementValue()); } @@ -600,17 +697,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: { - deliveryRequirement_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: + { + deliveryRequirement_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -620,26 +719,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int deliveryRequirement_ = 0; /** + * + * *
        * The DeliveryRequirement for this subscription.
        * 
* - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * * @return The enum numeric value on the wire for deliveryRequirement. */ - @java.lang.Override public int getDeliveryRequirementValue() { + @java.lang.Override + public int getDeliveryRequirementValue() { return deliveryRequirement_; } /** + * + * *
        * The DeliveryRequirement for this subscription.
        * 
* - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * * @param value The enum numeric value on the wire for deliveryRequirement to set. * @return This builder for chaining. */ @@ -650,28 +761,45 @@ public Builder setDeliveryRequirementValue(int value) { return this; } /** + * + * *
        * The DeliveryRequirement for this subscription.
        * 
* - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * * @return The deliveryRequirement. */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement() { - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.forNumber(deliveryRequirement_); - return result == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.UNRECOGNIZED : result; + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement + getDeliveryRequirement() { + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement + .forNumber(deliveryRequirement_); + return result == null + ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement + .UNRECOGNIZED + : result; } /** + * + * *
        * The DeliveryRequirement for this subscription.
        * 
* - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * * @param value The deliveryRequirement to set. * @return This builder for chaining. */ - public Builder setDeliveryRequirement(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement value) { + public Builder setDeliveryRequirement( + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement value) { if (value == null) { throw new NullPointerException(); } @@ -681,11 +809,16 @@ public Builder setDeliveryRequirement(com.google.cloud.pubsublite.proto.Subscrip return this; } /** + * + * *
        * The DeliveryRequirement for this subscription.
        * 
* - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; + * + * * @return This builder for chaining. */ public Builder clearDeliveryRequirement() { @@ -694,6 +827,7 @@ public Builder clearDeliveryRequirement() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -706,41 +840,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) - private static final com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig(); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeliveryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeliveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,16 +889,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the subscription.
    * Structured like:
@@ -769,6 +909,7 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultI
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -777,14 +918,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; } } /** + * + * *
    * The name of the subscription.
    * Structured like:
@@ -792,16 +934,15 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -810,9 +951,12 @@ public java.lang.String getName() { } public static final int TOPIC_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -820,6 +964,7 @@ public java.lang.String getName() {
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return The topic. */ @java.lang.Override @@ -828,14 +973,15 @@ 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 this subscription is attached to.
    * Structured like:
@@ -843,16 +989,15 @@ public java.lang.String getTopic() {
    * 
* * 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 { @@ -863,11 +1008,14 @@ public java.lang.String getTopic() { public static final int DELIVERY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig deliveryConfig_; /** + * + * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; + * * @return Whether the deliveryConfig field is set. */ @java.lang.Override @@ -875,18 +1023,25 @@ public boolean hasDeliveryConfig() { return deliveryConfig_ != null; } /** + * + * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; + * * @return The deliveryConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDeliveryConfig() { - return deliveryConfig_ == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; + return deliveryConfig_ == null + ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() + : deliveryConfig_; } /** + * + * *
    * The settings for this subscription's message delivery.
    * 
@@ -894,19 +1049,25 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDelivery * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder() { - return deliveryConfig_ == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder + getDeliveryConfigOrBuilder() { + return deliveryConfig_ == null + ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() + : deliveryConfig_; } public static final int EXPORT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.ExportConfig exportConfig_; /** + * + * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; + * * @return Whether the exportConfig field is set. */ @java.lang.Override @@ -914,19 +1075,26 @@ public boolean hasExportConfig() { return exportConfig_ != null; } /** + * + * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; + * * @return The exportConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig getExportConfig() { - return exportConfig_ == null ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_; + return exportConfig_ == null + ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() + : exportConfig_; } /** + * + * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
@@ -936,10 +1104,13 @@ public com.google.cloud.pubsublite.proto.ExportConfig getExportConfig() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.ExportConfigOrBuilder getExportConfigOrBuilder() {
-    return exportConfig_ == null ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_;
+    return exportConfig_ == null
+        ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()
+        : exportConfig_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -951,8 +1122,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_);
     }
@@ -981,12 +1151,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
     }
     if (deliveryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getDeliveryConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeliveryConfig());
     }
     if (exportConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getExportConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExportConfig());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -996,26 +1164,23 @@ 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.cloud.pubsublite.proto.Subscription)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.Subscription other = (com.google.cloud.pubsublite.proto.Subscription) obj;
+    com.google.cloud.pubsublite.proto.Subscription other =
+        (com.google.cloud.pubsublite.proto.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 (hasDeliveryConfig() != other.hasDeliveryConfig()) return false;
     if (hasDeliveryConfig()) {
-      if (!getDeliveryConfig()
-          .equals(other.getDeliveryConfig())) return false;
+      if (!getDeliveryConfig().equals(other.getDeliveryConfig())) return false;
     }
     if (hasExportConfig() != other.hasExportConfig()) return false;
     if (hasExportConfig()) {
-      if (!getExportConfig()
-          .equals(other.getExportConfig())) return false;
+      if (!getExportConfig().equals(other.getExportConfig())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1045,130 +1210,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.Subscription parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Subscription parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Subscription parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Subscription parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.Subscription parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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;
   }
   /**
+   *
+   *
    * 
    * Metadata about a subscription resource.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.Subscription) com.google.cloud.pubsublite.proto.SubscriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.class, com.google.cloud.pubsublite.proto.Subscription.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.class, + com.google.cloud.pubsublite.proto.Subscription.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Subscription.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1189,9 +1360,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; } @java.lang.Override @@ -1210,8 +1381,11 @@ public com.google.cloud.pubsublite.proto.Subscription build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription buildPartial() { - com.google.cloud.pubsublite.proto.Subscription result = new com.google.cloud.pubsublite.proto.Subscription(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.Subscription result = + new com.google.cloud.pubsublite.proto.Subscription(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1225,14 +1399,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription result result.topic_ = topic_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.deliveryConfig_ = deliveryConfigBuilder_ == null - ? deliveryConfig_ - : deliveryConfigBuilder_.build(); + result.deliveryConfig_ = + deliveryConfigBuilder_ == null ? deliveryConfig_ : deliveryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.exportConfig_ = exportConfigBuilder_ == null - ? exportConfig_ - : exportConfigBuilder_.build(); + result.exportConfig_ = + exportConfigBuilder_ == null ? exportConfig_ : exportConfigBuilder_.build(); } } @@ -1240,38 +1412,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Subscription) { - return mergeFrom((com.google.cloud.pubsublite.proto.Subscription)other); + return mergeFrom((com.google.cloud.pubsublite.proto.Subscription) other); } else { super.mergeFrom(other); return this; @@ -1322,36 +1495,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getDeliveryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getExportConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDeliveryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getExportConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1361,10 +1535,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1372,13 +1549,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -1387,6 +1564,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1394,15 +1573,14 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -1410,6 +1588,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1417,18 +1597,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1436,6 +1620,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1445,6 +1630,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1452,12 +1639,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1467,6 +1656,8 @@ public Builder setNameBytes( private java.lang.Object topic_ = ""; /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1474,13 +1665,13 @@ public Builder setNameBytes(
      * 
* * 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; @@ -1489,6 +1680,8 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1496,15 +1689,14 @@ public java.lang.String getTopic() {
      * 
* * 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 { @@ -1512,6 +1704,8 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1519,18 +1713,22 @@ public java.lang.String getTopic() {
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1538,6 +1736,7 @@ public Builder setTopic(
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1547,6 +1746,8 @@ public Builder clearTopic() { return this; } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1554,12 +1755,14 @@ public Builder clearTopic() {
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000002; @@ -1569,41 +1772,55 @@ public Builder setTopicBytes( private com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig deliveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> deliveryConfigBuilder_; + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> + deliveryConfigBuilder_; /** + * + * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; + * * @return Whether the deliveryConfig field is set. */ public boolean hasDeliveryConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; + * * @return The deliveryConfig. */ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDeliveryConfig() { if (deliveryConfigBuilder_ == null) { - return deliveryConfig_ == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; + return deliveryConfig_ == null + ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() + : deliveryConfig_; } else { return deliveryConfigBuilder_.getMessage(); } } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public Builder setDeliveryConfig(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { + public Builder setDeliveryConfig( + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { if (deliveryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1617,6 +1834,8 @@ public Builder setDeliveryConfig(com.google.cloud.pubsublite.proto.Subscription. return this; } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
@@ -1635,17 +1854,22 @@ public Builder setDeliveryConfig( return this; } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public Builder mergeDeliveryConfig(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { + public Builder mergeDeliveryConfig( + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { if (deliveryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - deliveryConfig_ != null && - deliveryConfig_ != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && deliveryConfig_ != null + && deliveryConfig_ + != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig + .getDefaultInstance()) { getDeliveryConfigBuilder().mergeFrom(value); } else { deliveryConfig_ = value; @@ -1658,6 +1882,8 @@ public Builder mergeDeliveryConfig(com.google.cloud.pubsublite.proto.Subscriptio return this; } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
@@ -1675,33 +1901,42 @@ public Builder clearDeliveryConfig() { return this; } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder getDeliveryConfigBuilder() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder + getDeliveryConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDeliveryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder + getDeliveryConfigOrBuilder() { if (deliveryConfigBuilder_ != null) { return deliveryConfigBuilder_.getMessageOrBuilder(); } else { - return deliveryConfig_ == null ? - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; + return deliveryConfig_ == null + ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() + : deliveryConfig_; } } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
@@ -1709,14 +1944,17 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder ge * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> getDeliveryConfigFieldBuilder() { if (deliveryConfigBuilder_ == null) { - deliveryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder>( - getDeliveryConfig(), - getParentForChildren(), - isClean()); + deliveryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder>( + getDeliveryConfig(), getParentForChildren(), isClean()); deliveryConfig_ = null; } return deliveryConfigBuilder_; @@ -1724,36 +1962,49 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder ge private com.google.cloud.pubsublite.proto.ExportConfig exportConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.ExportConfig, com.google.cloud.pubsublite.proto.ExportConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfigOrBuilder> exportConfigBuilder_; + com.google.cloud.pubsublite.proto.ExportConfig, + com.google.cloud.pubsublite.proto.ExportConfig.Builder, + com.google.cloud.pubsublite.proto.ExportConfigOrBuilder> + exportConfigBuilder_; /** + * + * *
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; + * * @return Whether the exportConfig field is set. */ public boolean hasExportConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; + * * @return The exportConfig. */ public com.google.cloud.pubsublite.proto.ExportConfig getExportConfig() { if (exportConfigBuilder_ == null) { - return exportConfig_ == null ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_; + return exportConfig_ == null + ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() + : exportConfig_; } else { return exportConfigBuilder_.getMessage(); } } /** + * + * *
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -1775,6 +2026,8 @@ public Builder setExportConfig(com.google.cloud.pubsublite.proto.ExportConfig va
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -1794,6 +2047,8 @@ public Builder setExportConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -1803,9 +2058,10 @@ public Builder setExportConfig(
      */
     public Builder mergeExportConfig(com.google.cloud.pubsublite.proto.ExportConfig value) {
       if (exportConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          exportConfig_ != null &&
-          exportConfig_ != com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && exportConfig_ != null
+            && exportConfig_
+                != com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()) {
           getExportConfigBuilder().mergeFrom(value);
         } else {
           exportConfig_ = value;
@@ -1818,6 +2074,8 @@ public Builder mergeExportConfig(com.google.cloud.pubsublite.proto.ExportConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -1836,6 +2094,8 @@ public Builder clearExportConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -1849,6 +2109,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig.Builder getExportConfigBui
       return getExportConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -1860,11 +2122,14 @@ public com.google.cloud.pubsublite.proto.ExportConfigOrBuilder getExportConfigOr
       if (exportConfigBuilder_ != null) {
         return exportConfigBuilder_.getMessageOrBuilder();
       } else {
-        return exportConfig_ == null ?
-            com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_;
+        return exportConfig_ == null
+            ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()
+            : exportConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -1873,21 +2138,24 @@ public com.google.cloud.pubsublite.proto.ExportConfigOrBuilder getExportConfigOr
      * .google.cloud.pubsublite.v1.ExportConfig export_config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.ExportConfig, com.google.cloud.pubsublite.proto.ExportConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfigOrBuilder> 
+            com.google.cloud.pubsublite.proto.ExportConfig,
+            com.google.cloud.pubsublite.proto.ExportConfig.Builder,
+            com.google.cloud.pubsublite.proto.ExportConfigOrBuilder>
         getExportConfigFieldBuilder() {
       if (exportConfigBuilder_ == null) {
-        exportConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.ExportConfig, com.google.cloud.pubsublite.proto.ExportConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfigOrBuilder>(
-                getExportConfig(),
-                getParentForChildren(),
-                isClean());
+        exportConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.ExportConfig,
+                com.google.cloud.pubsublite.proto.ExportConfig.Builder,
+                com.google.cloud.pubsublite.proto.ExportConfigOrBuilder>(
+                getExportConfig(), getParentForChildren(), isClean());
         exportConfig_ = null;
       }
       return exportConfigBuilder_;
     }
+
     @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);
     }
 
@@ -1897,12 +2165,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Subscription)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Subscription)
   private static final com.google.cloud.pubsublite.proto.Subscription DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Subscription();
   }
@@ -1911,27 +2179,27 @@ public static com.google.cloud.pubsublite.proto.Subscription getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Subscription parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Subscription parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1946,6 +2214,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.Subscription getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
index 5410b0eba..aa2408cff 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface SubscriptionOrBuilder extends
+public interface SubscriptionOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Subscription)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the subscription.
    * Structured like:
@@ -15,10 +33,13 @@ public interface SubscriptionOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the subscription.
    * Structured like:
@@ -26,12 +47,14 @@ public interface SubscriptionOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -39,10 +62,13 @@ public interface SubscriptionOrBuilder extends
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -50,59 +76,76 @@ public interface SubscriptionOrBuilder extends
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); /** + * + * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; + * * @return Whether the deliveryConfig field is set. */ boolean hasDeliveryConfig(); /** + * + * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; + * * @return The deliveryConfig. */ com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDeliveryConfig(); /** + * + * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder(); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder + getDeliveryConfigOrBuilder(); /** + * + * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; + * * @return Whether the exportConfig field is set. */ boolean hasExportConfig(); /** + * + * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; + * * @return The exportConfig. */ com.google.cloud.pubsublite.proto.ExportConfig getExportConfig(); /** + * + * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
index 0413c3843..7b4944837 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * A target publish or event time. Can be used for seeking to or retrieving the
  * corresponding cursor.
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.TimeTarget}
  */
-public final class TimeTarget extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TimeTarget extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.TimeTarget)
     TimeTargetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TimeTarget.newBuilder() to construct.
   private TimeTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private TimeTarget() {
-  }
+
+  private TimeTarget() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeTarget();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CommonProto
+        .internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CommonProto
+        .internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.TimeTarget.class, com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
+            com.google.cloud.pubsublite.proto.TimeTarget.class,
+            com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
   }
 
   private int timeCase_ = 0;
   private java.lang.Object time_;
+
   public enum TimeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     PUBLISH_TIME(1),
     EVENT_TIME(2),
     TIME_NOT_SET(0);
     private final int value;
+
     private TimeCase(int value) {
       this.value = value;
     }
@@ -72,25 +93,30 @@ public static TimeCase valueOf(int value) {
 
     public static TimeCase forNumber(int value) {
       switch (value) {
-        case 1: return PUBLISH_TIME;
-        case 2: return EVENT_TIME;
-        case 0: return TIME_NOT_SET;
-        default: return null;
+        case 1:
+          return PUBLISH_TIME;
+        case 2:
+          return EVENT_TIME;
+        case 0:
+          return TIME_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TimeCase
-  getTimeCase() {
-    return TimeCase.forNumber(
-        timeCase_);
+  public TimeCase getTimeCase() {
+    return TimeCase.forNumber(timeCase_);
   }
 
   public static final int PUBLISH_TIME_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -98,6 +124,7 @@ public int getNumber() {
    * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -105,6 +132,8 @@ public boolean hasPublishTime() { return timeCase_ == 1; } /** + * + * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -112,16 +141,19 @@ public boolean hasPublishTime() {
    * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return The publishTime. */ @java.lang.Override public com.google.protobuf.Timestamp getPublishTime() { if (timeCase_ == 1) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -133,13 +165,15 @@ public com.google.protobuf.Timestamp getPublishTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
     if (timeCase_ == 1) {
-       return (com.google.protobuf.Timestamp) time_;
+      return (com.google.protobuf.Timestamp) time_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int EVENT_TIME_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -149,6 +183,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -156,6 +191,8 @@ public boolean hasEventTime() { return timeCase_ == 2; } /** + * + * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -165,16 +202,19 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return The eventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEventTime() { if (timeCase_ == 2) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -188,12 +228,13 @@ public com.google.protobuf.Timestamp getEventTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
     if (timeCase_ == 2) {
-       return (com.google.protobuf.Timestamp) time_;
+      return (com.google.protobuf.Timestamp) time_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -205,8 +246,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (timeCase_ == 1) {
       output.writeMessage(1, (com.google.protobuf.Timestamp) time_);
     }
@@ -223,12 +263,14 @@ public int getSerializedSize() {
 
     size = 0;
     if (timeCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.protobuf.Timestamp) time_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.protobuf.Timestamp) time_);
     }
     if (timeCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.protobuf.Timestamp) time_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.protobuf.Timestamp) time_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -238,22 +280,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.cloud.pubsublite.proto.TimeTarget)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.TimeTarget other = (com.google.cloud.pubsublite.proto.TimeTarget) obj;
+    com.google.cloud.pubsublite.proto.TimeTarget other =
+        (com.google.cloud.pubsublite.proto.TimeTarget) obj;
 
     if (!getTimeCase().equals(other.getTimeCase())) return false;
     switch (timeCase_) {
       case 1:
-        if (!getPublishTime()
-            .equals(other.getPublishTime())) return false;
+        if (!getPublishTime().equals(other.getPublishTime())) return false;
         break;
       case 2:
-        if (!getEventTime()
-            .equals(other.getEventTime())) return false;
+        if (!getEventTime().equals(other.getEventTime())) return false;
         break;
       case 0:
       default:
@@ -286,97 +327,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.pubsublite.proto.TimeTarget parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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.cloud.pubsublite.proto.TimeTarget 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 target publish or event time. Can be used for seeking to or retrieving the
    * corresponding cursor.
@@ -384,33 +432,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.TimeTarget}
    */
-  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.cloud.pubsublite.v1.TimeTarget)
       com.google.cloud.pubsublite.proto.TimeTargetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CommonProto
+          .internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CommonProto
+          .internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.TimeTarget.class, com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
+              com.google.cloud.pubsublite.proto.TimeTarget.class,
+              com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.TimeTarget.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -427,9 +474,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CommonProto
+          .internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
     }
 
     @java.lang.Override
@@ -448,8 +495,11 @@ public com.google.cloud.pubsublite.proto.TimeTarget build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.TimeTarget buildPartial() {
-      com.google.cloud.pubsublite.proto.TimeTarget result = new com.google.cloud.pubsublite.proto.TimeTarget(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.TimeTarget result =
+          new com.google.cloud.pubsublite.proto.TimeTarget(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -462,12 +512,10 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.TimeTarget result)
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.TimeTarget result) {
       result.timeCase_ = timeCase_;
       result.time_ = this.time_;
-      if (timeCase_ == 1 &&
-          publishTimeBuilder_ != null) {
+      if (timeCase_ == 1 && publishTimeBuilder_ != null) {
         result.time_ = publishTimeBuilder_.build();
       }
-      if (timeCase_ == 2 &&
-          eventTimeBuilder_ != null) {
+      if (timeCase_ == 2 && eventTimeBuilder_ != null) {
         result.time_ = eventTimeBuilder_.build();
       }
     }
@@ -476,38 +524,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.TimeTarget res
     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.cloud.pubsublite.proto.TimeTarget) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.TimeTarget)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.TimeTarget) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,17 +566,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.TimeTarget other) {
       if (other == com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) return this;
       switch (other.getTimeCase()) {
-        case PUBLISH_TIME: {
-          mergePublishTime(other.getPublishTime());
-          break;
-        }
-        case EVENT_TIME: {
-          mergeEventTime(other.getEventTime());
-          break;
-        }
-        case TIME_NOT_SET: {
-          break;
-        }
+        case PUBLISH_TIME:
+          {
+            mergePublishTime(other.getPublishTime());
+            break;
+          }
+        case EVENT_TIME:
+          {
+            mergeEventTime(other.getEventTime());
+            break;
+          }
+        case TIME_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -555,26 +607,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getPublishTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              timeCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getEventTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              timeCase_ = 2;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry);
+                timeCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry);
+                timeCase_ = 2;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -584,12 +635,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int timeCase_ = 0;
     private java.lang.Object time_;
-    public TimeCase
-        getTimeCase() {
-      return TimeCase.forNumber(
-          timeCase_);
+
+    public TimeCase getTimeCase() {
+      return TimeCase.forNumber(timeCase_);
     }
 
     public Builder clearTime() {
@@ -602,8 +653,13 @@ public Builder clearTime() {
     private int bitField0_;
 
     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_;
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -611,6 +667,7 @@ public Builder clearTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -618,6 +675,8 @@ public boolean hasPublishTime() { return timeCase_ == 1; } /** + * + * *
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -625,6 +684,7 @@ public boolean hasPublishTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return The publishTime. */ @java.lang.Override @@ -642,6 +702,8 @@ public com.google.protobuf.Timestamp getPublishTime() { } } /** + * + * *
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -664,6 +726,8 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -672,8 +736,7 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp publish_time = 1;
      */
-    public Builder setPublishTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (publishTimeBuilder_ == null) {
         time_ = builderForValue.build();
         onChanged();
@@ -684,6 +747,8 @@ public Builder setPublishTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -694,10 +759,11 @@ public Builder setPublishTime(
      */
     public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
-        if (timeCase_ == 1 &&
-            time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
-              .mergeFrom(value).buildPartial();
+        if (timeCase_ == 1 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          time_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           time_ = value;
         }
@@ -713,6 +779,8 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -738,6 +806,8 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -750,6 +820,8 @@ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
       return getPublishTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -770,6 +842,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -779,17 +853,20 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp publish_time = 1;
      */
     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) {
         if (!(timeCase_ == 1)) {
           time_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        publishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) time_,
-                getParentForChildren(),
-                isClean());
+        publishTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean());
         time_ = null;
       }
       timeCase_ = 1;
@@ -798,8 +875,13 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        eventTimeBuilder_;
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -809,6 +891,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -816,6 +899,8 @@ public boolean hasEventTime() { return timeCase_ == 2; } /** + * + * *
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -825,6 +910,7 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return The eventTime. */ @java.lang.Override @@ -842,6 +928,8 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -866,6 +954,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -876,8 +966,7 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 2;
      */
-    public Builder setEventTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         time_ = builderForValue.build();
         onChanged();
@@ -888,6 +977,8 @@ public Builder setEventTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -900,10 +991,11 @@ public Builder setEventTime(
      */
     public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
-        if (timeCase_ == 2 &&
-            time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
-              .mergeFrom(value).buildPartial();
+        if (timeCase_ == 2 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          time_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           time_ = value;
         }
@@ -919,6 +1011,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -946,6 +1040,8 @@ public Builder clearEventTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -960,6 +1056,8 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -982,6 +1080,8 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -993,26 +1093,29 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_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>
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
         if (!(timeCase_ == 2)) {
           time_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) time_,
-                getParentForChildren(),
-                isClean());
+        eventTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean());
         time_ = null;
       }
       timeCase_ = 2;
       onChanged();
       return eventTimeBuilder_;
     }
+
     @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);
     }
 
@@ -1022,12 +1125,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.TimeTarget)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.TimeTarget)
   private static final com.google.cloud.pubsublite.proto.TimeTarget DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.TimeTarget();
   }
@@ -1036,27 +1139,27 @@ public static com.google.cloud.pubsublite.proto.TimeTarget getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TimeTarget parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TimeTarget parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1071,6 +1174,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.TimeTarget getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
index cc3aa15fa..4bd31549e 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
-public interface TimeTargetOrBuilder extends
+public interface TimeTargetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.TimeTarget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -15,10 +33,13 @@ public interface TimeTargetOrBuilder extends
    * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return Whether the publishTime field is set. */ boolean hasPublishTime(); /** + * + * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -26,10 +47,13 @@ public interface TimeTargetOrBuilder extends
    * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); /** + * + * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -41,6 +65,8 @@ public interface TimeTargetOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -50,10 +76,13 @@ public interface TimeTargetOrBuilder extends
    * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** + * + * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -63,10 +92,13 @@ public interface TimeTargetOrBuilder extends
    * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** + * + * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
similarity index 71%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
index bb5e4c086..396f426e3 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
@@ -1,58 +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/cloud/pubsublite/v1/common.proto
 
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Metadata about a topic resource.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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_ = ""; } @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.class, com.google.cloud.pubsublite.proto.Topic.Builder.class); + com.google.cloud.pubsublite.proto.Topic.class, + com.google.cloud.pubsublite.proto.Topic.Builder.class); } - public interface PartitionConfigOrBuilder extends + public interface PartitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.PartitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The number of partitions in the topic. Must be at least 1.
      * Once a topic has been created the number of partitions can be increased
@@ -62,11 +84,14 @@ public interface PartitionConfigOrBuilder extends
      * 
* * int64 count = 1; + * * @return The count. */ long getCount(); /** + * + * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -78,12 +103,16 @@ public interface PartitionConfigOrBuilder extends
      * 
* * int32 scale = 2 [deprecated = true]; - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. - * See google/cloud/pubsublite/v1/common.proto;l=138 + * + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See + * google/cloud/pubsublite/v1/common.proto;l=138 * @return Whether the scale field is set. */ - @java.lang.Deprecated boolean hasScale(); + @java.lang.Deprecated + boolean hasScale(); /** + * + * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -95,164 +124,191 @@ public interface PartitionConfigOrBuilder extends
      * 
* * int32 scale = 2 [deprecated = true]; - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. - * See google/cloud/pubsublite/v1/common.proto;l=138 + * + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See + * google/cloud/pubsublite/v1/common.proto;l=138 * @return The scale. */ - @java.lang.Deprecated int getScale(); + @java.lang.Deprecated + int getScale(); /** + * + * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; + * * @return Whether the capacity field is set. */ boolean hasCapacity(); /** + * + * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; + * * @return The capacity. */ com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapacity(); /** + * + * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder(); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder + getCapacityOrBuilder(); public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.DimensionCase getDimensionCase(); } /** + * + * *
    * The settings for a topic's partitions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig} */ - public static final class PartitionConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PartitionConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.PartitionConfig) PartitionConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PartitionConfig.newBuilder() to construct. private PartitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PartitionConfig() { - } + + private PartitionConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PartitionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); } - public interface CapacityOrBuilder extends + public interface CapacityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Publish throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 16.
        * 
* * int32 publish_mib_per_sec = 1; + * * @return The publishMibPerSec. */ int getPublishMibPerSec(); /** + * + * *
        * Subscribe throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 32.
        * 
* * int32 subscribe_mib_per_sec = 2; + * * @return The subscribeMibPerSec. */ int getSubscribeMibPerSec(); } /** + * + * *
      * The throughput capacity configuration for each partition.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity} */ - public static final class Capacity extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Capacity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) CapacityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Capacity.newBuilder() to construct. private Capacity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Capacity() { - } + + private Capacity() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Capacity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); } public static final int PUBLISH_MIB_PER_SEC_FIELD_NUMBER = 1; private int publishMibPerSec_ = 0; /** + * + * *
        * Publish throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 16.
        * 
* * int32 publish_mib_per_sec = 1; + * * @return The publishMibPerSec. */ @java.lang.Override @@ -263,12 +319,15 @@ public int getPublishMibPerSec() { public static final int SUBSCRIBE_MIB_PER_SEC_FIELD_NUMBER = 2; private int subscribeMibPerSec_ = 0; /** + * + * *
        * Subscribe throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 32.
        * 
* * int32 subscribe_mib_per_sec = 2; + * * @return The subscribeMibPerSec. */ @java.lang.Override @@ -277,6 +336,7 @@ public int getSubscribeMibPerSec() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +348,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 (publishMibPerSec_ != 0) { output.writeInt32(1, publishMibPerSec_); } @@ -306,12 +365,10 @@ public int getSerializedSize() { size = 0; if (publishMibPerSec_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, publishMibPerSec_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, publishMibPerSec_); } if (subscribeMibPerSec_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, subscribeMibPerSec_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, subscribeMibPerSec_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -321,17 +378,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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other = (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) obj; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other = + (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) obj; - if (getPublishMibPerSec() - != other.getPublishMibPerSec()) return false; - if (getSubscribeMibPerSec() - != other.getSubscribeMibPerSec()) return false; + if (getPublishMibPerSec() != other.getPublishMibPerSec()) return false; + if (getSubscribeMibPerSec() != other.getSubscribeMibPerSec()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,87 +409,96 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity 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 @@ -443,39 +508,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * The throughput capacity configuration for each partition.
        * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity} */ - 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.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); } - // Construct using com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -486,14 +554,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getDefaultInstanceForType() { - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + getDefaultInstanceForType() { + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + .getDefaultInstance(); } @java.lang.Override @@ -507,13 +577,17 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity build() @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity buildPartial() { - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result = + new com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.publishMibPerSec_ = publishMibPerSec_; @@ -527,46 +601,53 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.PartitionConf 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.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity)other); + return mergeFrom( + (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other) { - if (other == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other) { + if (other + == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + .getDefaultInstance()) return this; if (other.getPublishMibPerSec() != 0) { setPublishMibPerSec(other.getPublishMibPerSec()); } @@ -599,22 +680,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - publishMibPerSec_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - subscribeMibPerSec_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + publishMibPerSec_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + subscribeMibPerSec_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -624,16 +708,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int publishMibPerSec_ ; + private int publishMibPerSec_; /** + * + * *
          * Publish throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 16.
          * 
* * int32 publish_mib_per_sec = 1; + * * @return The publishMibPerSec. */ @java.lang.Override @@ -641,29 +729,35 @@ public int getPublishMibPerSec() { return publishMibPerSec_; } /** + * + * *
          * Publish throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 16.
          * 
* * int32 publish_mib_per_sec = 1; + * * @param value The publishMibPerSec to set. * @return This builder for chaining. */ public Builder setPublishMibPerSec(int value) { - + publishMibPerSec_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Publish throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 16.
          * 
* * int32 publish_mib_per_sec = 1; + * * @return This builder for chaining. */ public Builder clearPublishMibPerSec() { @@ -673,14 +767,17 @@ public Builder clearPublishMibPerSec() { return this; } - private int subscribeMibPerSec_ ; + private int subscribeMibPerSec_; /** + * + * *
          * Subscribe throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 32.
          * 
* * int32 subscribe_mib_per_sec = 2; + * * @return The subscribeMibPerSec. */ @java.lang.Override @@ -688,29 +785,35 @@ public int getSubscribeMibPerSec() { return subscribeMibPerSec_; } /** + * + * *
          * Subscribe throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 32.
          * 
* * int32 subscribe_mib_per_sec = 2; + * * @param value The subscribeMibPerSec to set. * @return This builder for chaining. */ public Builder setSubscribeMibPerSec(int value) { - + subscribeMibPerSec_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Subscribe throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 32.
          * 
* * int32 subscribe_mib_per_sec = 2; + * * @return This builder for chaining. */ public Builder clearSubscribeMibPerSec() { @@ -719,6 +822,7 @@ public Builder clearSubscribeMibPerSec() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -731,41 +835,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) - private static final com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity(); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Capacity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Capacity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -777,21 +884,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int dimensionCase_ = 0; private java.lang.Object dimension_; + public enum DimensionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - @java.lang.Deprecated SCALE(2), + @java.lang.Deprecated + SCALE(2), CAPACITY(3), DIMENSION_NOT_SET(0); private final int value; + private DimensionCase(int value) { this.value = value; } @@ -807,26 +918,31 @@ public static DimensionCase valueOf(int value) { public static DimensionCase forNumber(int value) { switch (value) { - case 2: return SCALE; - case 3: return CAPACITY; - case 0: return DIMENSION_NOT_SET; - default: return null; + case 2: + return SCALE; + case 3: + return CAPACITY; + case 0: + return DIMENSION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DimensionCase - getDimensionCase() { - return DimensionCase.forNumber( - dimensionCase_); + public DimensionCase getDimensionCase() { + return DimensionCase.forNumber(dimensionCase_); } public static final int COUNT_FIELD_NUMBER = 1; private long count_ = 0L; /** + * + * *
      * The number of partitions in the topic. Must be at least 1.
      * Once a topic has been created the number of partitions can be increased
@@ -836,6 +952,7 @@ public int getNumber() {
      * 
* * int64 count = 1; + * * @return The count. */ @java.lang.Override @@ -845,6 +962,8 @@ public long getCount() { public static final int SCALE_FIELD_NUMBER = 2; /** + * + * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -856,15 +975,19 @@ public long getCount() {
      * 
* * int32 scale = 2 [deprecated = true]; - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. - * See google/cloud/pubsublite/v1/common.proto;l=138 + * + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See + * google/cloud/pubsublite/v1/common.proto;l=138 * @return Whether the scale field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasScale() { + @java.lang.Deprecated + public boolean hasScale() { return dimensionCase_ == 2; } /** + * + * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -876,12 +999,14 @@ public long getCount() {
      * 
* * int32 scale = 2 [deprecated = true]; - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. - * See google/cloud/pubsublite/v1/common.proto;l=138 + * + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See + * google/cloud/pubsublite/v1/common.proto;l=138 * @return The scale. */ @java.lang.Override - @java.lang.Deprecated public int getScale() { + @java.lang.Deprecated + public int getScale() { if (dimensionCase_ == 2) { return (java.lang.Integer) dimension_; } @@ -890,11 +1015,14 @@ public long getCount() { public static final int CAPACITY_FIELD_NUMBER = 3; /** + * + * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; + * * @return Whether the capacity field is set. */ @java.lang.Override @@ -902,21 +1030,26 @@ public boolean hasCapacity() { return dimensionCase_ == 3; } /** + * + * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; + * * @return The capacity. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapacity() { if (dimensionCase_ == 3) { - return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; + return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } /** + * + * *
      * The capacity configuration.
      * 
@@ -924,14 +1057,16 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapac * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder + getCapacityOrBuilder() { if (dimensionCase_ == 3) { - return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; + return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -943,17 +1078,16 @@ 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 (count_ != 0L) { output.writeInt64(1, count_); } if (dimensionCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) dimension_)); + output.writeInt32(2, (int) ((java.lang.Integer) dimension_)); } if (dimensionCase_ == 3) { - output.writeMessage(3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); + output.writeMessage( + 3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); } getUnknownFields().writeTo(output); } @@ -965,17 +1099,17 @@ public int getSerializedSize() { size = 0; if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, count_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_); } if (dimensionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) dimension_)); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 2, (int) ((java.lang.Integer) dimension_)); } if (dimensionCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -985,24 +1119,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.cloud.pubsublite.proto.Topic.PartitionConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Topic.PartitionConfig other = (com.google.cloud.pubsublite.proto.Topic.PartitionConfig) obj; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig other = + (com.google.cloud.pubsublite.proto.Topic.PartitionConfig) obj; - if (getCount() - != other.getCount()) return false; + if (getCount() != other.getCount()) return false; if (!getDimensionCase().equals(other.getDimensionCase())) return false; switch (dimensionCase_) { case 2: - if (getScale() - != other.getScale()) return false; + if (getScale() != other.getScale()) return false; break; case 3: - if (!getCapacity() - .equals(other.getCapacity())) return false; + if (!getCapacity().equals(other.getCapacity())) return false; break; case 0: default: @@ -1019,8 +1151,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); switch (dimensionCase_) { case 2: hash = (37 * hash) + SCALE_FIELD_NUMBER; @@ -1039,87 +1170,94 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig 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.cloud.pubsublite.proto.Topic.PartitionConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.Topic.PartitionConfig 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 @@ -1129,39 +1267,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The settings for a topic's partitions.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig} */ - 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.cloud.pubsublite.v1.Topic.PartitionConfig) com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.PartitionConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1176,9 +1316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; } @java.lang.Override @@ -1197,8 +1337,11 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig buildPartial() { - com.google.cloud.pubsublite.proto.Topic.PartitionConfig result = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.Topic.PartitionConfig result = + new com.google.cloud.pubsublite.proto.Topic.PartitionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1211,11 +1354,11 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.PartitionConf } } - private void buildPartialOneofs(com.google.cloud.pubsublite.proto.Topic.PartitionConfig result) { + private void buildPartialOneofs( + com.google.cloud.pubsublite.proto.Topic.PartitionConfig result) { result.dimensionCase_ = dimensionCase_; result.dimension_ = this.dimension_; - if (dimensionCase_ == 3 && - capacityBuilder_ != null) { + if (dimensionCase_ == 3 && capacityBuilder_ != null) { result.dimension_ = capacityBuilder_.build(); } } @@ -1224,38 +1367,41 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.Topic.Partitio 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.cloud.pubsublite.proto.Topic.PartitionConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.PartitionConfig)other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.PartitionConfig) other); } else { super.mergeFrom(other); return this; @@ -1263,22 +1409,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.PartitionConfig other) { - if (other == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) + return this; if (other.getCount() != 0L) { setCount(other.getCount()); } switch (other.getDimensionCase()) { - case SCALE: { - setScale(other.getScale()); - break; - } - case CAPACITY: { - mergeCapacity(other.getCapacity()); - break; - } - case DIMENSION_NOT_SET: { - break; - } + case SCALE: + { + setScale(other.getScale()); + break; + } + case CAPACITY: + { + mergeCapacity(other.getCapacity()); + break; + } + case DIMENSION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1306,29 +1456,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - count_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - dimension_ = input.readInt32(); - dimensionCase_ = 2; - break; - } // case 16 - case 26: { - input.readMessage( - getCapacityFieldBuilder().getBuilder(), - extensionRegistry); - dimensionCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + count_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + dimension_ = input.readInt32(); + dimensionCase_ = 2; + break; + } // case 16 + case 26: + { + input.readMessage(getCapacityFieldBuilder().getBuilder(), extensionRegistry); + dimensionCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1338,12 +1490,12 @@ public Builder mergeFrom( } // finally return this; } + private int dimensionCase_ = 0; private java.lang.Object dimension_; - public DimensionCase - getDimensionCase() { - return DimensionCase.forNumber( - dimensionCase_); + + public DimensionCase getDimensionCase() { + return DimensionCase.forNumber(dimensionCase_); } public Builder clearDimension() { @@ -1355,8 +1507,10 @@ public Builder clearDimension() { private int bitField0_; - private long count_ ; + private long count_; /** + * + * *
        * The number of partitions in the topic. Must be at least 1.
        * Once a topic has been created the number of partitions can be increased
@@ -1366,6 +1520,7 @@ public Builder clearDimension() {
        * 
* * int64 count = 1; + * * @return The count. */ @java.lang.Override @@ -1373,6 +1528,8 @@ public long getCount() { return count_; } /** + * + * *
        * The number of partitions in the topic. Must be at least 1.
        * Once a topic has been created the number of partitions can be increased
@@ -1382,17 +1539,20 @@ public long getCount() {
        * 
* * int64 count = 1; + * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The number of partitions in the topic. Must be at least 1.
        * Once a topic has been created the number of partitions can be increased
@@ -1402,6 +1562,7 @@ public Builder setCount(long value) {
        * 
* * int64 count = 1; + * * @return This builder for chaining. */ public Builder clearCount() { @@ -1412,6 +1573,8 @@ public Builder clearCount() { } /** + * + * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1423,14 +1586,18 @@ public Builder clearCount() {
        * 
* * int32 scale = 2 [deprecated = true]; - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. - * See google/cloud/pubsublite/v1/common.proto;l=138 + * + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See + * google/cloud/pubsublite/v1/common.proto;l=138 * @return Whether the scale field is set. */ - @java.lang.Deprecated public boolean hasScale() { + @java.lang.Deprecated + public boolean hasScale() { return dimensionCase_ == 2; } /** + * + * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1442,17 +1609,21 @@ public Builder clearCount() {
        * 
* * int32 scale = 2 [deprecated = true]; - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. - * See google/cloud/pubsublite/v1/common.proto;l=138 + * + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See + * google/cloud/pubsublite/v1/common.proto;l=138 * @return The scale. */ - @java.lang.Deprecated public int getScale() { + @java.lang.Deprecated + public int getScale() { if (dimensionCase_ == 2) { return (java.lang.Integer) dimension_; } return 0; } /** + * + * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1464,19 +1635,23 @@ public Builder clearCount() {
        * 
* * int32 scale = 2 [deprecated = true]; - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. - * See google/cloud/pubsublite/v1/common.proto;l=138 + * + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See + * google/cloud/pubsublite/v1/common.proto;l=138 * @param value The scale to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setScale(int value) { - + @java.lang.Deprecated + public Builder setScale(int value) { + dimensionCase_ = 2; dimension_ = value; onChanged(); return this; } /** + * + * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1488,11 +1663,13 @@ public Builder clearCount() {
        * 
* * int32 scale = 2 [deprecated = true]; - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. - * See google/cloud/pubsublite/v1/common.proto;l=138 + * + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See + * google/cloud/pubsublite/v1/common.proto;l=138 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearScale() { + @java.lang.Deprecated + public Builder clearScale() { if (dimensionCase_ == 2) { dimensionCase_ = 0; dimension_ = null; @@ -1502,13 +1679,19 @@ public Builder clearCount() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> capacityBuilder_; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> + capacityBuilder_; /** + * + * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; + * * @return Whether the capacity field is set. */ @java.lang.Override @@ -1516,11 +1699,14 @@ public boolean hasCapacity() { return dimensionCase_ == 3; } /** + * + * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; + * * @return The capacity. */ @java.lang.Override @@ -1529,22 +1715,27 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapac if (dimensionCase_ == 3) { return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + .getDefaultInstance(); } else { if (dimensionCase_ == 3) { return capacityBuilder_.getMessage(); } - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + .getDefaultInstance(); } } /** + * + * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - public Builder setCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { + public Builder setCapacity( + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { if (capacityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1558,6 +1749,8 @@ public Builder setCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConf return this; } /** + * + * *
        * The capacity configuration.
        * 
@@ -1565,7 +1758,8 @@ public Builder setCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConf * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ public Builder setCapacity( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder builderForValue) { + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder + builderForValue) { if (capacityBuilder_ == null) { dimension_ = builderForValue.build(); onChanged(); @@ -1576,18 +1770,27 @@ public Builder setCapacity( return this; } /** + * + * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - public Builder mergeCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { + public Builder mergeCapacity( + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { if (capacityBuilder_ == null) { - if (dimensionCase_ == 3 && - dimension_ != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance()) { - dimension_ = com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder((com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_) - .mergeFrom(value).buildPartial(); + if (dimensionCase_ == 3 + && dimension_ + != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + .getDefaultInstance()) { + dimension_ = + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder( + (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) + dimension_) + .mergeFrom(value) + .buildPartial(); } else { dimension_ = value; } @@ -1603,6 +1806,8 @@ public Builder mergeCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionCo return this; } /** + * + * *
        * The capacity configuration.
        * 
@@ -1626,16 +1831,21 @@ public Builder clearCapacity() { return this; } /** + * + * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder getCapacityBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder + getCapacityBuilder() { return getCapacityFieldBuilder().getBuilder(); } /** + * + * *
        * The capacity configuration.
        * 
@@ -1643,17 +1853,21 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder + getCapacityOrBuilder() { if ((dimensionCase_ == 3) && (capacityBuilder_ != null)) { return capacityBuilder_.getMessageOrBuilder(); } else { if (dimensionCase_ == 3) { return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + .getDefaultInstance(); } } /** + * + * *
        * The capacity configuration.
        * 
@@ -1661,14 +1875,21 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> getCapacityFieldBuilder() { if (capacityBuilder_ == null) { if (!(dimensionCase_ == 3)) { - dimension_ = com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); + dimension_ = + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity + .getDefaultInstance(); } - capacityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder>( + capacityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder>( (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_, getParentForChildren(), isClean()); @@ -1678,6 +1899,7 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder onChanged(); return capacityBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1690,12 +1912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig) private static final com.google.cloud.pubsublite.proto.Topic.PartitionConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig(); } @@ -1704,27 +1926,28 @@ public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1739,14 +1962,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface RetentionConfigOrBuilder extends + public interface RetentionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.RetentionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The provisioned storage, in bytes, per partition. If the number of bytes
      * stored in any of the topic's partitions grows beyond this value, older
@@ -1755,11 +1980,14 @@ public interface RetentionConfigOrBuilder extends
      * 
* * int64 per_partition_bytes = 1; + * * @return The perPartitionBytes. */ long getPerPartitionBytes(); /** + * + * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1767,10 +1995,13 @@ public interface RetentionConfigOrBuilder extends
      * 
* * .google.protobuf.Duration period = 2; + * * @return Whether the period field is set. */ boolean hasPeriod(); /** + * + * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1778,10 +2009,13 @@ public interface RetentionConfigOrBuilder extends
      * 
* * .google.protobuf.Duration period = 2; + * * @return The period. */ com.google.protobuf.Duration getPeriod(); /** + * + * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1793,52 +2027,57 @@ public interface RetentionConfigOrBuilder extends
     com.google.protobuf.DurationOrBuilder getPeriodOrBuilder();
   }
   /**
+   *
+   *
    * 
    * The settings for a topic's message retention.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.RetentionConfig} */ - public static final class RetentionConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RetentionConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.RetentionConfig) RetentionConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetentionConfig.newBuilder() to construct. private RetentionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RetentionConfig() { - } + + private RetentionConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RetentionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); } public static final int PER_PARTITION_BYTES_FIELD_NUMBER = 1; private long perPartitionBytes_ = 0L; /** + * + * *
      * The provisioned storage, in bytes, per partition. If the number of bytes
      * stored in any of the topic's partitions grows beyond this value, older
@@ -1847,6 +2086,7 @@ protected java.lang.Object newInstance(
      * 
* * int64 per_partition_bytes = 1; + * * @return The perPartitionBytes. */ @java.lang.Override @@ -1857,6 +2097,8 @@ public long getPerPartitionBytes() { public static final int PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration period_; /** + * + * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1864,6 +2106,7 @@ public long getPerPartitionBytes() {
      * 
* * .google.protobuf.Duration period = 2; + * * @return Whether the period field is set. */ @java.lang.Override @@ -1871,6 +2114,8 @@ public boolean hasPeriod() { return period_ != null; } /** + * + * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1878,6 +2123,7 @@ public boolean hasPeriod() {
      * 
* * .google.protobuf.Duration period = 2; + * * @return The period. */ @java.lang.Override @@ -1885,6 +2131,8 @@ public com.google.protobuf.Duration getPeriod() { return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; } /** + * + * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1899,6 +2147,7 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1910,8 +2159,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 (perPartitionBytes_ != 0L) {
         output.writeInt64(1, perPartitionBytes_);
       }
@@ -1928,12 +2176,10 @@ public int getSerializedSize() {
 
       size = 0;
       if (perPartitionBytes_ != 0L) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeInt64Size(1, perPartitionBytes_);
+        size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, perPartitionBytes_);
       }
       if (period_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getPeriod());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPeriod());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -1943,19 +2189,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.cloud.pubsublite.proto.Topic.RetentionConfig)) {
         return super.equals(obj);
       }
-      com.google.cloud.pubsublite.proto.Topic.RetentionConfig other = (com.google.cloud.pubsublite.proto.Topic.RetentionConfig) obj;
+      com.google.cloud.pubsublite.proto.Topic.RetentionConfig other =
+          (com.google.cloud.pubsublite.proto.Topic.RetentionConfig) obj;
 
-      if (getPerPartitionBytes()
-          != other.getPerPartitionBytes()) return false;
+      if (getPerPartitionBytes() != other.getPerPartitionBytes()) return false;
       if (hasPeriod() != other.hasPeriod()) return false;
       if (hasPeriod()) {
-        if (!getPeriod()
-            .equals(other.getPeriod())) return false;
+        if (!getPeriod().equals(other.getPeriod())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -1969,8 +2214,7 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + PER_PARTITION_BYTES_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          getPerPartitionBytes());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPerPartitionBytes());
       if (hasPeriod()) {
         hash = (37 * hash) + PERIOD_FIELD_NUMBER;
         hash = (53 * hash) + getPeriod().hashCode();
@@ -1981,87 +2225,94 @@ public int hashCode() {
     }
 
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig 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.cloud.pubsublite.proto.Topic.RetentionConfig prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.pubsublite.proto.Topic.RetentionConfig 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
@@ -2071,39 +2322,41 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * The settings for a topic's message retention.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.RetentionConfig} */ - 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.cloud.pubsublite.v1.Topic.RetentionConfig) com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.RetentionConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2118,9 +2371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; } @java.lang.Override @@ -2139,8 +2392,11 @@ public com.google.cloud.pubsublite.proto.Topic.RetentionConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.RetentionConfig buildPartial() { - com.google.cloud.pubsublite.proto.Topic.RetentionConfig result = new com.google.cloud.pubsublite.proto.Topic.RetentionConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.Topic.RetentionConfig result = + new com.google.cloud.pubsublite.proto.Topic.RetentionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -2151,9 +2407,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.RetentionConf result.perPartitionBytes_ = perPartitionBytes_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.period_ = periodBuilder_ == null - ? period_ - : periodBuilder_.build(); + result.period_ = periodBuilder_ == null ? period_ : periodBuilder_.build(); } } @@ -2161,38 +2415,41 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.RetentionConf 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.cloud.pubsublite.proto.Topic.RetentionConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.RetentionConfig)other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.RetentionConfig) other); } else { super.mergeFrom(other); return this; @@ -2200,7 +2457,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.RetentionConfig other) { - if (other == com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) + return this; if (other.getPerPartitionBytes() != 0L) { setPerPartitionBytes(other.getPerPartitionBytes()); } @@ -2233,24 +2491,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - perPartitionBytes_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getPeriodFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + perPartitionBytes_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getPeriodFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2260,10 +2519,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long perPartitionBytes_ ; + private long perPartitionBytes_; /** + * + * *
        * The provisioned storage, in bytes, per partition. If the number of bytes
        * stored in any of the topic's partitions grows beyond this value, older
@@ -2272,6 +2534,7 @@ public Builder mergeFrom(
        * 
* * int64 per_partition_bytes = 1; + * * @return The perPartitionBytes. */ @java.lang.Override @@ -2279,6 +2542,8 @@ public long getPerPartitionBytes() { return perPartitionBytes_; } /** + * + * *
        * The provisioned storage, in bytes, per partition. If the number of bytes
        * stored in any of the topic's partitions grows beyond this value, older
@@ -2287,17 +2552,20 @@ public long getPerPartitionBytes() {
        * 
* * int64 per_partition_bytes = 1; + * * @param value The perPartitionBytes to set. * @return This builder for chaining. */ public Builder setPerPartitionBytes(long value) { - + perPartitionBytes_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The provisioned storage, in bytes, per partition. If the number of bytes
        * stored in any of the topic's partitions grows beyond this value, older
@@ -2306,6 +2574,7 @@ public Builder setPerPartitionBytes(long value) {
        * 
* * int64 per_partition_bytes = 1; + * * @return This builder for chaining. */ public Builder clearPerPartitionBytes() { @@ -2317,8 +2586,13 @@ public Builder clearPerPartitionBytes() { private com.google.protobuf.Duration period_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> periodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + periodBuilder_; /** + * + * *
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2326,12 +2600,15 @@ public Builder clearPerPartitionBytes() {
        * 
* * .google.protobuf.Duration period = 2; + * * @return Whether the period field is set. */ public boolean hasPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2339,6 +2616,7 @@ public boolean hasPeriod() {
        * 
* * .google.protobuf.Duration period = 2; + * * @return The period. */ public com.google.protobuf.Duration getPeriod() { @@ -2349,6 +2627,8 @@ public com.google.protobuf.Duration getPeriod() { } } /** + * + * *
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2371,6 +2651,8 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2379,8 +2661,7 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration period = 2;
        */
-      public Builder setPeriod(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
         if (periodBuilder_ == null) {
           period_ = builderForValue.build();
         } else {
@@ -2391,6 +2672,8 @@ public Builder setPeriod(
         return this;
       }
       /**
+       *
+       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2401,9 +2684,9 @@ public Builder setPeriod(
        */
       public Builder mergePeriod(com.google.protobuf.Duration value) {
         if (periodBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            period_ != null &&
-            period_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && period_ != null
+              && period_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getPeriodBuilder().mergeFrom(value);
           } else {
             period_ = value;
@@ -2416,6 +2699,8 @@ public Builder mergePeriod(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2435,6 +2720,8 @@ public Builder clearPeriod() {
         return this;
       }
       /**
+       *
+       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2449,6 +2736,8 @@ public com.google.protobuf.Duration.Builder getPeriodBuilder() {
         return getPeriodFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2461,11 +2750,12 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
         if (periodBuilder_ != null) {
           return periodBuilder_.getMessageOrBuilder();
         } else {
-          return period_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : period_;
+          return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_;
         }
       }
       /**
+       *
+       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2475,18 +2765,22 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
        * .google.protobuf.Duration period = 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>
           getPeriodFieldBuilder() {
         if (periodBuilder_ == null) {
-          periodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getPeriod(),
-                  getParentForChildren(),
-                  isClean());
+          periodBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getPeriod(), getParentForChildren(), isClean());
           period_ = null;
         }
         return periodBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2499,12 +2793,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.RetentionConfig)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.RetentionConfig)
     private static final com.google.cloud.pubsublite.proto.Topic.RetentionConfig DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.RetentionConfig();
     }
@@ -2513,27 +2807,28 @@ public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig getDefault
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public RetentionConfig parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public RetentionConfig parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -2548,14 +2843,16 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface ReservationConfigOrBuilder extends
+  public interface ReservationConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.ReservationConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2563,10 +2860,13 @@ public interface ReservationConfigOrBuilder extends
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return The throughputReservation. */ java.lang.String getThroughputReservation(); /** + * + * *
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2574,60 +2874,67 @@ public interface ReservationConfigOrBuilder extends
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for throughputReservation. */ - com.google.protobuf.ByteString - getThroughputReservationBytes(); + com.google.protobuf.ByteString getThroughputReservationBytes(); } /** + * + * *
    * The settings for this topic's Reservation usage.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.ReservationConfig} */ - public static final class ReservationConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ReservationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.ReservationConfig) ReservationConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReservationConfig.newBuilder() to construct. private ReservationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReservationConfig() { throughputReservation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReservationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); } public static final int THROUGHPUT_RESERVATION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object throughputReservation_ = ""; /** + * + * *
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2635,6 +2942,7 @@ protected java.lang.Object newInstance(
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return The throughputReservation. */ @java.lang.Override @@ -2643,14 +2951,15 @@ public java.lang.String getThroughputReservation() { 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(); throughputReservation_ = s; return s; } } /** + * + * *
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2658,16 +2967,15 @@ public java.lang.String getThroughputReservation() {
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for throughputReservation. */ @java.lang.Override - public com.google.protobuf.ByteString - getThroughputReservationBytes() { + public com.google.protobuf.ByteString getThroughputReservationBytes() { java.lang.Object ref = throughputReservation_; 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); throughputReservation_ = b; return b; } else { @@ -2676,6 +2984,7 @@ public java.lang.String getThroughputReservation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2687,8 +2996,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(throughputReservation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, throughputReservation_); } @@ -2712,15 +3020,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.cloud.pubsublite.proto.Topic.ReservationConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Topic.ReservationConfig other = (com.google.cloud.pubsublite.proto.Topic.ReservationConfig) obj; + com.google.cloud.pubsublite.proto.Topic.ReservationConfig other = + (com.google.cloud.pubsublite.proto.Topic.ReservationConfig) obj; - if (!getThroughputReservation() - .equals(other.getThroughputReservation())) return false; + if (!getThroughputReservation().equals(other.getThroughputReservation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2740,87 +3048,94 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig 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.cloud.pubsublite.proto.Topic.ReservationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.Topic.ReservationConfig 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 @@ -2830,39 +3145,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.ReservationConfig} */ - 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.cloud.pubsublite.v1.Topic.ReservationConfig) com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.ReservationConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2872,9 +3189,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; } @java.lang.Override @@ -2893,8 +3210,11 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.ReservationConfig buildPartial() { - com.google.cloud.pubsublite.proto.Topic.ReservationConfig result = new com.google.cloud.pubsublite.proto.Topic.ReservationConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.Topic.ReservationConfig result = + new com.google.cloud.pubsublite.proto.Topic.ReservationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -2910,38 +3230,41 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.ReservationCo 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.cloud.pubsublite.proto.Topic.ReservationConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.ReservationConfig)other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.ReservationConfig) other); } else { super.mergeFrom(other); return this; @@ -2949,7 +3272,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.ReservationConfig other) { - if (other == com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) + return this; if (!other.getThroughputReservation().isEmpty()) { throughputReservation_ = other.throughputReservation_; bitField0_ |= 0x00000001; @@ -2981,17 +3305,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - throughputReservation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + throughputReservation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3001,10 +3327,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object throughputReservation_ = ""; /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3012,13 +3341,13 @@ public Builder mergeFrom(
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return The throughputReservation. */ public java.lang.String getThroughputReservation() { java.lang.Object ref = throughputReservation_; 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(); throughputReservation_ = s; return s; @@ -3027,6 +3356,8 @@ public java.lang.String getThroughputReservation() { } } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3034,15 +3365,14 @@ public java.lang.String getThroughputReservation() {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for throughputReservation. */ - public com.google.protobuf.ByteString - getThroughputReservationBytes() { + public com.google.protobuf.ByteString getThroughputReservationBytes() { java.lang.Object ref = throughputReservation_; 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); throughputReservation_ = b; return b; } else { @@ -3050,6 +3380,8 @@ public java.lang.String getThroughputReservation() { } } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3057,18 +3389,22 @@ public java.lang.String getThroughputReservation() {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @param value The throughputReservation to set. * @return This builder for chaining. */ - public Builder setThroughputReservation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setThroughputReservation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } throughputReservation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3076,6 +3412,7 @@ public Builder setThroughputReservation(
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearThroughputReservation() { @@ -3085,6 +3422,8 @@ public Builder clearThroughputReservation() { return this; } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3092,18 +3431,21 @@ public Builder clearThroughputReservation() {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for throughputReservation to set. * @return This builder for chaining. */ - public Builder setThroughputReservationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setThroughputReservationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); throughputReservation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3116,12 +3458,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.ReservationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.ReservationConfig) private static final com.google.cloud.pubsublite.proto.Topic.ReservationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.ReservationConfig(); } @@ -3130,27 +3472,28 @@ public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3165,13 +3508,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the topic.
    * Structured like:
@@ -3179,6 +3524,7 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInsta
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -3187,14 +3533,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; } } /** + * + * *
    * The name of the topic.
    * Structured like:
@@ -3202,16 +3549,15 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -3222,11 +3568,14 @@ public java.lang.String getName() { public static final int PARTITION_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Topic.PartitionConfig partitionConfig_; /** + * + * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; + * * @return Whether the partitionConfig field is set. */ @java.lang.Override @@ -3234,18 +3583,25 @@ public boolean hasPartitionConfig() { return partitionConfig_ != null; } /** + * + * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; + * * @return The partitionConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfig() { - return partitionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; + return partitionConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() + : partitionConfig_; } /** + * + * *
    * The settings for this topic's partitions.
    * 
@@ -3253,18 +3609,24 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfi * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder() { - return partitionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; + public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder + getPartitionConfigOrBuilder() { + return partitionConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() + : partitionConfig_; } public static final int RETENTION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Topic.RetentionConfig retentionConfig_; /** + * + * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; + * * @return Whether the retentionConfig field is set. */ @java.lang.Override @@ -3272,18 +3634,25 @@ public boolean hasRetentionConfig() { return retentionConfig_ != null; } /** + * + * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; + * * @return The retentionConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfig() { - return retentionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; + return retentionConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() + : retentionConfig_; } /** + * + * *
    * The settings for this topic's message retention.
    * 
@@ -3291,18 +3660,24 @@ public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfi * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder() { - return retentionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; + public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder + getRetentionConfigOrBuilder() { + return retentionConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() + : retentionConfig_; } public static final int RESERVATION_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.Topic.ReservationConfig reservationConfig_; /** + * + * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; + * * @return Whether the reservationConfig field is set. */ @java.lang.Override @@ -3310,18 +3685,25 @@ public boolean hasReservationConfig() { return reservationConfig_ != null; } /** + * + * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; + * * @return The reservationConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationConfig() { - return reservationConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; + return reservationConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() + : reservationConfig_; } /** + * + * *
    * The settings for this topic's Reservation usage.
    * 
@@ -3329,11 +3711,15 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationC * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder() { - return reservationConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; + public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder + getReservationConfigOrBuilder() { + return reservationConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() + : reservationConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3345,8 +3731,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_); } @@ -3372,16 +3757,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (partitionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPartitionConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPartitionConfig()); } if (retentionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRetentionConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRetentionConfig()); } if (reservationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReservationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReservationConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3391,29 +3773,25 @@ 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.cloud.pubsublite.proto.Topic)) { return super.equals(obj); } com.google.cloud.pubsublite.proto.Topic other = (com.google.cloud.pubsublite.proto.Topic) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasPartitionConfig() != other.hasPartitionConfig()) return false; if (hasPartitionConfig()) { - if (!getPartitionConfig() - .equals(other.getPartitionConfig())) return false; + if (!getPartitionConfig().equals(other.getPartitionConfig())) return false; } if (hasRetentionConfig() != other.hasRetentionConfig()) return false; if (hasRetentionConfig()) { - if (!getRetentionConfig() - .equals(other.getRetentionConfig())) return false; + if (!getRetentionConfig().equals(other.getRetentionConfig())) return false; } if (hasReservationConfig() != other.hasReservationConfig()) return false; if (hasReservationConfig()) { - if (!getReservationConfig() - .equals(other.getReservationConfig())) return false; + if (!getReservationConfig().equals(other.getReservationConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3445,130 +3823,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.Topic parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.Topic parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Topic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Topic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Topic parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.Topic parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.Topic 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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; } /** + * + * *
    * Metadata about a topic resource.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.Topic) com.google.cloud.pubsublite.proto.TopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.class, com.google.cloud.pubsublite.proto.Topic.Builder.class); + com.google.cloud.pubsublite.proto.Topic.class, + com.google.cloud.pubsublite.proto.Topic.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3593,9 +3977,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto + .internal_static_google_cloud_pubsublite_v1_Topic_descriptor; } @java.lang.Override @@ -3614,8 +3998,11 @@ public com.google.cloud.pubsublite.proto.Topic build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic buildPartial() { - com.google.cloud.pubsublite.proto.Topic result = new com.google.cloud.pubsublite.proto.Topic(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.Topic result = + new com.google.cloud.pubsublite.proto.Topic(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -3626,19 +4013,18 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.partitionConfig_ = partitionConfigBuilder_ == null - ? partitionConfig_ - : partitionConfigBuilder_.build(); + result.partitionConfig_ = + partitionConfigBuilder_ == null ? partitionConfig_ : partitionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.retentionConfig_ = retentionConfigBuilder_ == null - ? retentionConfig_ - : retentionConfigBuilder_.build(); + result.retentionConfig_ = + retentionConfigBuilder_ == null ? retentionConfig_ : retentionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.reservationConfig_ = reservationConfigBuilder_ == null - ? reservationConfig_ - : reservationConfigBuilder_.build(); + result.reservationConfig_ = + reservationConfigBuilder_ == null + ? reservationConfig_ + : reservationConfigBuilder_.build(); } } @@ -3646,38 +4032,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Topic) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic)other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic) other); } else { super.mergeFrom(other); return this; @@ -3726,38 +4113,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getPartitionConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getRetentionConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getReservationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPartitionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRetentionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getReservationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3767,10 +4154,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3778,13 +4168,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -3793,6 +4183,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3800,15 +4192,14 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -3816,6 +4207,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3823,18 +4216,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3842,6 +4239,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3851,6 +4249,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3858,12 +4258,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3873,41 +4275,55 @@ public Builder setNameBytes( private com.google.cloud.pubsublite.proto.Topic.PartitionConfig partitionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> partitionConfigBuilder_; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, + com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> + partitionConfigBuilder_; /** + * + * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; + * * @return Whether the partitionConfig field is set. */ public boolean hasPartitionConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; + * * @return The partitionConfig. */ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfig() { if (partitionConfigBuilder_ == null) { - return partitionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; + return partitionConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() + : partitionConfig_; } else { return partitionConfigBuilder_.getMessage(); } } /** + * + * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public Builder setPartitionConfig(com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { + public Builder setPartitionConfig( + com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { if (partitionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3921,6 +4337,8 @@ public Builder setPartitionConfig(com.google.cloud.pubsublite.proto.Topic.Partit return this; } /** + * + * *
      * The settings for this topic's partitions.
      * 
@@ -3939,17 +4357,21 @@ public Builder setPartitionConfig( return this; } /** + * + * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public Builder mergePartitionConfig(com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { + public Builder mergePartitionConfig( + com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { if (partitionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - partitionConfig_ != null && - partitionConfig_ != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && partitionConfig_ != null + && partitionConfig_ + != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) { getPartitionConfigBuilder().mergeFrom(value); } else { partitionConfig_ = value; @@ -3962,6 +4384,8 @@ public Builder mergePartitionConfig(com.google.cloud.pubsublite.proto.Topic.Part return this; } /** + * + * *
      * The settings for this topic's partitions.
      * 
@@ -3979,33 +4403,42 @@ public Builder clearPartitionConfig() { return this; } /** + * + * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder getPartitionConfigBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder + getPartitionConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPartitionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder + getPartitionConfigOrBuilder() { if (partitionConfigBuilder_ != null) { return partitionConfigBuilder_.getMessageOrBuilder(); } else { - return partitionConfig_ == null ? - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; + return partitionConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() + : partitionConfig_; } } /** + * + * *
      * The settings for this topic's partitions.
      * 
@@ -4013,14 +4446,17 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getParti * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> + com.google.cloud.pubsublite.proto.Topic.PartitionConfig, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, + com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> getPartitionConfigFieldBuilder() { if (partitionConfigBuilder_ == null) { - partitionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder>( - getPartitionConfig(), - getParentForChildren(), - isClean()); + partitionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.PartitionConfig, + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, + com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder>( + getPartitionConfig(), getParentForChildren(), isClean()); partitionConfig_ = null; } return partitionConfigBuilder_; @@ -4028,41 +4464,55 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getParti private com.google.cloud.pubsublite.proto.Topic.RetentionConfig retentionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.RetentionConfig, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> retentionConfigBuilder_; + com.google.cloud.pubsublite.proto.Topic.RetentionConfig, + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, + com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> + retentionConfigBuilder_; /** + * + * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; + * * @return Whether the retentionConfig field is set. */ public boolean hasRetentionConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; + * * @return The retentionConfig. */ public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfig() { if (retentionConfigBuilder_ == null) { - return retentionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; + return retentionConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() + : retentionConfig_; } else { return retentionConfigBuilder_.getMessage(); } } /** + * + * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public Builder setRetentionConfig(com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { + public Builder setRetentionConfig( + com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { if (retentionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4076,6 +4526,8 @@ public Builder setRetentionConfig(com.google.cloud.pubsublite.proto.Topic.Retent return this; } /** + * + * *
      * The settings for this topic's message retention.
      * 
@@ -4094,17 +4546,21 @@ public Builder setRetentionConfig( return this; } /** + * + * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public Builder mergeRetentionConfig(com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { + public Builder mergeRetentionConfig( + com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { if (retentionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - retentionConfig_ != null && - retentionConfig_ != com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && retentionConfig_ != null + && retentionConfig_ + != com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) { getRetentionConfigBuilder().mergeFrom(value); } else { retentionConfig_ = value; @@ -4117,6 +4573,8 @@ public Builder mergeRetentionConfig(com.google.cloud.pubsublite.proto.Topic.Rete return this; } /** + * + * *
      * The settings for this topic's message retention.
      * 
@@ -4134,33 +4592,42 @@ public Builder clearRetentionConfig() { return this; } /** + * + * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder getRetentionConfigBuilder() { + public com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder + getRetentionConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRetentionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder + getRetentionConfigOrBuilder() { if (retentionConfigBuilder_ != null) { return retentionConfigBuilder_.getMessageOrBuilder(); } else { - return retentionConfig_ == null ? - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; + return retentionConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() + : retentionConfig_; } } /** + * + * *
      * The settings for this topic's message retention.
      * 
@@ -4168,14 +4635,17 @@ public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getReten * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.RetentionConfig, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> + com.google.cloud.pubsublite.proto.Topic.RetentionConfig, + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, + com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> getRetentionConfigFieldBuilder() { if (retentionConfigBuilder_ == null) { - retentionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.RetentionConfig, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder>( - getRetentionConfig(), - getParentForChildren(), - isClean()); + retentionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.RetentionConfig, + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, + com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder>( + getRetentionConfig(), getParentForChildren(), isClean()); retentionConfig_ = null; } return retentionConfigBuilder_; @@ -4183,41 +4653,55 @@ public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getReten private com.google.cloud.pubsublite.proto.Topic.ReservationConfig reservationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.ReservationConfig, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> reservationConfigBuilder_; + com.google.cloud.pubsublite.proto.Topic.ReservationConfig, + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, + com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> + reservationConfigBuilder_; /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; + * * @return Whether the reservationConfig field is set. */ public boolean hasReservationConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; + * * @return The reservationConfig. */ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationConfig() { if (reservationConfigBuilder_ == null) { - return reservationConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; + return reservationConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() + : reservationConfig_; } else { return reservationConfigBuilder_.getMessage(); } } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public Builder setReservationConfig(com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { + public Builder setReservationConfig( + com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { if (reservationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4231,6 +4715,8 @@ public Builder setReservationConfig(com.google.cloud.pubsublite.proto.Topic.Rese return this; } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4249,17 +4735,21 @@ public Builder setReservationConfig( return this; } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public Builder mergeReservationConfig(com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { + public Builder mergeReservationConfig( + com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { if (reservationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - reservationConfig_ != null && - reservationConfig_ != com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && reservationConfig_ != null + && reservationConfig_ + != com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) { getReservationConfigBuilder().mergeFrom(value); } else { reservationConfig_ = value; @@ -4272,6 +4762,8 @@ public Builder mergeReservationConfig(com.google.cloud.pubsublite.proto.Topic.Re return this; } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4289,33 +4781,42 @@ public Builder clearReservationConfig() { return this; } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder getReservationConfigBuilder() { + public com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder + getReservationConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getReservationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder + getReservationConfigOrBuilder() { if (reservationConfigBuilder_ != null) { return reservationConfigBuilder_.getMessageOrBuilder(); } else { - return reservationConfig_ == null ? - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; + return reservationConfig_ == null + ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() + : reservationConfig_; } } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4323,21 +4824,24 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getRes * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.ReservationConfig, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> + com.google.cloud.pubsublite.proto.Topic.ReservationConfig, + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, + com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> getReservationConfigFieldBuilder() { if (reservationConfigBuilder_ == null) { - reservationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.ReservationConfig, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder>( - getReservationConfig(), - getParentForChildren(), - isClean()); + reservationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.ReservationConfig, + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, + com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder>( + getReservationConfig(), getParentForChildren(), isClean()); reservationConfig_ = null; } return reservationConfigBuilder_; } + @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); } @@ -4347,12 +4851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic) private static final com.google.cloud.pubsublite.proto.Topic DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic(); } @@ -4361,27 +4865,27 @@ public static com.google.cloud.pubsublite.proto.Topic getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Topic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4396,6 +4900,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java index 0c34bc665..8a6add209 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/common.proto package com.google.cloud.pubsublite.proto; -public interface TopicOrBuilder extends +public interface TopicOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the topic.
    * Structured like:
@@ -15,10 +33,13 @@ public interface TopicOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the topic.
    * Structured like:
@@ -26,30 +47,38 @@ public interface TopicOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; + * * @return Whether the partitionConfig field is set. */ boolean hasPartitionConfig(); /** + * + * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; + * * @return The partitionConfig. */ com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfig(); /** + * + * *
    * The settings for this topic's partitions.
    * 
@@ -59,24 +88,32 @@ public interface TopicOrBuilder extends com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder(); /** + * + * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; + * * @return Whether the retentionConfig field is set. */ boolean hasRetentionConfig(); /** + * + * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; + * * @return The retentionConfig. */ com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfig(); /** + * + * *
    * The settings for this topic's message retention.
    * 
@@ -86,29 +123,38 @@ public interface TopicOrBuilder extends com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder(); /** + * + * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; + * * @return Whether the reservationConfig field is set. */ boolean hasReservationConfig(); /** + * + * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; + * * @return The reservationConfig. */ com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationConfig(); /** + * + * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder(); + com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder + getReservationConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java index 8b7927cda..9c6158ce7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java @@ -1,60 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response for GetTopicPartitions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.TopicPartitions} */ -public final class TopicPartitions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TopicPartitions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.TopicPartitions) TopicPartitionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TopicPartitions.newBuilder() to construct. private TopicPartitions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TopicPartitions() { - } + + private TopicPartitions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TopicPartitions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.TopicPartitions.class, com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); + com.google.cloud.pubsublite.proto.TopicPartitions.class, + com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); } public static final int PARTITION_COUNT_FIELD_NUMBER = 1; private long partitionCount_ = 0L; /** + * + * *
    * The number of partitions in the topic.
    * 
* * int64 partition_count = 1; + * * @return The partitionCount. */ @java.lang.Override @@ -63,6 +84,7 @@ public long getPartitionCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,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 (partitionCount_ != 0L) { output.writeInt64(1, partitionCount_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (partitionCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, partitionCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, partitionCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,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.cloud.pubsublite.proto.TopicPartitions)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.TopicPartitions other = (com.google.cloud.pubsublite.proto.TopicPartitions) obj; + com.google.cloud.pubsublite.proto.TopicPartitions other = + (com.google.cloud.pubsublite.proto.TopicPartitions) obj; - if (getPartitionCount() - != other.getPartitionCount()) return false; + if (getPartitionCount() != other.getPartitionCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -121,137 +141,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPartitionCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.TopicPartitions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions 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.cloud.pubsublite.proto.TopicPartitions 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 GetTopicPartitions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.TopicPartitions} */ - 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.cloud.pubsublite.v1.TopicPartitions) com.google.cloud.pubsublite.proto.TopicPartitionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.TopicPartitions.class, com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); + com.google.cloud.pubsublite.proto.TopicPartitions.class, + com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.TopicPartitions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,9 +286,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; } @java.lang.Override @@ -282,8 +307,11 @@ public com.google.cloud.pubsublite.proto.TopicPartitions build() { @java.lang.Override public com.google.cloud.pubsublite.proto.TopicPartitions buildPartial() { - com.google.cloud.pubsublite.proto.TopicPartitions result = new com.google.cloud.pubsublite.proto.TopicPartitions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.TopicPartitions result = + new com.google.cloud.pubsublite.proto.TopicPartitions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -299,38 +327,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.TopicPartitions res 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.cloud.pubsublite.proto.TopicPartitions) { - return mergeFrom((com.google.cloud.pubsublite.proto.TopicPartitions)other); + return mergeFrom((com.google.cloud.pubsublite.proto.TopicPartitions) other); } else { super.mergeFrom(other); return this; @@ -338,7 +367,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.TopicPartitions other) { - if (other == com.google.cloud.pubsublite.proto.TopicPartitions.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.TopicPartitions.getDefaultInstance()) + return this; if (other.getPartitionCount() != 0L) { setPartitionCount(other.getPartitionCount()); } @@ -368,17 +398,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - partitionCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + partitionCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -388,15 +420,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long partitionCount_ ; + private long partitionCount_; /** + * + * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; + * * @return The partitionCount. */ @java.lang.Override @@ -404,27 +440,33 @@ public long getPartitionCount() { return partitionCount_; } /** + * + * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; + * * @param value The partitionCount to set. * @return This builder for chaining. */ public Builder setPartitionCount(long value) { - + partitionCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; + * * @return This builder for chaining. */ public Builder clearPartitionCount() { @@ -433,9 +475,9 @@ public Builder clearPartitionCount() { 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); } @@ -445,12 +487,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.TopicPartitions) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.TopicPartitions) private static final com.google.cloud.pubsublite.proto.TopicPartitions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.TopicPartitions(); } @@ -459,27 +501,27 @@ public static com.google.cloud.pubsublite.proto.TopicPartitions getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TopicPartitions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TopicPartitions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -494,6 +536,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.TopicPartitions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java new file mode 100644 index 000000000..6e50a3972 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto + +package com.google.cloud.pubsublite.proto; + +public interface TopicPartitionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.TopicPartitions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of partitions in the topic.
+   * 
+ * + * int64 partition_count = 1; + * + * @return The partitionCount. + */ + long getPartitionCount(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java new file mode 100644 index 000000000..99bb8c56a --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java @@ -0,0 +1,194 @@ +/* + * 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/cloud/pubsublite/v1/topic_stats.proto + +package com.google.cloud.pubsublite.proto; + +public final class TopicStatsProto { + private TopicStatsProto() {} + + 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_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_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,google/cloud/pubsublite/v1/topic_stats" + + ".proto\022\032google.cloud.pubsublite.v1\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032\'google/cl" + + "oud/pubsublite/v1/common.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\336\001\n\032ComputeMessa" + + "geStatsRequest\0226\n\005topic\030\001 \001(\tB\'\340A\002\372A!\n\037p" + + "ubsublite.googleapis.com/Topic\022\026\n\tpartit" + + "ion\030\002 \001(\003B\003\340A\002\0228\n\014start_cursor\030\003 \001(\0132\".g" + + "oogle.cloud.pubsublite.v1.Cursor\0226\n\nend_" + + "cursor\030\004 \001(\0132\".google.cloud.pubsublite.v" + + "1.Cursor\"\275\001\n\033ComputeMessageStatsResponse" + + "\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_bytes" + + "\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0226\n\022minimum_even" + + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\"j\n\030ComputeHeadCursorRequest\0226\n\005topic\030\001 " + + "\001(\tB\'\340A\002\372A!\n\037pubsublite.googleapis.com/T" + + "opic\022\026\n\tpartition\030\002 \001(\003B\003\340A\002\"T\n\031ComputeH" + + "eadCursorResponse\0227\n\013head_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\"\247\001\n\030C" + + "omputeTimeCursorRequest\0226\n\005topic\030\001 \001(\tB\'" + + "\340A\002\372A!\n\037pubsublite.googleapis.com/Topic\022" + + "\026\n\tpartition\030\002 \001(\003B\003\340A\002\022;\n\006target\030\003 \001(\0132" + + "&.google.cloud.pubsublite.v1.TimeTargetB" + + "\003\340A\002\"O\n\031ComputeTimeCursorResponse\0222\n\006cur" + + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + + "ursor2\362\005\n\021TopicStatsService\022\335\001\n\023ComputeM" + + "essageStats\0226.google.cloud.pubsublite.v1" + + ".ComputeMessageStatsRequest\0327.google.clo" + + "ud.pubsublite.v1.ComputeMessageStatsResp" + + "onse\"U\202\323\344\223\002O\"J/v1/topicStats/{topic=proj" + + "ects/*/locations/*/topics/*}:computeMess" + + "ageStats:\001*\022\325\001\n\021ComputeHeadCursor\0224.goog" + + "le.cloud.pubsublite.v1.ComputeHeadCursor" + + "Request\0325.google.cloud.pubsublite.v1.Com" + + "puteHeadCursorResponse\"S\202\323\344\223\002M\"H/v1/topi" + + "cStats/{topic=projects/*/locations/*/top" + + "ics/*}:computeHeadCursor:\001*\022\325\001\n\021ComputeT" + + "imeCursor\0224.google.cloud.pubsublite.v1.C" + + "omputeTimeCursorRequest\0325.google.cloud.p" + + "ubsublite.v1.ComputeTimeCursorResponse\"S" + + "\202\323\344\223\002M\"H/v1/topicStats/{topic=projects/*" + + "/locations/*/topics/*}:computeTimeCursor" + + ":\001*\032M\312A\031pubsublite.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\320\001\n!com.google.cloud.pubsublite.proto" + + "B\017TopicStatsProtoP\001Z>cloud.google.com/go" + + "/pubsublite/apiv1/pubsublitepb;pubsublit" + + "epb\252\002\032Google.Cloud.PubSubLite.V1\312\002\032Googl" + + "e\\Cloud\\PubSubLite\\V1\352\002\035Google::Cloud::P" + + "ubSubLite::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.cloud.pubsublite.proto.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor, + new java.lang.String[] { + "Topic", "Partition", "StartCursor", "EndCursor", + }); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor, + new java.lang.String[] { + "MessageCount", "MessageBytes", "MinimumPublishTime", "MinimumEventTime", + }); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor, + new java.lang.String[] { + "Topic", "Partition", + }); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor, + new java.lang.String[] { + "HeadCursor", + }); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor, + new java.lang.String[] { + "Topic", "Partition", "Target", + }); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor, + new java.lang.String[] { + "Cursor", + }); + 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.oauthScopes); + 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.cloud.pubsublite.proto.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java index e231d27d2..652103bdf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java @@ -1,60 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for UpdateReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateReservationRequest} */ -public final class UpdateReservationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateReservationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.UpdateReservationRequest) UpdateReservationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateReservationRequest.newBuilder() to construct. private UpdateReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateReservationRequest() { - } + + private UpdateReservationRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateReservationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, + com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); } public static final int RESERVATION_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Reservation reservation_; /** + * + * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reservation field is set. */ @java.lang.Override @@ -62,37 +85,54 @@ public boolean hasReservation() { return reservation_ != null; } /** + * + * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reservation. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Reservation getReservation() { - return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; + return reservation_ == null + ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() + : reservation_; } /** + * + * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { - return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; + return reservation_ == null + ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() + : reservation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .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 @@ -100,11 +140,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .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 @@ -112,11 +156,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,6 +171,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reservation_ != null) { output.writeMessage(1, getReservation()); } @@ -153,12 +200,10 @@ public int getSerializedSize() { size = 0; if (reservation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReservation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReservation()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +213,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.UpdateReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.UpdateReservationRequest other = (com.google.cloud.pubsublite.proto.UpdateReservationRequest) obj; + com.google.cloud.pubsublite.proto.UpdateReservationRequest other = + (com.google.cloud.pubsublite.proto.UpdateReservationRequest) obj; if (hasReservation() != other.hasReservation()) return false; if (hasReservation()) { - if (!getReservation() - .equals(other.getReservation())) return false; + if (!getReservation().equals(other.getReservation())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -210,129 +254,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest 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.cloud.pubsublite.proto.UpdateReservationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.UpdateReservationRequest 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 UpdateReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateReservationRequest} */ - 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.cloud.pubsublite.v1.UpdateReservationRequest) com.google.cloud.pubsublite.proto.UpdateReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, + com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.UpdateReservationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +402,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; } @java.lang.Override @@ -372,8 +423,11 @@ public com.google.cloud.pubsublite.proto.UpdateReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.UpdateReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.UpdateReservationRequest result = new com.google.cloud.pubsublite.proto.UpdateReservationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.UpdateReservationRequest result = + new com.google.cloud.pubsublite.proto.UpdateReservationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,14 +435,11 @@ public com.google.cloud.pubsublite.proto.UpdateReservationRequest buildPartial() private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateReservationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.reservation_ = reservationBuilder_ == null - ? reservation_ - : reservationBuilder_.build(); + result.reservation_ = + reservationBuilder_ == null ? reservation_ : reservationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -396,38 +447,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateReservationRe 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.cloud.pubsublite.proto.UpdateReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.UpdateReservationRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.UpdateReservationRequest) other); } else { super.mergeFrom(other); return this; @@ -435,7 +487,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.UpdateReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.UpdateReservationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.UpdateReservationRequest.getDefaultInstance()) + return this; if (other.hasReservation()) { mergeReservation(other.getReservation()); } @@ -468,26 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getReservationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getReservationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,43 +549,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.pubsublite.proto.Reservation reservation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> reservationBuilder_; + com.google.cloud.pubsublite.proto.Reservation, + com.google.cloud.pubsublite.proto.Reservation.Builder, + com.google.cloud.pubsublite.proto.ReservationOrBuilder> + reservationBuilder_; /** + * + * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reservation field is set. */ public boolean hasReservation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reservation. */ public com.google.cloud.pubsublite.proto.Reservation getReservation() { if (reservationBuilder_ == null) { - return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; + return reservation_ == null + ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() + : reservation_; } else { return reservationBuilder_.getMessage(); } } /** + * + * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { @@ -549,11 +621,15 @@ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation valu return this; } /** + * + * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReservation( com.google.cloud.pubsublite.proto.Reservation.Builder builderForValue) { @@ -567,17 +643,21 @@ public Builder setReservation( return this; } /** + * + * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - reservation_ != null && - reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && reservation_ != null + && reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { getReservationBuilder().mergeFrom(value); } else { reservation_ = value; @@ -590,11 +670,15 @@ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation va return this; } /** + * + * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReservation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -607,11 +691,15 @@ public Builder clearReservation() { return this; } /** + * + * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuilder() { bitField0_ |= 0x00000001; @@ -619,36 +707,48 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuild return getReservationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { if (reservationBuilder_ != null) { return reservationBuilder_.getMessageOrBuilder(); } else { - return reservation_ == null ? - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; + return reservation_ == null + ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() + : reservation_; } } /** + * + * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> + com.google.cloud.pubsublite.proto.Reservation, + com.google.cloud.pubsublite.proto.Reservation.Builder, + com.google.cloud.pubsublite.proto.ReservationOrBuilder> getReservationFieldBuilder() { if (reservationBuilder_ == null) { - reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder>( - getReservation(), - getParentForChildren(), - isClean()); + reservationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Reservation, + com.google.cloud.pubsublite.proto.Reservation.Builder, + com.google.cloud.pubsublite.proto.ReservationOrBuilder>( + getReservation(), getParentForChildren(), isClean()); reservation_ = null; } return reservationBuilder_; @@ -656,39 +756,55 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu 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. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .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. A mask specifying the reservation fields to change.
      * 
* - * .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) { @@ -704,14 +820,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -722,17 +840,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -745,11 +866,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -762,11 +886,14 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -774,43 +901,53 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .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. A mask specifying the reservation fields to change.
      * 
* - * .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); } @@ -820,12 +957,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.UpdateReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.UpdateReservationRequest) private static final com.google.cloud.pubsublite.proto.UpdateReservationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.UpdateReservationRequest(); } @@ -834,27 +971,27 @@ public static com.google.cloud.pubsublite.proto.UpdateReservationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,6 +1006,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.UpdateReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java index 81ce74cd4..91cb9e232 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java @@ -1,63 +1,104 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface UpdateReservationRequestOrBuilder extends +public interface UpdateReservationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.UpdateReservationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reservation field is set. */ boolean hasReservation(); /** + * + * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reservation. */ com.google.cloud.pubsublite.proto.Reservation getReservation(); /** + * + * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder(); /** + * + * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .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. A mask specifying the reservation fields to change.
    * 
* - * .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. A mask specifying the reservation fields to change.
    * 
* - * .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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java index 3865864c5..109923425 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java @@ -1,61 +1,84 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for UpdateSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Subscription subscription_; /** + * + * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subscription field is set. */ @java.lang.Override @@ -63,39 +86,56 @@ public boolean hasSubscription() { return subscription_ != null; } /** + * + * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subscription. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription getSubscription() { - return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() + : subscription_; } /** + * + * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() + : subscription_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .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 @@ -103,11 +143,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .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 @@ -115,11 +159,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .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() { @@ -127,6 +174,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +186,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()); } @@ -156,12 +203,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +216,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.cloud.pubsublite.proto.UpdateSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest other = (com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest other = + (com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) obj; if (hasSubscription() != other.hasSubscription()) return false; if (hasSubscription()) { - if (!getSubscription() - .equals(other.getSubscription())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -213,129 +257,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateSubscriptionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.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 UpdateSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.UpdateSubscriptionRequest) com.google.cloud.pubsublite.proto.UpdateSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override @@ -375,8 +426,11 @@ public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest result = new com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest result = + new com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,14 +438,11 @@ public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest buildPartial( private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.subscription_ = subscriptionBuilder_ == null - ? subscription_ - : subscriptionBuilder_.build(); + result.subscription_ = + subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -399,38 +450,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateSubscriptionR 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.cloud.pubsublite.proto.UpdateSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -438,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.getDefaultInstance()) + return this; if (other.hasSubscription()) { mergeSubscription(other.getSubscription()); } @@ -471,26 +524,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSubscriptionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,46 +552,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.pubsublite.proto.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> subscriptionBuilder_; + com.google.cloud.pubsublite.proto.Subscription, + com.google.cloud.pubsublite.proto.Subscription.Builder, + com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> + subscriptionBuilder_; /** + * + * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subscription field is set. */ public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subscription. */ public com.google.cloud.pubsublite.proto.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() + : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** + * + * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { @@ -555,12 +627,16 @@ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription va return this; } /** + * + * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubscription( com.google.cloud.pubsublite.proto.Subscription.Builder builderForValue) { @@ -574,18 +650,23 @@ public Builder setSubscription( return this; } /** + * + * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - subscription_ != null && - subscription_ != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && subscription_ != null + && subscription_ + != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; @@ -598,12 +679,16 @@ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription return this; } /** + * + * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubscription() { bitField0_ = (bitField0_ & ~0x00000001); @@ -616,12 +701,16 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBuilder() { bitField0_ |= 0x00000001; @@ -629,38 +718,50 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBui return getSubscriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null ? - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() + : subscription_; } } /** + * + * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> + com.google.cloud.pubsublite.proto.Subscription, + com.google.cloud.pubsublite.proto.Subscription.Builder, + com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( - getSubscription(), - getParentForChildren(), - isClean()); + subscriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Subscription, + com.google.cloud.pubsublite.proto.Subscription.Builder, + com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( + getSubscription(), getParentForChildren(), isClean()); subscription_ = null; } return subscriptionBuilder_; @@ -668,39 +769,55 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr 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. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .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. A mask specifying the subscription fields to change.
      * 
* - * .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) { @@ -716,14 +833,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -734,17 +853,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -757,11 +879,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -774,11 +899,14 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -786,43 +914,53 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .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. A mask specifying the subscription fields to change.
      * 
* - * .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); } @@ -832,12 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest(); } @@ -846,27 +984,27 @@ public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +1019,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java index 608fc2ac1..96d395d78 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface UpdateSubscriptionRequestOrBuilder extends +public interface UpdateSubscriptionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subscription field is set. */ boolean hasSubscription(); /** + * + * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subscription. */ com.google.cloud.pubsublite.proto.Subscription getSubscription(); /** + * + * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** + * + * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .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. A mask specifying the subscription fields to change.
    * 
* - * .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. A mask specifying the subscription fields to change.
    * 
* - * .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-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java index 9a2b2de76..94f417de6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java @@ -1,60 +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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; /** + * + * *
  * Request for UpdateTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, + com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Topic topic_; /** + * + * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the topic field is set. */ @java.lang.Override @@ -62,11 +84,15 @@ public boolean hasTopic() { return topic_ != null; } /** + * + * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The topic. */ @java.lang.Override @@ -74,11 +100,14 @@ public com.google.cloud.pubsublite.proto.Topic getTopic() { return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } /** + * + * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { @@ -88,11 +117,15 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .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 @@ -100,11 +133,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .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 @@ -112,11 +149,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,6 +164,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +176,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()); } @@ -153,12 +193,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +206,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.cloud.pubsublite.proto.UpdateTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.UpdateTopicRequest other = (com.google.cloud.pubsublite.proto.UpdateTopicRequest) obj; + com.google.cloud.pubsublite.proto.UpdateTopicRequest other = + (com.google.cloud.pubsublite.proto.UpdateTopicRequest) obj; if (hasTopic() != other.hasTopic()) return false; if (hasTopic()) { - if (!getTopic() - .equals(other.getTopic())) return false; + if (!getTopic().equals(other.getTopic())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -210,129 +247,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.UpdateTopicRequest 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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateTopicRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.UpdateTopicRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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.cloud.pubsublite.proto.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 UpdateTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.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.cloud.pubsublite.v1.UpdateTopicRequest) com.google.cloud.pubsublite.proto.UpdateTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, + com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.UpdateTopicRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; } @java.lang.Override @@ -372,8 +415,11 @@ public com.google.cloud.pubsublite.proto.UpdateTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.UpdateTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.UpdateTopicRequest result = new com.google.cloud.pubsublite.proto.UpdateTopicRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.UpdateTopicRequest result = + new com.google.cloud.pubsublite.proto.UpdateTopicRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,14 +427,10 @@ public com.google.cloud.pubsublite.proto.UpdateTopicRequest buildPartial() { private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateTopicRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.topic_ = topicBuilder_ == null - ? topic_ - : topicBuilder_.build(); + result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -396,38 +438,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateTopicRequest 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.cloud.pubsublite.proto.UpdateTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.UpdateTopicRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.UpdateTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -435,7 +478,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.UpdateTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.UpdateTopicRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.UpdateTopicRequest.getDefaultInstance()) + return this; if (other.hasTopic()) { mergeTopic(other.getTopic()); } @@ -468,26 +512,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTopicFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,43 +540,60 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.pubsublite.proto.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> topicBuilder_; + com.google.cloud.pubsublite.proto.Topic, + com.google.cloud.pubsublite.proto.Topic.Builder, + com.google.cloud.pubsublite.proto.TopicOrBuilder> + topicBuilder_; /** + * + * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the topic field is set. */ public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The topic. */ public com.google.cloud.pubsublite.proto.Topic getTopic() { if (topicBuilder_ == null) { - return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; + return topic_ == null + ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() + : topic_; } else { return topicBuilder_.getMessage(); } } /** + * + * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { @@ -549,14 +609,16 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** + * + * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTopic( - com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { + public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); } else { @@ -567,17 +629,20 @@ public Builder setTopic( return this; } /** + * + * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - topic_ != null && - topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && topic_ != null + && topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { getTopicBuilder().mergeFrom(value); } else { topic_ = value; @@ -590,11 +655,14 @@ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** + * + * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTopic() { bitField0_ = (bitField0_ & ~0x00000001); @@ -607,11 +675,14 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { bitField0_ |= 0x00000001; @@ -619,36 +690,46 @@ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { return getTopicFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { - return topic_ == null ? - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; + return topic_ == null + ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() + : topic_; } } /** + * + * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> + com.google.cloud.pubsublite.proto.Topic, + com.google.cloud.pubsublite.proto.Topic.Builder, + com.google.cloud.pubsublite.proto.TopicOrBuilder> getTopicFieldBuilder() { if (topicBuilder_ == null) { - topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder>( - getTopic(), - getParentForChildren(), - isClean()); + topicBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic, + com.google.cloud.pubsublite.proto.Topic.Builder, + com.google.cloud.pubsublite.proto.TopicOrBuilder>( + getTopic(), getParentForChildren(), isClean()); topic_ = null; } return topicBuilder_; @@ -656,39 +737,55 @@ public com.google.cloud.pubsublite.proto.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. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .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. A mask specifying the topic fields to change.
      * 
* - * .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) { @@ -704,14 +801,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -722,17 +821,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -745,11 +847,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -762,11 +867,14 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -774,43 +882,53 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .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. A mask specifying the topic fields to change.
      * 
* - * .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); } @@ -820,12 +938,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.UpdateTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.UpdateTopicRequest) private static final com.google.cloud.pubsublite.proto.UpdateTopicRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.UpdateTopicRequest(); } @@ -834,27 +952,27 @@ public static com.google.cloud.pubsublite.proto.UpdateTopicRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,6 +987,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.UpdateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java index 3cdd033ed..99566eeec 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java @@ -1,63 +1,101 @@ +/* + * 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/cloud/pubsublite/v1/admin.proto package com.google.cloud.pubsublite.proto; -public interface UpdateTopicRequestOrBuilder extends +public interface UpdateTopicRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.UpdateTopicRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the topic field is set. */ boolean hasTopic(); /** + * + * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The topic. */ com.google.cloud.pubsublite.proto.Topic getTopic(); /** + * + * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder(); /** + * + * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .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. A mask specifying the topic fields to change.
    * 
* - * .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. A mask specifying the topic fields to change.
    * 
* - * .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-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto b/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto rename to proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto b/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto rename to proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto b/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto rename to proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto b/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto rename to proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto b/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto rename to proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto b/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto rename to proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java b/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java rename to samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java