From bcf66f464307babdd0d50e2f3299c46df057fd64 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 8 Jan 2024 21:16:20 +0000 Subject: [PATCH 1/5] fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0 PiperOrigin-RevId: 596645164 Source-Link: https://github.com/googleapis/googleapis/commit/4a0e62ecde2a6459bea8722a33173cfce1e9fb50 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a10ed6a77676c37e60799098d48d0afb16008613 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 --- .../pubsublite/proto/AdminServiceGrpc.java | 2582 ---------------- .../pubsublite/proto/CursorServiceGrpc.java | 615 ---- .../proto/TopicStatsServiceGrpc.java | 659 ---- .../pubsublite/v1/AdminServiceClient.java | 382 ++- .../pubsublite/v1/AdminServiceSettings.java | 1 + .../pubsublite/v1/CursorServiceClient.java | 64 +- .../pubsublite/v1/CursorServiceSettings.java | 1 + .../v1/PartitionAssignmentServiceClient.java | 31 +- .../PartitionAssignmentServiceSettings.java | 1 + .../pubsublite/v1/PublisherServiceClient.java | 30 +- .../v1/PublisherServiceSettings.java | 1 + .../v1/SubscriberServiceClient.java | 30 +- .../v1/SubscriberServiceSettings.java | 1 + .../v1/TopicStatsServiceClient.java | 62 +- .../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 | 6 + .../pubsublite/v1/stub/CursorServiceStub.java | 0 .../v1/stub/CursorServiceStubSettings.java | 6 + .../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 | 6 + .../v1/stub/PublisherServiceStub.java | 0 .../v1/stub/PublisherServiceStubSettings.java | 6 + .../v1/stub/SubscriberServiceStub.java | 0 .../stub/SubscriberServiceStubSettings.java | 6 + .../v1/stub/TopicStatsServiceStub.java | 0 .../stub/TopicStatsServiceStubSettings.java | 6 + .../reflect-config.json | 2666 +++++++++++++++++ .../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 | 1945 ++++++++++++ .../pubsublite/proto/CursorServiceGrpc.java | 485 +++ .../proto/PartitionAssignmentServiceGrpc.java | 206 +- .../proto/PublisherServiceGrpc.java | 195 +- .../proto/SubscriberServiceGrpc.java | 200 +- .../proto/TopicStatsServiceGrpc.java | 523 ++++ .../cloud/pubsublite/proto/AdminProto.java | 554 ++++ .../pubsublite/proto/AttributeValues.java | 329 +- .../proto/AttributeValuesOrBuilder.java | 27 +- .../pubsublite/proto/CommitCursorRequest.java | 453 ++- .../proto/CommitCursorRequestOrBuilder.java | 38 +- .../proto/CommitCursorResponse.java | 248 +- .../proto/CommitCursorResponseOrBuilder.java | 9 + .../cloud/pubsublite/proto/CommonProto.java | 301 ++ .../proto/ComputeHeadCursorRequest.java | 384 +-- .../ComputeHeadCursorRequestOrBuilder.java | 39 + .../proto/ComputeHeadCursorResponse.java | 350 +-- .../ComputeHeadCursorResponseOrBuilder.java | 26 +- .../proto/ComputeMessageStatsRequest.java | 586 ++-- .../ComputeMessageStatsRequestOrBuilder.java | 54 +- .../proto/ComputeMessageStatsResponse.java | 531 ++-- .../ComputeMessageStatsResponseOrBuilder.java | 40 +- .../proto/ComputeTimeCursorRequest.java | 529 ++-- .../ComputeTimeCursorRequestOrBuilder.java | 58 +- .../proto/ComputeTimeCursorResponse.java | 350 +-- .../ComputeTimeCursorResponseOrBuilder.java | 26 +- .../proto/CreateReservationRequest.java | 565 ++-- .../CreateReservationRequestOrBuilder.java | 64 +- .../proto/CreateSubscriptionRequest.java | 600 ++-- .../CreateSubscriptionRequestOrBuilder.java | 67 +- .../pubsublite/proto/CreateTopicRequest.java | 544 ++-- .../proto/CreateTopicRequestOrBuilder.java | 61 +- .../google/cloud/pubsublite/proto/Cursor.java | 274 +- .../pubsublite/proto/CursorOrBuilder.java | 20 + .../cloud/pubsublite/proto/CursorProto.java | 232 ++ .../proto/DeleteReservationRequest.java | 350 +-- .../DeleteReservationRequestOrBuilder.java | 33 + .../proto/DeleteSubscriptionRequest.java | 350 +-- .../DeleteSubscriptionRequestOrBuilder.java | 29 + .../pubsublite/proto/DeleteTopicRequest.java | 347 +-- .../proto/DeleteTopicRequestOrBuilder.java | 29 + .../cloud/pubsublite/proto/ExportConfig.java | 1055 +++---- .../proto/ExportConfigOrBuilder.java | 63 +- .../pubsublite/proto/FlowControlRequest.java | 318 +- .../proto/FlowControlRequestOrBuilder.java | 24 +- .../proto/GetReservationRequest.java | 350 +-- .../proto/GetReservationRequestOrBuilder.java | 33 + .../proto/GetSubscriptionRequest.java | 350 +-- .../GetSubscriptionRequestOrBuilder.java | 29 + .../proto/GetTopicPartitionsRequest.java | 350 +-- .../GetTopicPartitionsRequestOrBuilder.java | 29 + .../pubsublite/proto/GetTopicRequest.java | 347 +-- .../proto/GetTopicRequestOrBuilder.java | 29 + .../proto/InitialCommitCursorRequest.java | 366 +-- .../InitialCommitCursorRequestOrBuilder.java | 30 +- .../proto/InitialCommitCursorResponse.java | 255 +- .../InitialCommitCursorResponseOrBuilder.java | 9 + .../InitialPartitionAssignmentRequest.java | 393 +-- ...alPartitionAssignmentRequestOrBuilder.java | 30 +- .../proto/InitialPublishRequest.java | 389 +-- .../proto/InitialPublishRequestOrBuilder.java | 33 +- .../proto/InitialPublishResponse.java | 248 +- .../InitialPublishResponseOrBuilder.java | 9 + .../proto/InitialSubscribeRequest.java | 500 ++-- .../InitialSubscribeRequestOrBuilder.java | 50 +- .../proto/InitialSubscribeResponse.java | 350 +-- .../InitialSubscribeResponseOrBuilder.java | 26 +- .../proto/ListPartitionCursorsRequest.java | 463 ++- .../ListPartitionCursorsRequestOrBuilder.java | 47 +- .../proto/ListPartitionCursorsResponse.java | 489 ++- ...ListPartitionCursorsResponseOrBuilder.java | 42 +- .../proto/ListReservationTopicsRequest.java | 473 ++- ...ListReservationTopicsRequestOrBuilder.java | 47 +- .../proto/ListReservationTopicsResponse.java | 453 ++- ...istReservationTopicsResponseOrBuilder.java | 45 +- .../proto/ListReservationsRequest.java | 453 ++- .../ListReservationsRequestOrBuilder.java | 47 +- .../proto/ListReservationsResponse.java | 477 ++- .../ListReservationsResponseOrBuilder.java | 45 +- .../proto/ListSubscriptionsRequest.java | 453 ++- .../ListSubscriptionsRequestOrBuilder.java | 47 +- .../proto/ListSubscriptionsResponse.java | 460 ++- .../ListSubscriptionsResponseOrBuilder.java | 45 +- .../proto/ListTopicSubscriptionsRequest.java | 476 ++- ...istTopicSubscriptionsRequestOrBuilder.java | 47 +- .../proto/ListTopicSubscriptionsResponse.java | 456 ++- ...stTopicSubscriptionsResponseOrBuilder.java | 45 +- .../pubsublite/proto/ListTopicsRequest.java | 450 ++- .../proto/ListTopicsRequestOrBuilder.java | 47 +- .../pubsublite/proto/ListTopicsResponse.java | 479 ++- .../proto/ListTopicsResponseOrBuilder.java | 45 +- .../cloud/pubsublite/proto/LocationName.java | 0 .../proto/MessagePublishRequest.java | 443 ++- .../proto/MessagePublishRequestOrBuilder.java | 39 +- .../proto/MessagePublishResponse.java | 1091 +++---- .../MessagePublishResponseOrBuilder.java | 65 +- .../pubsublite/proto/MessageResponse.java | 392 +-- .../proto/MessageResponseOrBuilder.java | 36 +- .../pubsublite/proto/OperationMetadata.java | 563 ++-- .../proto/OperationMetadataOrBuilder.java | 52 +- .../pubsublite/proto/PartitionAssignment.java | 350 +-- .../proto/PartitionAssignmentAck.java | 248 +- .../PartitionAssignmentAckOrBuilder.java | 9 + .../proto/PartitionAssignmentOrBuilder.java | 27 +- .../proto/PartitionAssignmentRequest.java | 527 ++-- .../PartitionAssignmentRequestOrBuilder.java | 37 +- .../pubsublite/proto/PartitionCursor.java | 381 +-- .../proto/PartitionCursorOrBuilder.java | 29 +- .../cloud/pubsublite/proto/PubSubMessage.java | 637 ++-- .../proto/PubSubMessageOrBuilder.java | 60 +- .../pubsublite/proto/PublishRequest.java | 518 ++-- .../proto/PublishRequestOrBuilder.java | 37 +- .../pubsublite/proto/PublishResponse.java | 517 ++-- .../proto/PublishResponseOrBuilder.java | 34 +- .../pubsublite/proto/PublisherProto.java | 161 + .../cloud/pubsublite/proto/Reservation.java | 346 +-- .../pubsublite/proto/ReservationName.java | 0 .../proto/ReservationOrBuilder.java | 30 +- .../cloud/pubsublite/proto/SeekRequest.java | 515 ++-- .../proto/SeekRequestOrBuilder.java | 35 +- .../cloud/pubsublite/proto/SeekResponse.java | 340 +-- .../proto/SeekResponseOrBuilder.java | 26 +- .../proto/SeekSubscriptionRequest.java | 655 ++-- .../SeekSubscriptionRequestOrBuilder.java | 52 +- .../proto/SeekSubscriptionResponse.java | 248 +- .../SeekSubscriptionResponseOrBuilder.java | 9 + .../proto/SequencedCommitCursorRequest.java | 370 +-- ...SequencedCommitCursorRequestOrBuilder.java | 26 +- .../proto/SequencedCommitCursorResponse.java | 310 +- ...equencedCommitCursorResponseOrBuilder.java | 21 + .../pubsublite/proto/SequencedMessage.java | 565 ++-- .../proto/SequencedMessageOrBuilder.java | 45 +- .../proto/StreamingCommitCursorRequest.java | 539 ++-- ...StreamingCommitCursorRequestOrBuilder.java | 34 +- .../proto/StreamingCommitCursorResponse.java | 545 ++-- ...treamingCommitCursorResponseOrBuilder.java | 34 +- .../pubsublite/proto/SubscribeRequest.java | 576 ++-- .../proto/SubscribeRequestOrBuilder.java | 42 +- .../pubsublite/proto/SubscribeResponse.java | 583 ++-- .../proto/SubscribeResponseOrBuilder.java | 42 +- .../pubsublite/proto/SubscriberProto.java | 240 ++ .../cloud/pubsublite/proto/Subscription.java | 1038 +++---- .../pubsublite/proto/SubscriptionName.java | 0 .../proto/SubscriptionOrBuilder.java | 55 +- .../cloud/pubsublite/proto/TimeTarget.java | 476 ++- .../pubsublite/proto/TimeTargetOrBuilder.java | 34 +- .../google/cloud/pubsublite/proto/Topic.java | 2233 ++++++-------- .../cloud/pubsublite/proto/TopicName.java | 0 .../pubsublite/proto/TopicOrBuilder.java | 54 +- .../pubsublite/proto/TopicPartitions.java | 284 +- .../proto/TopicPartitionsOrBuilder.java | 19 + .../pubsublite/proto/TopicStatsProto.java | 174 ++ .../proto/UpdateReservationRequest.java | 521 ++-- .../UpdateReservationRequestOrBuilder.java | 55 +- .../proto/UpdateSubscriptionRequest.java | 522 ++-- .../UpdateSubscriptionRequestOrBuilder.java | 55 +- .../pubsublite/proto/UpdateTopicRequest.java | 500 ++-- .../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 .../cloud/pubsublite/proto/AdminProto.java | 593 ---- .../proto/CommitCursorResponseOrBuilder.java | 24 - .../cloud/pubsublite/proto/CommonProto.java | 333 -- .../ComputeHeadCursorRequestOrBuilder.java | 67 - .../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 - .../PartitionAssignmentAckOrBuilder.java | 24 - .../pubsublite/proto/PublisherProto.java | 182 -- .../SeekSubscriptionResponseOrBuilder.java | 24 - ...equencedCommitCursorResponseOrBuilder.java | 40 - .../pubsublite/proto/SubscriberProto.java | 264 -- .../proto/TopicPartitionsOrBuilder.java | 38 - .../pubsublite/proto/TopicStatsProto.java | 194 -- 364 files changed, 26079 insertions(+), 29854 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 (87%) 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 (91%) 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 (91%) 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 (90%) 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 (91%) 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 (87%) 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 (99%) 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 (99%) 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 (98%) 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 (98%) 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 (98%) 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 (99%) create mode 100644 owl-bot-staging/v1/google-cloud-pubsublite/src/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json 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 (58%) 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 (62%) 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 (55%) 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 (68%) 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 (62%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java (51%) 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 (64%) 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 (58%) 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 (66%) 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 (62%) 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 (67%) 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 (63%) 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 (63%) 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 (70%) 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 (73%) 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 (63%) 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 (62%) 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 (69%) 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 (66%) 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 (66%) 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 (61%) 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 (67%) 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 (73%) 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 (72%) 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 (74%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.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/MessagePublishResponseOrBuilder.java (74%) 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 (66%) 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 (69%) 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 (71%) 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 (69%) 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 (71%) 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 (63%) 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 (62%) 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 (72%) 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 (72%) 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 (76%) 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 (64%) 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 (100%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/common.proto (100%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/cursor.proto (100%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/publisher.proto (100%) rename {proto-google-cloud-pubsublite-v1 => owl-bot-staging/v1/proto-google-cloud-pubsublite-v1}/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto (100%) 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 (100%) 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/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/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 04c820110..000000000 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java +++ /dev/null @@ -1,2582 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 java.lang.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 interface AsyncService { - - /** - * - * - *
-     * Creates a new topic.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReservationTopicsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service AdminService. - * - *
-   * 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, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return AdminServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service AdminService. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service AdminService. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service AdminService. - * - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>(service, METHODID_CREATE_TOPIC))) - .addMethod( - getGetTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic>(service, METHODID_GET_TOPIC))) - .addMethod( - getGetTopicPartitionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions>( - service, 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>( - service, METHODID_LIST_TOPICS))) - .addMethod( - getUpdateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>(service, METHODID_UPDATE_TOPIC))) - .addMethod( - getDeleteTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_TOPIC))) - .addMethod( - getListTopicSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( - service, 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>( - service, METHODID_CREATE_SUBSCRIPTION))) - .addMethod( - getGetSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - service, METHODID_GET_SUBSCRIPTION))) - .addMethod( - getListSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( - service, METHODID_LIST_SUBSCRIPTIONS))) - .addMethod( - getUpdateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - service, METHODID_UPDATE_SUBSCRIPTION))) - .addMethod( - getDeleteSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_SUBSCRIPTION))) - .addMethod( - getSeekSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation>(service, METHODID_SEEK_SUBSCRIPTION))) - .addMethod( - getCreateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - service, METHODID_CREATE_RESERVATION))) - .addMethod( - getGetReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - service, METHODID_GET_RESERVATION))) - .addMethod( - getListReservationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse>( - service, METHODID_LIST_RESERVATIONS))) - .addMethod( - getUpdateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - service, METHODID_UPDATE_RESERVATION))) - .addMethod( - getDeleteReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_RESERVATION))) - .addMethod( - getListReservationTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( - service, METHODID_LIST_RESERVATION_TOPICS))) - .build(); - } - - 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 java.lang.String methodName; - - AdminServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (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 7526b8762..000000000 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java +++ /dev/null @@ -1,615 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 java.lang.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 interface AsyncService { - - /** - * - * - *
-     * Establishes a stream with the server for managing committed cursors.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPartitionCursorsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service CursorService. - * - *
-   * 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, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return CursorServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service CursorService. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service CursorService. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service CursorService. - * - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, 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>( - service, METHODID_COMMIT_CURSOR))) - .addMethod( - getListPartitionCursorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( - service, METHODID_LIST_PARTITION_CURSORS))) - .build(); - } - - 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 java.lang.String methodName; - - CursorServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (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 73e8e224a..000000000 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java +++ /dev/null @@ -1,659 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 java.lang.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 interface AsyncService { - - /** - * - * - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void computeTimeCursor( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeTimeCursorMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TopicStatsService. - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public abstract static class TopicStatsServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return TopicStatsServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TopicStatsService. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TopicStatsService. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TopicStatsService. - * - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, 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>( - service, 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>( - service, METHODID_COMPUTE_TIME_CURSOR))) - .build(); - } - - 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 java.lang.String methodName; - - TopicStatsServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (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 87% 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 index 971cd1570..c5797dada 100644 --- 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 @@ -97,19 +97,375 @@ *

Note: close() needs to be called on the AdminServiceClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
CreateTopic

Creates a new topic.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createTopic(CreateTopicRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createTopic(LocationName parent, Topic topic, String topicId) + *
  • createTopic(String parent, Topic topic, String topicId) + *
+ *

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

+ *
    + *
  • createTopicCallable() + *
+ *
GetTopic

Returns the topic configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getTopic(GetTopicRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getTopic(TopicName name) + *
  • getTopic(String name) + *
+ *

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

+ *
    + *
  • getTopicCallable() + *
+ *
GetTopicPartitions

Returns the partition information for the requested topic.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getTopicPartitions(GetTopicPartitionsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getTopicPartitions(TopicName name) + *
  • getTopicPartitions(String name) + *
+ *

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

+ *
    + *
  • getTopicPartitionsCallable() + *
+ *
ListTopics

Returns the list of topics for the given project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listTopics(ListTopicsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listTopics(LocationName parent) + *
  • listTopics(String parent) + *
+ *

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

+ *
    + *
  • listTopicsPagedCallable() + *
  • listTopicsCallable() + *
+ *
UpdateTopic

Updates properties of the specified topic.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateTopic(UpdateTopicRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateTopic(Topic topic, FieldMask updateMask) + *
+ *

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

+ *
    + *
  • updateTopicCallable() + *
+ *
DeleteTopic

Deletes the specified topic.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteTopic(DeleteTopicRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteTopic(TopicName name) + *
  • deleteTopic(String name) + *
+ *

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

+ *
    + *
  • deleteTopicCallable() + *
+ *
ListTopicSubscriptions

Lists the subscriptions attached to the specified topic.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listTopicSubscriptions(ListTopicSubscriptionsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listTopicSubscriptions(TopicName name) + *
  • listTopicSubscriptions(String name) + *
+ *

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

+ *
    + *
  • listTopicSubscriptionsPagedCallable() + *
  • listTopicSubscriptionsCallable() + *
+ *
CreateSubscription

Creates a new subscription.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createSubscription(CreateSubscriptionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createSubscription(LocationName parent, Subscription subscription, String subscriptionId) + *
  • createSubscription(String parent, Subscription subscription, String subscriptionId) + *
+ *

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

+ *
    + *
  • createSubscriptionCallable() + *
+ *
GetSubscription

Returns the subscription configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSubscription(GetSubscriptionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSubscription(SubscriptionName name) + *
  • getSubscription(String name) + *
+ *

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

+ *
    + *
  • getSubscriptionCallable() + *
+ *
ListSubscriptions

Returns the list of subscriptions for the given project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listSubscriptions(ListSubscriptionsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listSubscriptions(LocationName parent) + *
  • listSubscriptions(String parent) + *
+ *

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

+ *
    + *
  • listSubscriptionsPagedCallable() + *
  • listSubscriptionsCallable() + *
+ *
UpdateSubscription

Updates properties of the specified subscription.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateSubscription(UpdateSubscriptionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateSubscription(Subscription subscription, FieldMask updateMask) + *
+ *

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

+ *
    + *
  • updateSubscriptionCallable() + *
+ *
DeleteSubscription

Deletes the specified subscription.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteSubscription(DeleteSubscriptionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteSubscription(SubscriptionName name) + *
  • deleteSubscription(String name) + *
+ *

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

+ *
    + *
  • deleteSubscriptionCallable() + *
+ *
SeekSubscription

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.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • seekSubscriptionAsync(SeekSubscriptionRequest request) + *
+ *

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

+ *
    + *
  • seekSubscriptionOperationCallable() + *
  • seekSubscriptionCallable() + *
+ *
CreateReservation

Creates a new reservation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createReservation(CreateReservationRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createReservation(LocationName parent, Reservation reservation, String reservationId) + *
  • createReservation(String parent, Reservation reservation, String reservationId) + *
+ *

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

+ *
    + *
  • createReservationCallable() + *
+ *
GetReservation

Returns the reservation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getReservation(GetReservationRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getReservation(ReservationName name) + *
  • getReservation(String name) + *
+ *

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

+ *
    + *
  • getReservationCallable() + *
+ *
ListReservations

Returns the list of reservations for the given project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listReservations(ListReservationsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listReservations(LocationName parent) + *
  • listReservations(String parent) + *
+ *

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

+ *
    + *
  • listReservationsPagedCallable() + *
  • listReservationsCallable() + *
+ *
UpdateReservation

Updates properties of the specified reservation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateReservation(UpdateReservationRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateReservation(Reservation reservation, FieldMask updateMask) + *
+ *

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

+ *
    + *
  • updateReservationCallable() + *
+ *
DeleteReservation

Deletes the specified reservation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteReservation(DeleteReservationRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteReservation(ReservationName name) + *
  • deleteReservation(String name) + *
+ *

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

+ *
    + *
  • deleteReservationCallable() + *
+ *
ListReservationTopics

Lists the topics attached to the specified reservation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listReservationTopics(ListReservationTopicsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listReservationTopics(ReservationName name) + *
  • listReservationTopics(String name) + *
+ *

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

+ *
    + *
  • listReservationTopicsPagedCallable() + *
  • listReservationTopicsCallable() + *
+ *
* *

See the individual methods for example code. * 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 d0d340bbf..2130725a3 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 91% 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 index e31756095..79b5cbd32 100644 --- 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 @@ -70,19 +70,57 @@ *

Note: close() needs to be called on the CursorServiceClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
StreamingCommitCursor

Establishes a stream with the server for managing committed cursors.

+ *

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

+ *
    + *
  • streamingCommitCursorCallable() + *
+ *
CommitCursor

Updates the committed cursor.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • commitCursor(CommitCursorRequest request) + *
+ *

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

+ *
    + *
  • commitCursorCallable() + *
+ *
ListPartitionCursors

Returns all committed cursor information for a subscription.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listPartitionCursors(ListPartitionCursorsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listPartitionCursors(SubscriptionName parent) + *
  • listPartitionCursors(String parent) + *
+ *

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

+ *
    + *
  • listPartitionCursorsPagedCallable() + *
  • listPartitionCursorsCallable() + *
+ *
* *

See the individual methods for example code. * 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 5dd3040dd..db76616b8 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 91% 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 index 8d1fb8747..51f57fb04 100644 --- 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 @@ -56,19 +56,24 @@ * resources such as threads. In the example above, try-with-resources is used, which automatically * calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
+ * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
AssignPartitions

Assign partitions for this client to handle for the specified subscription. + *

The client must send an InitialPartitionAssignmentRequest first. The server will then send at most one unacknowledged PartitionAssignment 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.

+ *

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

+ *
    + *
  • assignPartitionsCallable() + *
+ *
* *

See the individual methods for example code. * 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 fef5c20e2..6b6f0a14d 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 90% 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 index b140f895a..f4ba6e313 100644 --- 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 @@ -57,19 +57,23 @@ * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
+ * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
Publish

Establishes a stream with the server for publishing messages. Once the stream is initialized, the client publishes messages by sending publish requests on the stream. The server responds with a PublishResponse for each PublishRequest sent by the client, in the same order that the requests 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.

+ *

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

+ *
    + *
  • publishCallable() + *
+ *
* *

See the individual methods for example code. * 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 7a9e05572..7bb28513f 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 91% 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 index a14b59934..9d58df753 100644 --- 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 @@ -55,19 +55,23 @@ * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
+ * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
Subscribe

Establishes a stream with the server for receiving messages.

+ *

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

+ *
    + *
  • subscribeCallable() + *
+ *
* *

See the individual methods for example code. * 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 33a0fe82d..84144ef01 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 87% 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 index e69ef7493..6cd455a72 100644 --- 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 @@ -59,19 +59,55 @@ * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
ComputeMessageStats

Compute statistics about a range of messages in a given topic and partition.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • computeMessageStats(ComputeMessageStatsRequest request) + *
+ *

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

+ *
    + *
  • computeMessageStatsCallable() + *
+ *
ComputeHeadCursor

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.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • computeHeadCursor(ComputeHeadCursorRequest request) + *
+ *

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

+ *
    + *
  • computeHeadCursorCallable() + *
+ *
ComputeTimeCursor

Compute the corresponding cursor for a publish or event time in a topic partition.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • computeTimeCursor(ComputeTimeCursorRequest request) + *
+ *

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

+ *
    + *
  • computeTimeCursorCallable() + *
+ *
* *

See the individual methods for example code. * 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 27e13cad1..8f38ee9f0 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 99% 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 index e5ab68265..ff4d6ea3b 100644 --- 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 @@ -599,6 +599,12 @@ public AdminServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "pubsublite"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); 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 99% 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 index 3eb4ac097..20bceed70 100644 --- 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 @@ -205,6 +205,12 @@ public CursorServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "pubsublite"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); 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 35ef5dcb2..5ec6b3a93 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 dee68e5ac..dc13090db 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 de69736f5..5c5a25223 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 98% 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 index 88f51cc07..9d25f117f 100644 --- 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 @@ -107,6 +107,12 @@ public PartitionAssignmentServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "pubsublite"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); 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 98% 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 index 4d5927eb7..99682628c 100644 --- 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 @@ -103,6 +103,12 @@ public PublisherServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "pubsublite"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); 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 98% 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 index f6b63c2ff..cd2fecd9f 100644 --- 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 @@ -104,6 +104,12 @@ public SubscriberServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "pubsublite"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); 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 99% 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 index 372912be3..f52ae9148 100644 --- 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 @@ -126,6 +126,12 @@ public TopicStatsServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "pubsublite"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json new file mode 100644 index 000000000..0a5aca4fc --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json @@ -0,0 +1,2666 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.AttributeValues", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.AttributeValues$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CommitCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CommitCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CommitCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CommitCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateReservationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateReservationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Cursor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Cursor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteReservationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteReservationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig$PubSubConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig$PubSubConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.FlowControlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.FlowControlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetReservationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetReservationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPublishRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPublishRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPublishResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPublishResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialSubscribeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialSubscribeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialSubscribeResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialSubscribeResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse$CursorRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse$CursorRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentAck", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentAck$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionCursor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionCursor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PubSubMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PubSubMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PublishRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PublishRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PublishResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PublishResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Reservation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Reservation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekRequest$NamedTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionRequest$NamedTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SubscribeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SubscribeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SubscribeResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SubscribeResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription$DeliveryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription$DeliveryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription$DeliveryConfig$DeliveryRequirement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.TimeTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.TimeTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig$Capacity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig$Capacity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$ReservationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$ReservationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$RetentionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$RetentionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.TopicPartitions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.TopicPartitions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateReservationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateReservationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file 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..a935e9f7d --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..373322bd1 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..c8d6c9197 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..2e961a394 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..09c50710b --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..ffe707c6c --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..9b1f0f28d --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..b114e4449 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..44584818c --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..033899f44 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..6e257279b --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..73a733441 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..c05dd702f --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..d5836a2c3 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..df1bd2e08 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..8848b4749 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..ad1476de4 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..df34ca094 --- /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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..d10d1b5a4 --- /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,1945 @@ +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 java.lang.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 interface AsyncService { + + /** + *
+     * Creates a new topic.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReservationTopicsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AdminService. + *
+   * 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, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return AdminServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AdminService. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AdminService. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AdminService. + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>( + service, METHODID_CREATE_TOPIC))) + .addMethod( + getGetTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicRequest, + com.google.cloud.pubsublite.proto.Topic>( + service, METHODID_GET_TOPIC))) + .addMethod( + getGetTopicPartitionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, + com.google.cloud.pubsublite.proto.TopicPartitions>( + service, 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>( + service, METHODID_LIST_TOPICS))) + .addMethod( + getUpdateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>( + service, METHODID_UPDATE_TOPIC))) + .addMethod( + getDeleteTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteTopicRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_TOPIC))) + .addMethod( + getListTopicSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( + service, 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>( + service, METHODID_CREATE_SUBSCRIPTION))) + .addMethod( + getGetSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + service, METHODID_GET_SUBSCRIPTION))) + .addMethod( + getListSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( + service, METHODID_LIST_SUBSCRIPTIONS))) + .addMethod( + getUpdateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + service, METHODID_UPDATE_SUBSCRIPTION))) + .addMethod( + getDeleteSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SUBSCRIPTION))) + .addMethod( + getSeekSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, + com.google.longrunning.Operation>( + service, METHODID_SEEK_SUBSCRIPTION))) + .addMethod( + getCreateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + service, METHODID_CREATE_RESERVATION))) + .addMethod( + getGetReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + service, METHODID_GET_RESERVATION))) + .addMethod( + getListReservationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationsRequest, + com.google.cloud.pubsublite.proto.ListReservationsResponse>( + service, METHODID_LIST_RESERVATIONS))) + .addMethod( + getUpdateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + service, METHODID_UPDATE_RESERVATION))) + .addMethod( + getDeleteReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteReservationRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_RESERVATION))) + .addMethod( + getListReservationTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( + service, METHODID_LIST_RESERVATION_TOPICS))) + .build(); + } + + 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 java.lang.String methodName; + + AdminServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (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..ce5f37c13 --- /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,485 @@ +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 java.lang.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 interface AsyncService { + + /** + *
+     * Establishes a stream with the server for managing committed cursors.
+     * 
+ */ + default io.grpc.stub.StreamObserver streamingCommitCursor( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingCommitCursorMethod(), responseObserver); + } + + /** + *
+     * Updates the committed cursor.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPartitionCursorsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service CursorService. + *
+   * 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, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return CursorServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service CursorService. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service CursorService. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service CursorService. + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, 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>( + service, METHODID_COMMIT_CURSOR))) + .addMethod( + getListPartitionCursorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( + service, METHODID_LIST_PARTITION_CURSORS))) + .build(); + } + + 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 java.lang.String methodName; + + CursorServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (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 58% 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 a4a6805ad..126cd48ed 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.
@@ -33,104 +16,85 @@ public final class PartitionAssignmentServiceGrpc {
 
   private PartitionAssignmentServiceGrpc() {}
 
-  public static final java.lang.String SERVICE_NAME =
-      "google.cloud.pubsublite.v1.PartitionAssignmentService";
+  public static final java.lang.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.
@@ -139,8 +103,6 @@ public PartitionAssignmentServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -150,36 +112,29 @@ public interface AsyncService {
      * partitions it is connected to to reflect the new assignment.
      * 
*/ - default io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest> - assignPartitions( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getAssignPartitionsMethod(), responseObserver); + default io.grpc.stub.StreamObserver assignPartitions( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getAssignPartitionsMethod(), responseObserver); } } /** * Base class for the server implementation of the service PartitionAssignmentService. - * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public abstract static class PartitionAssignmentServiceImplBase + public static abstract class PartitionAssignmentServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return PartitionAssignmentServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service PartitionAssignmentService. - * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
@@ -199,8 +154,6 @@ protected PartitionAssignmentServiceStub build(
     }
 
     /**
-     *
-     *
      * 
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -210,10 +163,8 @@ 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); } @@ -221,7 +172,6 @@ protected PartitionAssignmentServiceStub build( /** * A stub to allow clients to do synchronous rpc calls to service PartitionAssignmentService. - * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
@@ -242,9 +192,7 @@ protected PartitionAssignmentServiceBlockingStub build(
   }
 
   /**
-   * A stub to allow clients to do ListenableFuture-style rpc calls to service
-   * PartitionAssignmentService.
-   *
+   * A stub to allow clients to do ListenableFuture-style rpc calls to service PartitionAssignmentService.
    * 
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
@@ -266,11 +214,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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -294,11 +242,8 @@ 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();
       }
@@ -308,18 +253,17 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     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>(
-                    service, METHODID_ASSIGN_PARTITIONS)))
+          getAssignPartitionsMethod(),
+          io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+            new MethodHandlers<
+              com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
+              com.google.cloud.pubsublite.proto.PartitionAssignment>(
+                service, METHODID_ASSIGN_PARTITIONS)))
         .build();
   }
 
-  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
@@ -361,12 +305,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 62%
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 14a840626..b272320ca 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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 java.lang.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
@@ -138,8 +107,6 @@ public PublisherServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Establishes a stream with the server for publishing messages. Once the
      * stream is initialized, the client publishes messages by sending publish
@@ -151,16 +118,13 @@ public interface AsyncService {
      * 
*/ default 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); } } /** * Base class for the server implementation of the service PublisherService. - * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -168,18 +132,16 @@ default io.grpc.stub.StreamObserver
    */
-  public abstract static class PublisherServiceImplBase
+  public static abstract class PublisherServiceImplBase
       implements io.grpc.BindableService, AsyncService {
 
-    @java.lang.Override
-    public final io.grpc.ServerServiceDefinition bindService() {
+    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
       return PublisherServiceGrpc.bindService(this);
     }
   }
 
   /**
    * A stub to allow clients to do asynchronous rpc calls to service PublisherService.
-   *
    * 
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -189,18 +151,18 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class PublisherServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private PublisherServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    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
@@ -212,8 +174,7 @@ 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); } @@ -221,7 +182,6 @@ public io.grpc.stub.StreamObserver * The service that a publisher client application uses to publish messages to * topics. Published messages are retained by the service for the duration of @@ -231,7 +191,8 @@ public io.grpc.stub.StreamObserver { - private PublisherServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PublisherServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -244,7 +205,6 @@ protected PublisherServiceBlockingStub build( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service PublisherService. - * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -254,7 +214,8 @@ protected PublisherServiceBlockingStub build(
    */
   public static final class PublisherServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private PublisherServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private PublisherServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -267,11 +228,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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -295,10 +256,8 @@ 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();
       }
@@ -308,17 +267,17 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     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>(service, METHODID_PUBLISH)))
+          getPublishMethod(),
+          io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+            new MethodHandlers<
+              com.google.cloud.pubsublite.proto.PublishRequest,
+              com.google.cloud.pubsublite.proto.PublishResponse>(
+                service, METHODID_PUBLISH)))
         .build();
   }
 
-  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
@@ -360,12 +319,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 55%
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 9b3ccb0bd..7e9b83b02 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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.
@@ -33,101 +16,85 @@ public final class SubscriberServiceGrpc {
 
   private SubscriberServiceGrpc() {}
 
-  public static final java.lang.String SERVICE_NAME =
-      "google.cloud.pubsublite.v1.SubscriberService";
+  public static final java.lang.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.
@@ -136,41 +103,33 @@ public SubscriberServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Establishes a stream with the server for receiving messages.
      * 
*/ - default io.grpc.stub.StreamObserver - subscribe( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getSubscribeMethod(), responseObserver); + default io.grpc.stub.StreamObserver subscribe( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getSubscribeMethod(), responseObserver); } } /** * Base class for the server implementation of the service SubscriberService. - * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public abstract static class SubscriberServiceImplBase + public static abstract class SubscriberServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return SubscriberServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SubscriberService. - * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
@@ -178,7 +137,8 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class SubscriberServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private SubscriberServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SubscriberServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -189,16 +149,12 @@ 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); } @@ -206,7 +162,6 @@ protected SubscriberServiceStub build( /** * A stub to allow clients to do synchronous rpc calls to service SubscriberService. - * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
@@ -228,7 +183,6 @@ protected SubscriberServiceBlockingStub build(
 
   /**
    * A stub to allow clients to do ListenableFuture-style rpc calls to service SubscriberService.
-   *
    * 
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
@@ -236,7 +190,8 @@ protected SubscriberServiceBlockingStub build(
    */
   public static final class SubscriberServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private SubscriberServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SubscriberServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -249,11 +204,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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -277,10 +232,8 @@ 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();
       }
@@ -290,18 +243,17 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     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>(
-                    service, METHODID_SUBSCRIBE)))
+          getSubscribeMethod(),
+          io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+            new MethodHandlers<
+              com.google.cloud.pubsublite.proto.SubscribeRequest,
+              com.google.cloud.pubsublite.proto.SubscribeResponse>(
+                service, METHODID_SUBSCRIBE)))
         .build();
   }
 
-  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
@@ -343,12 +295,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..7b36d6c03
--- /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,523 @@
+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 java.lang.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 interface AsyncService { + + /** + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeTimeCursorMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TopicStatsService. + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static abstract class TopicStatsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return TopicStatsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TopicStatsService. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TopicStatsService. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TopicStatsService. + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, 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>( + service, 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>( + service, METHODID_COMPUTE_TIME_CURSOR))) + .build(); + } + + 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 java.lang.String methodName; + + TopicStatsServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (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..c4d2dbe6d --- /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,554 @@ +// 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\"\240\001" + + "\n\022CreateTopicRequest\022:\n\006parent\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!locations.googleapis.com/Location" + + "\0226\n\005topic\030\002 \001(\0132!.google.cloud.pubsublit" + + "e.v1.TopicB\004\342A\001\002\022\026\n\010topic_id\030\003 \001(\tB\004\342A\001\002" + + "\"I\n\017GetTopicRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372" + + "A!\n\037pubsublite.googleapis.com/Topic\"S\n\031G" + + "etTopicPartitionsRequest\0226\n\004name\030\001 \001(\tB(" + + "\342A\001\002\372A!\n\037pubsublite.googleapis.com/Topic" + + "\"*\n\017TopicPartitions\022\027\n\017partition_count\030\001" + + " \001(\003\"v\n\021ListTopicsRequest\022:\n\006parent\030\001 \001(" + + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" + + "ation\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!.google.cloud.pubsublite.v1.Topic\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\203\001\n\022UpdateTopicRe" + + "quest\0226\n\005topic\030\001 \001(\0132!.google.cloud.pubs" + + "ublite.v1.TopicB\004\342A\001\002\0225\n\013update_mask\030\002 \001" + + "(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"L\n\022" + + "DeleteTopicRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A" + + "!\n\037pubsublite.googleapis.com/Topic\"~\n\035Li" + + "stTopicSubscriptionsRequest\0226\n\004name\030\001 \001(" + + "\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.com/To" + + "pic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"P\n\036ListTopicSubscriptionsResponse\022\025\n\r" + + "subscriptions\030\001 \003(\t\022\027\n\017next_page_token\030\002" + + " \001(\t\"\322\001\n\031CreateSubscriptionRequest\022:\n\006pa" + + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" + + "s.com/Location\022D\n\014subscription\030\002 \001(\0132(.g" + + "oogle.cloud.pubsublite.v1.SubscriptionB\004" + + "\342A\001\002\022\035\n\017subscription_id\030\003 \001(\tB\004\342A\001\002\022\024\n\014s" + + "kip_backlog\030\004 \001(\010\"W\n\026GetSubscriptionRequ" + + "est\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&pubsublite.g" + + "oogleapis.com/Subscription\"}\n\030ListSubscr" + + "iptionsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"u\n\031Lis" + + "tSubscriptionsResponse\022?\n\rsubscriptions\030" + + "\001 \003(\0132(.google.cloud.pubsublite.v1.Subsc" + + "ription\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n\031Upd" + + "ateSubscriptionRequest\022D\n\014subscription\030\001" + + " \001(\0132(.google.cloud.pubsublite.v1.Subscr" + + "iptionB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\004\342A\001\002\"Z\n\031DeleteSub" + + "scriptionRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&pubsublite.googleapis.com/Subscription\"" + + "\273\002\n\027SeekSubscriptionRequest\022=\n\004name\030\001 \001(" + + "\tB/\342A\001\002\372A(\n&pubsublite.googleapis.com/Su" + + "bscription\022W\n\014named_target\030\002 \001(\0162?.googl" + + "e.cloud.pubsublite.v1.SeekSubscriptionRe" + + "quest.NamedTargetH\000\022=\n\013time_target\030\003 \001(\013" + + "2&.google.cloud.pubsublite.v1.TimeTarget" + + "H\000\"?\n\013NamedTarget\022\034\n\030NAMED_TARGET_UNSPEC" + + "IFIED\020\000\022\010\n\004TAIL\020\001\022\010\n\004HEAD\020\002B\010\n\006target\"\032\n" + + "\030SeekSubscriptionResponse\"\220\001\n\021OperationM" + + "etadata\022/\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014" + + "\n\004verb\030\004 \001(\t\"\270\001\n\030CreateReservationReques" + + "t\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.go" + + "ogleapis.com/Location\022B\n\013reservation\030\002 \001" + + "(\0132\'.google.cloud.pubsublite.v1.Reservat" + + "ionB\004\342A\001\002\022\034\n\016reservation_id\030\003 \001(\tB\004\342A\001\002\"" + + "U\n\025GetReservationRequest\022<\n\004name\030\001 \001(\tB." + + "\342A\001\002\372A\'\n%pubsublite.googleapis.com/Reser" + + "vation\"|\n\027ListReservationsRequest\022:\n\006par" + + "ent\030\001 \001(\tB*\342A\001\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\"r\n\030ListReservationsResponse" + + "\022=\n\014reservations\030\001 \003(\0132\'.google.cloud.pu" + + "bsublite.v1.Reservation\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\225\001\n\030UpdateReservationRequest\022B\n" + + "\013reservation\030\001 \001(\0132\'.google.cloud.pubsub" + + "lite.v1.ReservationB\004\342A\001\002\0225\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002" + + "\"X\n\030DeleteReservationRequest\022<\n\004name\030\001 \001" + + "(\tB.\342A\001\002\372A\'\n%pubsublite.googleapis.com/R" + + "eservation\"\203\001\n\034ListReservationTopicsRequ" + + "est\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%pubsublite.g" + + "oogleapis.com/Reservation\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035ListReservat" + + "ionTopicsResponse\022\016\n\006topics\030\001 \003(\t\022\027\n\017nex" + + "t_page_token\030\002 \001(\t2\257\036\n\014AdminService\022\271\001\n\013" + + "CreateTopic\022..google.cloud.pubsublite.v1" + + ".CreateTopicRequest\032!.google.cloud.pubsu" + + "blite.v1.Topic\"W\332A\025parent,topic,topic_id" + + "\202\323\344\223\0029\"0/v1/admin/{parent=projects/*/loc" + + "ations/*}/topics:\005topic\022\233\001\n\010GetTopic\022+.g" + + "oogle.cloud.pubsublite.v1.GetTopicReques" + + "t\032!.google.cloud.pubsublite.v1.Topic\"?\332A" + + "\004name\202\323\344\223\0022\0220/v1/admin/{name=projects/*/" + + "locations/*/topics/*}\022\304\001\n\022GetTopicPartit" + + "ions\0225.google.cloud.pubsublite.v1.GetTop" + + "icPartitionsRequest\032+.google.cloud.pubsu" + + "blite.v1.TopicPartitions\"J\332A\004name\202\323\344\223\002=\022" + + ";/v1/admin/{name=projects/*/locations/*/" + + "topics/*}/partitions\022\256\001\n\nListTopics\022-.go" + + "ogle.cloud.pubsublite.v1.ListTopicsReque" + + "st\032..google.cloud.pubsublite.v1.ListTopi" + + "csResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/admin/{" + + "parent=projects/*/locations/*}/topics\022\273\001" + + "\n\013UpdateTopic\022..google.cloud.pubsublite." + + "v1.UpdateTopicRequest\032!.google.cloud.pub" + + "sublite.v1.Topic\"Y\332A\021topic,update_mask\202\323" + + "\344\223\002?26/v1/admin/{topic.name=projects/*/l" + + "ocations/*/topics/*}:\005topic\022\226\001\n\013DeleteTo" + + "pic\022..google.cloud.pubsublite.v1.DeleteT" + + "opicRequest\032\026.google.protobuf.Empty\"?\332A\004" + + "name\202\323\344\223\0022*0/v1/admin/{name=projects/*/l" + + "ocations/*/topics/*}\022\336\001\n\026ListTopicSubscr" + + "iptions\0229.google.cloud.pubsublite.v1.Lis" + + "tTopicSubscriptionsRequest\032:.google.clou" + + "d.pubsublite.v1.ListTopicSubscriptionsRe" + + "sponse\"M\332A\004name\202\323\344\223\002@\022>/v1/admin/{name=p" + + "rojects/*/locations/*/topics/*}/subscrip" + + "tions\022\352\001\n\022CreateSubscription\0225.google.cl" + + "oud.pubsublite.v1.CreateSubscriptionRequ" + + "est\032(.google.cloud.pubsublite.v1.Subscri" + + "ption\"s\332A#parent,subscription,subscripti" + + "on_id\202\323\344\223\002G\"7/v1/admin/{parent=projects/" + + "*/locations/*}/subscriptions:\014subscripti" + + "on\022\267\001\n\017GetSubscription\0222.google.cloud.pu" + + "bsublite.v1.GetSubscriptionRequest\032(.goo" + + "gle.cloud.pubsublite.v1.Subscription\"F\332A" + + "\004name\202\323\344\223\0029\0227/v1/admin/{name=projects/*/" + + "locations/*/subscriptions/*}\022\312\001\n\021ListSub" + + "scriptions\0224.google.cloud.pubsublite.v1." + + "ListSubscriptionsRequest\0325.google.cloud." + + "pubsublite.v1.ListSubscriptionsResponse\"" + + "H\332A\006parent\202\323\344\223\0029\0227/v1/admin/{parent=proj" + + "ects/*/locations/*}/subscriptions\022\354\001\n\022Up" + + "dateSubscription\0225.google.cloud.pubsubli" + + "te.v1.UpdateSubscriptionRequest\032(.google" + + ".cloud.pubsublite.v1.Subscription\"u\332A\030su" + + "bscription,update_mask\202\323\344\223\002T2D/v1/admin/" + + "{subscription.name=projects/*/locations/" + + "*/subscriptions/*}:\014subscription\022\253\001\n\022Del" + + "eteSubscription\0225.google.cloud.pubsublit" + + "e.v1.DeleteSubscriptionRequest\032\026.google." + + "protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v1/admin" + + "/{name=projects/*/locations/*/subscripti" + + "ons/*}\022\337\001\n\020SeekSubscription\0223.google.clo" + + "ud.pubsublite.v1.SeekSubscriptionRequest" + + "\032\035.google.longrunning.Operation\"w\312A-\n\030Se" + + "ekSubscriptionResponse\022\021OperationMetadat" + + "a\202\323\344\223\002A\"cloud.google.com/go/pubsublite/apiv1/p" + + "ubsublitepb;pubsublitepb\252\002\032Google.Cloud." + + "PubSubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\" + + "V1\352\002\035Google::Cloud::PubSubLite::V1b\006prot" + + "o3" + }; + 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 d642efa12..cf52d121f 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,109 +1,81 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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. */ @@ -112,7 +84,6 @@ public com.google.protobuf.ByteString getValues(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,7 +95,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)); } @@ -140,7 +112,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(); @@ -153,15 +126,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; } @@ -183,135 +156,131 @@ 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(); @@ -321,9 +290,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 @@ -342,18 +311,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); @@ -369,39 +334,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; @@ -409,8 +373,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_; @@ -447,20 +410,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) { @@ -470,12 +431,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_); @@ -483,44 +441,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. */ @@ -528,76 +477,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() { @@ -606,9 +541,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); } @@ -618,12 +553,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(); } @@ -632,27 +567,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; @@ -667,4 +602,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 3af18449d..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 14cd6068b..280d0994b 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,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -83,29 +60,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 { @@ -116,15 +93,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 @@ -135,14 +109,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 @@ -150,25 +121,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.
    * 
@@ -177,13 +141,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; @@ -195,7 +156,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_); } @@ -218,10 +180,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; @@ -231,19 +195,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; @@ -259,7 +225,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(); @@ -270,136 +237,131 @@ 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(); @@ -415,9 +377,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 @@ -436,11 +398,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; } @@ -454,7 +413,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(); } } @@ -462,39 +423,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; @@ -502,8 +462,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; @@ -541,31 +500,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) { @@ -575,25 +532,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; @@ -602,21 +556,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 { @@ -624,35 +577,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() { @@ -662,21 +608,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; @@ -684,17 +626,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 @@ -702,15 +641,12 @@ 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. */ @@ -722,15 +658,12 @@ public Builder setPartition(long value) { 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() { @@ -742,47 +675,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.
      * 
@@ -803,15 +723,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 { @@ -822,8 +741,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -832,9 +749,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; @@ -847,8 +764,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -866,8 +781,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -880,8 +793,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -892,14 +803,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.
      * 
@@ -907,24 +815,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); } @@ -934,12 +839,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(); } @@ -948,27 +853,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; @@ -983,4 +888,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 f849ae49c..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 51df58a09..0d954cfa5 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,67 +1,48 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; @@ -73,7 +54,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); } @@ -91,13 +73,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; @@ -116,136 +97,131 @@ 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(); @@ -253,9 +229,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 @@ -274,8 +250,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; } @@ -284,39 +259,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; @@ -324,8 +298,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; @@ -352,13 +325,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) { @@ -368,9 +340,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); } @@ -380,12 +352,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(); } @@ -394,27 +366,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; @@ -429,4 +401,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..0e19f92c4 --- /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}\"\303\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " + + "\001(\0162..google.cloud.pubsublite.v1.ExportC" + + "onfig.State\022K\n\rcurrent_state\030\006 \001(\0162..goo" + + "gle.cloud.pubsublite.v1.ExportConfig.Sta" + + "teB\004\342A\001\003\022C\n\021dead_letter_topic\030\005 \001(\tB(\342A\001" + + "\001\372A!\n\037pubsublite.googleapis.com/Topic\022N\n" + + "\rpubsub_config\030\003 \001(\01325.google.cloud.pubs" + + "ublite.v1.ExportConfig.PubSubConfigH\000\032\035\n" + + "\014PubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUS" + + "ED\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND" + + "\020\004B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publi" + + "sh_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "pH\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampH\000B\006\n\004timeB\317\001\n!com.google.clo" + + "ud.pubsublite.protoB\013CommonProtoP\001Z>clou" + + "d.google.com/go/pubsublite/apiv1/pubsubl" + + "itepb;pubsublitepb\370\001\001\252\002\032Google.Cloud.Pub" + + "SubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352" + + "\002\035Google::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 4b9da1b86..826846c78 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,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -85,31 +60,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 { @@ -120,14 +93,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 @@ -136,7 +106,6 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +117,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_); } @@ -168,7 +138,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; @@ -178,16 +149,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; } @@ -202,143 +174,139 @@ 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(); @@ -349,9 +317,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 @@ -370,11 +338,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; } @@ -393,39 +358,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; @@ -433,8 +397,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; @@ -469,25 +432,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) { @@ -497,27 +457,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; @@ -526,23 +481,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 { @@ -550,39 +502,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() { @@ -592,23 +533,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; @@ -616,16 +551,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 @@ -633,14 +565,11 @@ 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. */ @@ -652,14 +581,11 @@ public Builder setPartition(long value) { 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() { @@ -668,9 +594,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); } @@ -680,12 +606,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(); } @@ -694,27 +620,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; @@ -729,4 +655,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 b1ca67929..2b69c41e2 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,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -78,25 +57,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.
    * 
@@ -105,13 +77,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; @@ -123,7 +92,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()); } @@ -137,7 +107,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; @@ -147,17 +118,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; @@ -180,136 +151,131 @@ 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(); @@ -323,9 +289,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 @@ -344,11 +310,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; } @@ -356,7 +319,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(); } } @@ -364,39 +329,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; @@ -404,8 +368,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()); } @@ -435,19 +398,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) { @@ -457,52 +420,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.
      * 
@@ -523,15 +472,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 { @@ -542,8 +490,6 @@ public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor.Builder bu return this; } /** - * - * *
      * The head cursor.
      * 
@@ -552,9 +498,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; @@ -567,8 +513,6 @@ public Builder mergeHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The head cursor.
      * 
@@ -586,8 +530,6 @@ public Builder clearHeadCursor() { return this; } /** - * - * *
      * The head cursor.
      * 
@@ -600,8 +542,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getHeadCursorBuilder() { return getHeadCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The head cursor.
      * 
@@ -612,14 +552,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.
      * 
@@ -627,24 +564,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); } @@ -654,12 +588,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(); } @@ -668,27 +602,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; @@ -703,4 +637,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 5133cae7b..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 68% 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 e314cafc6..eb4ad1f1b 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,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -85,31 +60,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 { @@ -120,14 +93,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 @@ -138,14 +108,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 @@ -153,25 +120,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.
    * 
@@ -180,16 +140,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
@@ -197,7 +153,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 @@ -205,8 +160,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
@@ -214,18 +167,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
@@ -236,13 +184,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;
@@ -254,7 +199,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_);
     }
@@ -280,13 +226,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;
@@ -296,23 +245,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;
@@ -328,7 +280,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();
@@ -343,136 +296,131 @@ 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(); @@ -493,14 +441,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(); } @@ -515,17 +462,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_; @@ -534,11 +477,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(); } } @@ -546,39 +492,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; @@ -586,9 +531,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; @@ -629,37 +572,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) { @@ -669,27 +611,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; @@ -698,23 +635,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 { @@ -722,39 +656,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() { @@ -764,23 +687,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; @@ -788,16 +705,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 @@ -805,14 +719,11 @@ 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. */ @@ -824,14 +735,11 @@ public Builder setPartition(long value) { 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() { @@ -843,47 +751,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.
      * 
@@ -904,8 +799,6 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -924,8 +817,6 @@ public Builder setStartCursor( return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -934,9 +825,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; @@ -949,8 +840,6 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -968,8 +857,6 @@ public Builder clearStartCursor() { return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -982,8 +869,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder() return getStartCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -994,14 +879,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.
      * 
@@ -1009,17 +891,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_; @@ -1027,13 +906,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
@@ -1041,15 +915,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
@@ -1057,21 +928,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
@@ -1094,8 +960,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
@@ -1104,7 +968,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 {
@@ -1115,8 +980,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
@@ -1127,9 +990,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;
@@ -1142,8 +1005,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
@@ -1163,8 +1024,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
@@ -1179,8 +1038,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
@@ -1193,14 +1050,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
@@ -1210,24 +1064,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);
     }
 
@@ -1237,13 +1088,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();
   }
@@ -1252,27 +1102,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;
@@ -1287,4 +1137,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 1f23dadd1..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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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 4a1ee55f4..8944658d7 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,76 +1,55 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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(); } - 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 @@ -81,14 +60,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 @@ -99,8 +75,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
@@ -108,7 +82,6 @@ public long getMessageBytes() {
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return Whether the minimumPublishTime field is set. */ @java.lang.Override @@ -116,8 +89,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
@@ -125,18 +96,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
@@ -147,16 +113,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
@@ -164,7 +126,6 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return Whether the minimumEventTime field is set. */ @java.lang.Override @@ -172,8 +133,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
@@ -181,18 +140,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
@@ -203,13 +157,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;
@@ -221,7 +172,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_);
     }
@@ -244,16 +196,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;
@@ -263,23 +219,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;
@@ -293,9 +252,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();
@@ -310,136 +271,131 @@ 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(); @@ -460,14 +416,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(); } @@ -482,17 +437,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_; @@ -501,14 +452,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(); } } @@ -516,39 +467,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; @@ -556,9 +506,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()); } @@ -597,39 +545,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) { @@ -639,19 +584,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 @@ -659,14 +600,11 @@ public long getMessageCount() { return messageCount_; } /** - * - * *
      * The count of messages.
      * 
* * int64 message_count = 1; - * * @param value The messageCount to set. * @return This builder for chaining. */ @@ -678,14 +616,11 @@ public Builder setMessageCount(long value) { return this; } /** - * - * *
      * The count of messages.
      * 
* * int64 message_count = 1; - * * @return This builder for chaining. */ public Builder clearMessageCount() { @@ -695,16 +630,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 @@ -712,14 +644,11 @@ 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. */ @@ -731,14 +660,11 @@ public Builder setMessageBytes(long value) { return this; } /** - * - * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; - * * @return This builder for chaining. */ public Builder clearMessageBytes() { @@ -750,13 +676,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
@@ -764,15 +685,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
@@ -780,21 +698,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
@@ -817,8 +730,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
@@ -827,7 +738,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 {
@@ -838,8 +750,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
@@ -850,9 +760,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;
@@ -865,8 +775,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
@@ -886,8 +794,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
@@ -902,8 +808,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
@@ -916,14 +820,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
@@ -933,17 +834,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_;
@@ -951,13 +849,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
@@ -965,15 +858,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
@@ -981,21 +871,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
@@ -1018,8 +903,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
@@ -1028,7 +911,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 {
@@ -1039,8 +923,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
@@ -1051,9 +933,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;
@@ -1066,8 +948,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
@@ -1087,8 +967,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
@@ -1103,8 +981,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
@@ -1117,14 +993,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
@@ -1134,24 +1007,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);
     }
 
@@ -1161,13 +1031,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();
   }
@@ -1176,27 +1045,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;
@@ -1211,4 +1080,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 4b6013f3d..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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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 62%
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 77de66dfe..5c1c49bf4 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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,56 +11,48 @@
  *
  * 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();
   }
 
-  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 @@ -86,31 +61,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 { @@ -121,14 +94,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 @@ -139,17 +109,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.
    * 
* - * - * .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 @@ -157,46 +122,32 @@ 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; @@ -208,7 +159,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_); } @@ -231,10 +183,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; @@ -244,19 +198,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; @@ -272,7 +228,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(); @@ -283,104 +240,98 @@ 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.
@@ -388,32 +339,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();
@@ -429,9 +381,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
@@ -450,11 +402,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;
     }
@@ -468,7 +417,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();
       }
     }
 
@@ -476,39 +427,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;
@@ -516,8 +466,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;
@@ -555,31 +504,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) {
@@ -589,27 +536,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; @@ -618,23 +560,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 { @@ -642,39 +581,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() { @@ -684,23 +612,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; @@ -708,16 +630,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 @@ -725,14 +644,11 @@ 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. */ @@ -744,14 +660,11 @@ public Builder setPartition(long value) { 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() { @@ -763,61 +676,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.
      * 
* - * - * .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) { @@ -833,18 +727,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.
      * 
* - * - * .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 { @@ -855,22 +746,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.
      * 
* - * - * .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; @@ -883,16 +770,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.
      * 
* - * - * .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); @@ -905,16 +788,12 @@ 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; @@ -922,57 +801,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.
      * 
* - * - * .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); } @@ -982,12 +849,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(); } @@ -996,27 +863,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; @@ -1031,4 +898,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/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 similarity index 51% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java index 9bc635b41..7fb4006e7 100644 --- a/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 @@ -1,111 +1,69 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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/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 aca697a66..f55a916d0 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,44 +11,41 @@
  *
  * 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();
   }
 
-  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,
@@ -73,7 +53,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 @@ -81,8 +60,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,
@@ -90,18 +67,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,
@@ -112,13 +84,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;
@@ -130,7 +99,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (cursor_ != null) {
       output.writeMessage(1, getCursor());
     }
@@ -144,7 +114,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;
@@ -154,17 +125,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;
@@ -187,104 +158,98 @@ 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.
@@ -292,32 +257,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();
@@ -331,9 +297,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
@@ -352,11 +318,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;
     }
@@ -364,7 +327,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();
       }
     }
 
@@ -372,39 +337,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;
@@ -412,8 +376,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());
       }
@@ -443,19 +406,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,18 +428,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,
@@ -484,15 +441,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,
@@ -500,21 +454,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,
@@ -537,8 +486,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,
@@ -547,7 +494,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 {
@@ -558,8 +506,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,
@@ -570,9 +516,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;
@@ -585,8 +531,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,
@@ -606,8 +550,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,
@@ -622,8 +564,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,
@@ -636,14 +576,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,
@@ -653,24 +590,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);
     }
 
@@ -680,12 +614,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();
   }
@@ -694,27 +628,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;
@@ -729,4 +663,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 4de299670..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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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 64%
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 a81285c06..f331b0a07 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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,41 +26,34 @@ private CreateReservationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateReservationRequest(); } - 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 @@ -87,32 +62,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 { @@ -123,17 +96,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.
    * 
* - * - * .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 @@ -141,51 +109,35 @@ 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.
@@ -194,7 +146,6 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reservationId. */ @java.lang.Override @@ -203,15 +154,14 @@ 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.
@@ -220,15 +170,16 @@ 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 { @@ -237,7 +188,6 @@ public com.google.protobuf.ByteString getReservationIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +199,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 +223,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 +237,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 +278,131 @@ 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 +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_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 +439,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 +451,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 +464,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 +503,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 +543,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 +575,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 +600,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 +622,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 +655,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,61 +676,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.
      * 
* - * - * .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) { @@ -828,16 +727,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.
      * 
* - * - * .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) { @@ -851,22 +746,18 @@ 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; @@ -879,16 +770,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.
      * 
* - * - * .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); @@ -901,16 +788,12 @@ 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; @@ -918,50 +801,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.
      * 
* - * - * .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_; @@ -969,8 +840,6 @@ 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.
@@ -979,13 +848,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; @@ -994,8 +863,6 @@ public java.lang.String getReservationId() { } } /** - * - * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -1004,14 +871,15 @@ 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 { @@ -1019,8 +887,6 @@ 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.
@@ -1029,22 +895,18 @@ public com.google.protobuf.ByteString getReservationIdBytes() {
      * 
* * 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.
@@ -1053,7 +915,6 @@ public Builder setReservationId(java.lang.String value) {
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearReservationId() { @@ -1063,8 +924,6 @@ public Builder clearReservationId() { return this; } /** - * - * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -1073,23 +932,21 @@ 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); } @@ -1099,12 +956,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(); } @@ -1113,27 +970,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; @@ -1148,4 +1005,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 58% 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 fa8c10090..e4933cbbe 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,106 +1,65 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -109,13 +68,10 @@ public interface CreateReservationRequestOrBuilder
    * 
* * 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.
@@ -124,8 +80,8 @@ public interface CreateReservationRequestOrBuilder
    * 
* * 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 66% 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 b57906888..3cb980efb 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,41 +26,34 @@ private CreateSubscriptionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSubscriptionRequest(); } - 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 @@ -87,32 +62,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 { @@ -123,17 +96,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.
    * 
* - * - * .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 @@ -141,51 +109,35 @@ 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.
@@ -194,7 +146,6 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subscriptionId. */ @java.lang.Override @@ -203,15 +154,14 @@ 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.
@@ -220,15 +170,16 @@ 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 { @@ -239,8 +190,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 +197,6 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() {
    * 
* * bool skip_backlog = 4; - * * @return The skipBacklog. */ @java.lang.Override @@ -257,7 +205,6 @@ public boolean getSkipBacklog() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -295,13 +243,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 +261,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 +299,139 @@ 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 +448,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 +469,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 +481,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 +497,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 +536,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 +579,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 +616,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 +641,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 +663,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 +696,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,61 +717,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.
      * 
* - * - * .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) { @@ -870,16 +768,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.
      * 
* - * - * .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) { @@ -893,23 +787,18 @@ 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; @@ -922,16 +811,12 @@ 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); @@ -944,16 +829,12 @@ 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; @@ -961,50 +842,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.
      * 
* - * - * .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_; @@ -1012,8 +881,6 @@ 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.
@@ -1022,13 +889,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; @@ -1037,8 +904,6 @@ public java.lang.String getSubscriptionId() { } } /** - * - * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -1047,14 +912,15 @@ 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 { @@ -1062,8 +928,6 @@ 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.
@@ -1072,22 +936,18 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() {
      * 
* * 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.
@@ -1096,7 +956,6 @@ public Builder setSubscriptionId(java.lang.String value) {
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSubscriptionId() { @@ -1106,8 +965,6 @@ public Builder clearSubscriptionId() { return this; } /** - * - * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -1116,14 +973,12 @@ 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; @@ -1131,10 +986,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
@@ -1142,7 +995,6 @@ public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool skip_backlog = 4; - * * @return The skipBacklog. */ @java.lang.Override @@ -1150,8 +1002,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
@@ -1159,7 +1009,6 @@ public boolean getSkipBacklog() {
      * 
* * bool skip_backlog = 4; - * * @param value The skipBacklog to set. * @return This builder for chaining. */ @@ -1171,8 +1020,6 @@ public Builder setSkipBacklog(boolean value) { return this; } /** - * - * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1180,7 +1027,6 @@ public Builder setSkipBacklog(boolean value) {
      * 
* * bool skip_backlog = 4; - * * @return This builder for chaining. */ public Builder clearSkipBacklog() { @@ -1189,9 +1035,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); } @@ -1201,12 +1047,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(); } @@ -1215,27 +1061,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; @@ -1250,4 +1096,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 62% 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 8ff0b553f..4a6fffb86 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,106 +1,65 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -109,13 +68,10 @@ public interface CreateSubscriptionRequestOrBuilder
    * 
* * 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.
@@ -124,14 +80,12 @@ public interface CreateSubscriptionRequestOrBuilder
    * 
* * 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
@@ -139,7 +93,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 67% 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 1409d6695..8945f22b4 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,41 +26,34 @@ private CreateTopicRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateTopicRequest(); } - 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 @@ -87,32 +62,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 { @@ -123,16 +96,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.
    * 
* - * .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 @@ -140,16 +109,12 @@ 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 @@ -157,15 +122,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.
    * 
* - * .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() { @@ -173,12 +135,9 @@ 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.
@@ -187,7 +146,6 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() {
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topicId. */ @java.lang.Override @@ -196,15 +154,14 @@ 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.
@@ -213,15 +170,16 @@ 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 { @@ -230,7 +188,6 @@ public com.google.protobuf.ByteString getTopicIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +199,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 +223,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 +237,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 +278,131 @@ 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 +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_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 +439,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 +451,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 +464,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 +503,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 +543,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 +575,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 +600,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 +622,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 +655,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,58 +676,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.
      * 
* - * .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) { @@ -816,17 +727,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.
      * 
* - * .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 { @@ -837,21 +746,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.
      * 
* - * .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; @@ -864,15 +770,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.
      * 
* - * .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); @@ -885,15 +788,12 @@ 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; @@ -901,48 +801,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.
      * 
* - * .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_; @@ -950,8 +840,6 @@ 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.
@@ -960,13 +848,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; @@ -975,8 +863,6 @@ public java.lang.String getTopicId() { } } /** - * - * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -985,14 +871,15 @@ 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 { @@ -1000,8 +887,6 @@ 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.
@@ -1010,22 +895,18 @@ public com.google.protobuf.ByteString getTopicIdBytes() {
      * 
* * 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.
@@ -1034,7 +915,6 @@ public Builder setTopicId(java.lang.String value) {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTopicId() { @@ -1044,8 +924,6 @@ public Builder clearTopicId() { return this; } /** - * - * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -1054,23 +932,21 @@ 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); } @@ -1080,12 +956,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(); } @@ -1094,27 +970,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; @@ -1129,4 +1005,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 63% 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 82ef0aee5..2187ba224 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,103 +1,65 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -106,13 +68,10 @@ public interface CreateTopicRequestOrBuilder
    * 
* * 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.
@@ -121,8 +80,8 @@ public interface CreateTopicRequestOrBuilder
    * 
* * 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 09ef9cca2..e0bc9ff1c 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,77 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -80,7 +59,6 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -92,7 +70,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_); } @@ -106,7 +85,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; @@ -116,14 +96,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; } @@ -136,142 +117,139 @@ 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(); @@ -281,9 +259,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 @@ -302,11 +280,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; } @@ -322,39 +297,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; @@ -392,19 +366,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) { @@ -414,20 +386,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 @@ -435,15 +403,12 @@ 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. */ @@ -455,15 +420,12 @@ public Builder setOffset(long value) { 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() { @@ -472,9 +434,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); } @@ -484,12 +446,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(); } @@ -498,27 +460,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; @@ -533,4 +495,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..12ffcb8d9 --- /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\"\205\001\n\033ListPartitionCursorsRequest\022" + + "?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\n&pubsublite.goo" + + "gleapis.com/Subscription\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurs" + + "or\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\"." + + "google.cloud.pubsublite.v1.Cursor\"\177\n\034Lis" + + "tPartitionCursorsResponse\022F\n\021partition_c" + + "ursors\030\001 \003(\0132+.google.cloud.pubsublite.v" + + "1.PartitionCursor\022\027\n\017next_page_token\030\002 \001" + + "(\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommit" + + "Cursor\0228.google.cloud.pubsublite.v1.Stre" + + "amingCommitCursorRequest\0329.google.cloud." + + "pubsublite.v1.StreamingCommitCursorRespo" + + "nse\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.clou" + + "d.pubsublite.v1.CommitCursorRequest\0320.go" + + "ogle.cloud.pubsublite.v1.CommitCursorRes" + + "ponse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=" + + "projects/*/locations/*/subscriptions/*}:" + + "commitCursor:\001*\022\336\001\n\024ListPartitionCursors" + + "\0227.google.cloud.pubsublite.v1.ListPartit" + + "ionCursorsRequest\0328.google.cloud.pubsubl" + + "ite.v1.ListPartitionCursorsResponse\"S\332A\006" + + "parent\202\323\344\223\002D\022B/v1/cursor/{parent=project" + + "s/*/locations/*/subscriptions/*}/cursors" + + "\032M\312A\031pubsublite.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\317\001\n!com.google.cloud.pubsublite.protoB\013C" + + "ursorProtoP\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.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 63% 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 6b7ab1f26..f3b9fd665 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,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -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.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; } @@ -186,136 +159,131 @@ 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(); @@ -325,9 +293,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 @@ -346,11 +314,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; } @@ -366,39 +331,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; @@ -406,8 +370,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; @@ -439,19 +402,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,29 +422,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; @@ -492,25 +448,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 { @@ -518,43 +471,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() { @@ -564,34 +506,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); } @@ -601,12 +537,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(); } @@ -615,27 +551,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; @@ -650,4 +586,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 30d2b52fe..0549514cd 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,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -85,31 +60,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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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; } @@ -182,136 +155,131 @@ 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(); @@ -321,9 +289,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 @@ -342,11 +310,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; } @@ -362,39 +327,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; @@ -402,8 +366,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; @@ -435,19 +398,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) { @@ -457,27 +418,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; @@ -486,23 +442,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 { @@ -510,39 +463,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() { @@ -552,32 +494,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); } @@ -587,12 +523,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(); } @@ -601,27 +537,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; @@ -636,4 +572,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 e50db7fcc..202fbf0d5 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,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -85,31 +60,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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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; } @@ -182,135 +155,131 @@ 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(); @@ -320,9 +289,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 @@ -341,11 +310,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; } @@ -361,39 +327,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; @@ -401,8 +366,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; @@ -434,19 +398,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) { @@ -456,27 +418,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; @@ -485,23 +442,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 { @@ -509,39 +463,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() { @@ -551,32 +494,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); } @@ -586,12 +523,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(); } @@ -600,27 +537,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; @@ -635,4 +572,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 70% 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 bb55c36b6..29cca91c8 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,38 +28,34 @@ private ExportConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExportConfig();
   }
 
-  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.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Messages are being exported.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * Exporting messages is suspended.
      * 
@@ -106,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PAUSED(2), /** - * - * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -116,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PERMISSION_DENIED(3), /** - * - * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -129,8 +99,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is unused.
      * 
@@ -139,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Messages are being exported.
      * 
@@ -149,8 +115,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * Exporting messages is suspended.
      * 
@@ -159,8 +123,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.
      * 
@@ -169,8 +131,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.
      * 
@@ -179,6 +139,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( @@ -203,53 +164,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; @@ -266,14 +225,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}.
@@ -281,13 +237,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}.
@@ -295,62 +248,55 @@ 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(); } - 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}.
@@ -358,7 +304,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string topic = 1; - * * @return The topic. */ @java.lang.Override @@ -367,15 +312,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}.
@@ -383,15 +327,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 { @@ -400,7 +345,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,7 +356,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_); } @@ -436,15 +381,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; } @@ -464,94 +409,89 @@ 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 @@ -561,41 +501,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(); @@ -605,14 +543,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(); } @@ -627,17 +564,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_; @@ -648,41 +581,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; @@ -690,9 +620,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; @@ -724,19 +652,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) { @@ -746,13 +672,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}.
@@ -760,13 +683,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; @@ -775,8 +698,6 @@ public java.lang.String getTopic() { } } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -784,14 +705,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 { @@ -799,8 +721,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -808,22 +728,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}.
@@ -831,7 +747,6 @@ public Builder setTopic(java.lang.String value) {
        * 
* * string topic = 1; - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -841,8 +756,6 @@ public Builder clearTopic() { return this; } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -850,21 +763,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) { @@ -877,13 +787,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(); } @@ -892,28 +801,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; @@ -928,21 +836,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int destinationCase_ = 0; - @SuppressWarnings("serial") 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; } @@ -958,113 +863,82 @@ 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
@@ -1077,10 +951,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 @@ -1089,15 +960,14 @@ public java.lang.String getDeadLetterTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deadLetterTopic_ = s; return s; } } /** - * - * *
    * 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
@@ -1110,18 +980,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 { @@ -1131,15 +1000,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 @@ -1147,27 +1013,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.
@@ -1176,16 +1037,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;
@@ -1197,20 +1056,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);
@@ -1222,21 +1079,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;
@@ -1246,21 +1102,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:
@@ -1295,104 +1152,99 @@ 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.
@@ -1400,32 +1252,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();
@@ -1442,9 +1295,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
@@ -1463,11 +1316,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;
@@ -1489,7 +1339,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();
       }
     }
@@ -1498,39 +1349,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;
@@ -1551,15 +1401,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();
@@ -1587,37 +1435,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) {
@@ -1627,12 +1472,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() {
@@ -1646,31 +1491,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. */ @@ -1681,35 +1519,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. */ @@ -1723,15 +1552,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() { @@ -1743,35 +1569,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. 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. */ @@ -1782,39 +1597,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. 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. */ @@ -1828,17 +1630,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. 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() { @@ -1850,8 +1647,6 @@ 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
@@ -1864,16 +1659,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; @@ -1882,8 +1675,6 @@ 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
@@ -1896,17 +1687,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 { @@ -1914,8 +1704,6 @@ 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
@@ -1928,25 +1716,19 @@ 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
@@ -1959,10 +1741,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() { @@ -1972,8 +1751,6 @@ 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
@@ -1986,17 +1763,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; @@ -2005,20 +1778,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 @@ -2026,15 +1793,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 @@ -2052,8 +1816,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.
@@ -2061,8 +1823,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();
@@ -2076,8 +1837,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.
@@ -2097,8 +1856,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.
@@ -2106,18 +1863,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;
         }
@@ -2133,8 +1884,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.
@@ -2159,8 +1908,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.
@@ -2168,13 +1915,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.
@@ -2183,8 +1927,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 {
@@ -2195,8 +1938,6 @@ public Builder clearPubsubConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2205,20 +1946,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());
@@ -2228,9 +1963,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);
     }
 
@@ -2240,12 +1975,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();
   }
@@ -2254,27 +1989,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;
@@ -2289,4 +2024,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 73%
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 fa504654a..171074251 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,89 +1,55 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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
@@ -96,16 +62,11 @@ 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
@@ -118,43 +79,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 d0cd19398..496de2f15 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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,50 +11,46 @@
  *
  * 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();
   }
 
-  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 @@ -82,14 +61,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 @@ -98,7 +74,6 @@ public long getAllowedBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,7 +85,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_); } @@ -127,10 +103,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; @@ -140,16 +118,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; } @@ -162,112 +141,109 @@ 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.
@@ -275,32 +251,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();
@@ -311,9 +288,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
@@ -332,11 +309,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;
     }
@@ -355,39 +329,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;
@@ -395,8 +368,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());
       }
@@ -429,25 +401,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) {
@@ -457,19 +426,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 @@ -477,14 +442,11 @@ 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. */ @@ -496,14 +458,11 @@ public Builder setAllowedMessages(long value) { 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() { @@ -513,16 +472,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 @@ -530,14 +486,11 @@ 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. */ @@ -549,14 +502,11 @@ public Builder setAllowedBytes(long value) { 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() { @@ -565,9 +515,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); } @@ -577,12 +527,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(); } @@ -591,27 +541,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; @@ -626,4 +576,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 087ea15ae..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 63% 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 496119d23..4078e4813 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,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -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.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; } @@ -186,136 +159,131 @@ 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(); @@ -325,9 +293,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 @@ -346,11 +314,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; } @@ -366,39 +331,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; @@ -406,8 +370,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; @@ -439,19 +402,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,29 +422,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; @@ -492,25 +448,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 { @@ -518,43 +471,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() { @@ -564,34 +506,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); } @@ -601,12 +537,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(); } @@ -615,27 +551,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; @@ -650,4 +586,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 62% 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 ff7198af7..5dff3b1f8 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,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -85,31 +60,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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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; } @@ -182,136 +155,131 @@ 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(); @@ -321,9 +289,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 @@ -342,11 +310,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; } @@ -362,39 +327,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; @@ -402,8 +366,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; @@ -435,19 +398,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) { @@ -457,27 +418,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; @@ -486,23 +442,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 { @@ -510,39 +463,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() { @@ -552,32 +494,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); } @@ -587,12 +523,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(); } @@ -601,27 +537,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; @@ -636,4 +572,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 3ddc52277..83a157ea4 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,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -85,31 +60,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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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; } @@ -182,136 +155,131 @@ 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(); @@ -321,9 +289,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 @@ -342,11 +310,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; } @@ -362,39 +327,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; @@ -402,8 +366,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; @@ -435,19 +398,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) { @@ -457,27 +418,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; @@ -486,23 +442,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 { @@ -510,39 +463,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() { @@ -552,32 +494,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); } @@ -587,12 +523,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(); } @@ -601,27 +537,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; @@ -636,4 +572,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 74451f571..8fb3fabe4 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,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -85,31 +60,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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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; } @@ -182,135 +155,131 @@ 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(); @@ -320,9 +289,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 @@ -341,11 +310,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; } @@ -361,39 +327,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; @@ -401,8 +366,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; @@ -434,19 +398,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) { @@ -456,27 +418,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; @@ -485,23 +442,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 { @@ -509,39 +463,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() { @@ -551,32 +494,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); } @@ -586,12 +523,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(); } @@ -600,27 +537,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; @@ -635,4 +572,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 23a80f7fa..71ca962c4 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,54 +12,48 @@
  *
  * 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();
   }
 
-  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 @@ -85,29 +62,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 { @@ -118,15 +95,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 @@ -135,7 +109,6 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +120,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_); } @@ -167,7 +141,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; @@ -177,16 +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.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; } @@ -201,111 +177,106 @@ 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
@@ -314,32 +285,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();
@@ -350,14 +322,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();
     }
 
@@ -372,17 +343,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_;
@@ -396,39 +363,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;
@@ -436,9 +402,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;
@@ -473,25 +437,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) {
@@ -501,25 +462,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; @@ -528,21 +486,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 { @@ -550,35 +507,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() { @@ -588,21 +538,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; @@ -610,17 +556,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 @@ -628,15 +571,12 @@ 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. */ @@ -648,15 +588,12 @@ public Builder setPartition(long value) { 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() { @@ -665,9 +602,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); } @@ -677,13 +614,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(); } @@ -692,27 +628,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; @@ -727,4 +663,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 b8a03bf80..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 34bc8d402..bf34ff607 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,67 +1,48 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; @@ -73,7 +54,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); } @@ -91,13 +73,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; @@ -116,136 +97,131 @@ 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(); @@ -253,14 +229,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(); } @@ -275,8 +250,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; } @@ -285,39 +259,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; @@ -325,9 +298,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; @@ -354,13 +325,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) { @@ -370,9 +340,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); } @@ -382,13 +352,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(); } @@ -397,27 +366,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; @@ -432,4 +401,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 d771cd297..bcf07fdb5 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,32 +27,28 @@ private InitialPartitionAssignmentRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InitialPartitionAssignmentRequest();
   }
 
-  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
@@ -79,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string subscription = 1; - * * @return The subscription. */ @java.lang.Override @@ -88,15 +64,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
@@ -104,15 +79,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 { @@ -123,8 +99,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
@@ -137,7 +111,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 
* * bytes client_id = 2; - * * @return The clientId. */ @java.lang.Override @@ -146,7 +119,6 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,7 +130,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_); } @@ -178,7 +151,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; @@ -188,16 +162,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; } @@ -219,105 +194,98 @@ 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.
@@ -325,33 +293,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();
@@ -362,16 +330,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
@@ -385,17 +351,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_;
@@ -409,51 +371,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;
@@ -488,25 +445,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) {
@@ -516,13 +470,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
@@ -530,13 +481,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; @@ -545,8 +496,6 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -554,14 +503,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 { @@ -569,8 +519,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -578,22 +526,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
@@ -601,7 +545,6 @@ public Builder setSubscription(java.lang.String value) {
      * 
* * string subscription = 1; - * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -611,8 +554,6 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -620,14 +561,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; @@ -637,8 +576,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
@@ -651,7 +588,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 2; - * * @return The clientId. */ @java.lang.Override @@ -659,8 +595,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
@@ -673,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
@@ -701,7 +630,6 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 2; - * * @return This builder for chaining. */ public Builder clearClientId() { @@ -710,9 +638,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); } @@ -722,43 +650,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; @@ -770,8 +696,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 841b49f90..f294df05c 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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
@@ -67,7 +44,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 69% 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 233a71d71..06c0d0aa0 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,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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; @@ -44,38 +26,33 @@ private InitialPublishRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitialPublishRequest(); } - 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 @@ -84,29 +61,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 { @@ -117,8 +94,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,
@@ -126,7 +101,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -137,8 +111,6 @@ 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.
@@ -150,7 +122,6 @@ public long getPartition() {
    * 
* * bytes client_id = 3; - * * @return The clientId. */ @java.lang.Override @@ -159,7 +130,6 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,7 +141,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_); } @@ -194,10 +165,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 += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, clientId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -207,17 +180,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 (!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; } @@ -232,7 +207,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()); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -241,136 +217,131 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +353,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 @@ -403,11 +374,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; } @@ -429,39 +397,38 @@ 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; @@ -469,8 +436,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; @@ -508,31 +474,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 - 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) { @@ -542,25 +504,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; @@ -569,21 +528,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 { @@ -591,35 +549,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() { @@ -629,21 +580,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; @@ -651,10 +598,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,
@@ -662,7 +607,6 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -670,8 +614,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,
@@ -679,7 +621,6 @@ public long getPartition() {
      * 
* * int64 partition = 2; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -691,8 +632,6 @@ public Builder setPartition(long value) { 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,
@@ -700,7 +639,6 @@ public Builder setPartition(long value) {
      * 
* * int64 partition = 2; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -712,8 +650,6 @@ 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.
@@ -725,7 +661,6 @@ public Builder clearPartition() {
      * 
* * bytes client_id = 3; - * * @return The clientId. */ @java.lang.Override @@ -733,8 +668,6 @@ public com.google.protobuf.ByteString getClientId() { return clientId_; } /** - * - * *
      * Unique identifier for a publisher client. If set, enables publish
      * idempotency within a publisher client session.
@@ -746,22 +679,17 @@ 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.
@@ -773,7 +701,6 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 3; - * * @return This builder for chaining. */ public Builder clearClientId() { @@ -782,9 +709,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); } @@ -794,12 +721,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(); } @@ -808,27 +735,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; @@ -843,4 +770,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 66% 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 61970cd52..03fa3e09c 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,14 +35,11 @@ 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.
@@ -77,7 +51,6 @@ public interface InitialPublishRequestOrBuilder
    * 
* * 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 b01478402..d3c9a348a 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,67 +1,48 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; @@ -73,7 +54,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); } @@ -91,13 +73,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; @@ -116,136 +97,131 @@ 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(); @@ -253,9 +229,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 @@ -274,8 +250,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; } @@ -284,39 +259,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; @@ -324,8 +298,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; @@ -352,13 +325,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) { @@ -368,9 +340,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); } @@ -380,12 +352,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(); } @@ -394,27 +366,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; @@ -429,4 +401,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 66% 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 e95e5a840..c0a87ce68 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,54 +11,48 @@
  *
  * 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();
   }
 
-  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 @@ -84,29 +61,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 { @@ -117,15 +94,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 @@ -136,18 +110,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.
    * 
* - * - * .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 @@ -155,48 +124,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.
    * 
* - * - * .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; @@ -208,7 +163,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_); } @@ -231,10 +187,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; @@ -244,19 +202,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; @@ -272,7 +232,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(); @@ -283,104 +244,98 @@ 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.
@@ -388,32 +343,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();
@@ -429,9 +385,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
@@ -450,11 +406,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;
     }
@@ -468,8 +421,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();
       }
     }
 
@@ -477,39 +431,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;
@@ -517,8 +470,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;
@@ -556,31 +508,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) {
@@ -590,25 +540,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; @@ -617,21 +564,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 { @@ -639,35 +585,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() { @@ -677,21 +616,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; @@ -699,17 +634,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 @@ -717,15 +649,12 @@ 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. */ @@ -737,15 +666,12 @@ public Builder setPartition(long value) { 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() { @@ -757,64 +683,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.
      * 
* - * - * .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) { @@ -830,17 +737,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.
      * 
* - * - * .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) { @@ -854,24 +757,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.
      * 
* - * - * .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; @@ -884,17 +782,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.
      * 
* - * - * .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); @@ -907,17 +801,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.
      * 
* - * - * .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; @@ -925,59 +815,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.
      * 
* - * - * .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); } @@ -987,12 +865,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(); } @@ -1001,27 +879,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; @@ -1036,4 +914,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 61% 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 638e4b1ee..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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/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 3a3fb8ed9..94d4239c9 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,77 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -79,26 +58,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.
@@ -108,13 +80,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;
@@ -126,7 +95,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());
     }
@@ -140,7 +110,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;
@@ -150,17 +121,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;
@@ -183,136 +154,131 @@ 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(); @@ -326,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_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 @@ -347,11 +313,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; } @@ -359,7 +322,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(); } } @@ -367,39 +332,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; @@ -407,8 +371,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()); } @@ -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,54 +423,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.
@@ -529,8 +478,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.
@@ -538,7 +485,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 {
@@ -549,8 +497,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.
@@ -560,9 +506,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;
@@ -575,8 +521,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.
@@ -595,8 +539,6 @@ public Builder clearCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -610,8 +552,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.
@@ -623,14 +563,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.
@@ -639,24 +576,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);
     }
 
@@ -666,12 +600,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();
   }
@@ -680,27 +614,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;
@@ -715,4 +649,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 a181b0609..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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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 9d5387e97..b8811f1e1 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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,42 +26,35 @@ private ListPartitionCursorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPartitionCursorsRequest(); } - 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 @@ -88,33 +63,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 { @@ -125,8 +98,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.
@@ -134,7 +105,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -143,12 +113,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.
@@ -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 `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -185,15 +150,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 { @@ -202,7 +168,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +179,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_); } @@ -237,7 +203,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_); @@ -250,17 +217,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; } @@ -284,136 +253,131 @@ 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(); @@ -425,14 +389,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(); } @@ -447,17 +410,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_; @@ -474,39 +433,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; @@ -514,9 +472,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; @@ -556,31 +512,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) { @@ -590,29 +542,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; @@ -621,25 +568,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 { @@ -647,43 +591,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() { @@ -693,25 +626,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; @@ -719,10 +646,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.
@@ -730,7 +655,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -738,8 +662,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -747,7 +669,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -759,8 +680,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -768,7 +687,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -780,8 +698,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.
@@ -791,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; @@ -806,8 +722,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -817,14 +731,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 { @@ -832,8 +747,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 +756,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.
@@ -868,7 +777,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -878,8 +786,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -889,23 +795,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); } @@ -915,13 +819,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(); } @@ -930,27 +833,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; @@ -965,4 +868,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 28dfbf2b2..321654945 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -83,13 +53,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.
@@ -99,8 +66,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 d592503ae..b2cc32ab5 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,32 +26,28 @@ private ListPartitionCursorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPartitionCursorsResponse(); } - 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.
    * 
@@ -77,13 +55,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.
    * 
@@ -91,13 +66,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.
    * 
@@ -109,8 +82,6 @@ public int getPartitionCursorsCount() { return partitionCursors_.size(); } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -122,8 +93,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int return partitionCursors_.get(index); } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -137,19 +106,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 @@ -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, 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 { @@ -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 < partitionCursors_.size(); i++) { output.writeMessage(1, partitionCursors_.get(i)); } @@ -219,7 +184,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_); @@ -232,16 +198,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; } @@ -265,136 +232,131 @@ 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(); @@ -411,14 +373,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(); } @@ -433,18 +394,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_); @@ -456,8 +413,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_; @@ -468,39 +424,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; @@ -508,9 +463,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()) { @@ -529,10 +482,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_); } @@ -569,33 +521,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) { @@ -605,38 +554,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 { @@ -644,8 +583,6 @@ private void ensurePartitionCursorsIsMutable() { } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -660,8 +597,6 @@ public int getPartitionCursorsCount() { } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -676,8 +611,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -699,8 +632,6 @@ public Builder setPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -719,8 +650,6 @@ public Builder setPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -741,8 +670,6 @@ public Builder addPartitionCursors(com.google.cloud.pubsublite.proto.PartitionCu return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -764,8 +691,6 @@ public Builder addPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -784,8 +709,6 @@ public Builder addPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -804,8 +727,6 @@ public Builder addPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -816,7 +737,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); @@ -824,8 +746,6 @@ public Builder addAllPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -843,8 +763,6 @@ public Builder clearPartitionCursors() { return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -862,8 +780,6 @@ public Builder removePartitionCursors(int index) { return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -875,8 +791,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder getPartitionCur return getPartitionCursorsFieldBuilder().getBuilder(index); } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -886,22 +800,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 { @@ -909,8 +820,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -918,12 +827,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.
      * 
@@ -932,35 +839,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(), @@ -972,21 +870,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; @@ -995,22 +891,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 { @@ -1018,37 +913,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() { @@ -1058,31 +946,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); } @@ -1092,43 +976,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; @@ -1140,8 +1022,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 0bf081935..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 67% 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 4b142ce93..32ec51f96 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,42 +26,35 @@ private ListReservationTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationTopicsRequest(); } - 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 @@ -88,33 +63,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 { @@ -125,8 +98,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.
@@ -134,7 +105,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -143,12 +113,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.
@@ -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 `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -185,15 +150,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 { @@ -202,7 +168,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +179,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_); } @@ -237,7 +203,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_); @@ -250,17 +217,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; } @@ -284,136 +253,131 @@ 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(); @@ -425,14 +389,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(); } @@ -447,17 +410,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_; @@ -474,39 +433,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; @@ -514,9 +472,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; @@ -556,31 +512,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,29 +542,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; @@ -621,25 +568,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 { @@ -647,43 +591,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() { @@ -693,25 +626,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; @@ -719,10 +646,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.
@@ -730,7 +655,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -738,8 +662,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -747,7 +669,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -759,8 +680,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -768,7 +687,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -780,8 +698,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.
@@ -791,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; @@ -806,8 +722,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -817,14 +731,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 { @@ -832,8 +747,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 +756,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.
@@ -868,7 +777,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -878,8 +786,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -889,23 +795,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); } @@ -915,43 +819,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; @@ -963,8 +865,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 5a59309a5..e360fb06b 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -83,13 +53,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.
@@ -99,8 +66,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 6ab71e530..74db70add 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,113 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.emptyList(); + topics_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationTopicsResponse(); } - 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.LazyStringArrayList topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -115,36 +88,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 @@ -153,30 +120,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 { @@ -185,7 +152,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +163,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)); } @@ -232,16 +199,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; } @@ -265,154 +233,149 @@ 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(); bitField0_ = 0; - topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); + topics_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @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(); } @@ -427,17 +390,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result = new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - 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_ & 0x00000001) != 0)) { topics_.makeImmutable(); @@ -452,50 +411,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_; @@ -537,26 +492,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) { @@ -566,12 +518,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTopicsIsMutable() { if (!topics_.isModifiable()) { topics_ = new com.google.protobuf.LazyStringArrayList(topics_); @@ -579,46 +529,38 @@ private void ensureTopicsIsMutable() { 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() { topics_.makeImmutable(); 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. */ @@ -626,39 +568,33 @@ 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); bitField0_ |= 0x00000001; @@ -666,22 +602,18 @@ public Builder setTopics(int index, java.lang.String value) { 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); bitField0_ |= 0x00000001; @@ -689,61 +621,53 @@ public Builder addTopics(java.lang.String value) { 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_); bitField0_ |= 0x00000001; 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() { - topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + topics_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; 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 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); @@ -754,21 +678,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; @@ -777,22 +699,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 { @@ -800,37 +721,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() { @@ -840,31 +754,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); } @@ -874,43 +784,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; @@ -922,8 +830,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 39cf17d30..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 301993fa7..43c995849 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,41 +26,34 @@ private ListReservationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationsRequest(); } - 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 @@ -87,32 +62,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 { @@ -123,8 +96,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
@@ -132,7 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -141,12 +111,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.
@@ -156,7 +123,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,15 +131,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.
@@ -183,15 +148,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 { @@ -200,7 +166,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -235,7 +201,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_); @@ -248,17 +215,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; } @@ -282,136 +251,131 @@ 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(); @@ -423,9 +387,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 @@ -444,11 +408,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; } @@ -470,39 +431,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; @@ -510,8 +470,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; @@ -551,31 +510,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) { @@ -585,28 +540,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; @@ -615,24 +565,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 { @@ -640,41 +587,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() { @@ -684,24 +620,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; @@ -709,10 +639,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
@@ -720,7 +648,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -728,8 +655,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
@@ -737,7 +662,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -749,8 +673,6 @@ public Builder setPageSize(int value) { 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
@@ -758,7 +680,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -770,8 +691,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.
@@ -781,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; @@ -796,8 +715,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -807,14 +724,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 +740,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 +749,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.
@@ -858,7 +770,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -868,8 +779,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -879,23 +788,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); } @@ -905,12 +812,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(); } @@ -919,27 +826,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; @@ -954,4 +861,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 c55cd914b..ccfafd765 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -81,13 +51,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.
@@ -97,8 +64,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 73% 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 f2971e56c..95241e95c 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,32 +26,28 @@ private ListReservationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationsResponse(); } - 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.
@@ -82,8 +60,6 @@ public java.util.List getReservat
     return reservations_;
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -92,13 +68,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.
@@ -111,8 +85,6 @@ public int getReservationsCount() {
     return reservations_.size();
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -125,8 +97,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.
@@ -141,19 +111,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 @@ -162,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 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 { @@ -194,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,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 < reservations_.size(); i++) { output.writeMessage(1, reservations_.get(i)); } @@ -223,7 +189,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_); @@ -236,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.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; } @@ -269,136 +237,131 @@ 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(); @@ -415,9 +378,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 @@ -436,18 +399,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_); @@ -470,39 +429,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; @@ -510,8 +468,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()) { @@ -530,10 +487,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_); } @@ -570,32 +526,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) { @@ -605,29 +559,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.
@@ -643,8 +589,6 @@ public java.util.List getReservat
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -660,8 +604,6 @@ public int getReservationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -677,8 +619,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.
@@ -686,7 +626,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();
@@ -700,8 +641,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.
@@ -721,8 +660,6 @@ public Builder setReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -744,8 +681,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.
@@ -753,7 +688,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();
@@ -767,8 +703,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.
@@ -788,8 +722,6 @@ public Builder addReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -809,8 +741,6 @@ public Builder addReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -822,7 +752,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);
@@ -830,8 +761,6 @@ public Builder addAllReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -850,8 +779,6 @@ public Builder clearReservations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -870,8 +797,6 @@ public Builder removeReservations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -879,12 +804,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.
@@ -895,14 +819,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.
@@ -910,8 +831,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 {
@@ -919,8 +840,6 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -929,12 +848,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.
@@ -942,13 +859,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.
@@ -956,23 +872,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_;
@@ -980,21 +893,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; @@ -1003,22 +914,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 { @@ -1026,37 +936,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() { @@ -1066,31 +969,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); } @@ -1100,12 +999,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(); } @@ -1114,27 +1013,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; @@ -1149,4 +1048,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 44b2ecc83..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 c2f8ac99f..6f062b718 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,41 +26,34 @@ private ListSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSubscriptionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -87,32 +62,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 { @@ -123,8 +96,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.
@@ -132,7 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -141,12 +111,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.
@@ -156,7 +123,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,15 +131,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.
@@ -183,15 +148,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 { @@ -200,7 +166,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -235,7 +201,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_); @@ -248,17 +215,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; } @@ -282,136 +251,131 @@ 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(); @@ -423,9 +387,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 @@ -444,11 +408,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; } @@ -470,39 +431,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; @@ -510,8 +470,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; @@ -551,31 +510,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) { @@ -585,28 +540,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; @@ -615,24 +565,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 { @@ -640,41 +587,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() { @@ -684,24 +620,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; @@ -709,10 +639,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.
@@ -720,7 +648,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -728,8 +655,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -737,7 +662,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -749,8 +673,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -758,7 +680,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -770,8 +691,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.
@@ -781,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; @@ -796,8 +715,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -807,14 +724,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 +740,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 +749,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.
@@ -858,7 +770,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -868,8 +779,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -879,23 +788,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); } @@ -905,12 +812,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(); } @@ -919,27 +826,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; @@ -954,4 +861,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 d3d6cabd3..fa4a2d2f6 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -81,13 +51,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.
@@ -97,8 +64,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 ad043de6d..6de909e89 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,32 +26,28 @@ private ListSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSubscriptionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
@@ -82,8 +60,6 @@ public java.util.List getSubscri
     return subscriptions_;
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -92,13 +68,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.
@@ -111,8 +85,6 @@ public int getSubscriptionsCount() {
     return subscriptions_.size();
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -125,8 +97,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.
@@ -141,19 +111,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 @@ -162,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 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 { @@ -194,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,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 < subscriptions_.size(); i++) { output.writeMessage(1, subscriptions_.get(i)); } @@ -223,7 +189,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_); @@ -236,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.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; } @@ -269,136 +237,131 @@ 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(); @@ -415,9 +378,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 @@ -436,18 +399,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_); @@ -470,39 +429,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; @@ -510,8 +468,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()) { @@ -530,10 +487,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_); } @@ -570,32 +526,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) { @@ -605,29 +559,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.
@@ -643,8 +589,6 @@ public java.util.List getSubscri
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -660,8 +604,6 @@ public int getSubscriptionsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -677,8 +619,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.
@@ -701,8 +641,6 @@ public Builder setSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -722,8 +660,6 @@ public Builder setSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -745,8 +681,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.
@@ -769,8 +703,6 @@ public Builder addSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -790,8 +722,6 @@ public Builder addSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -811,8 +741,6 @@ public Builder addSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -824,7 +752,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);
@@ -832,8 +761,6 @@ public Builder addAllSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -852,8 +779,6 @@ public Builder clearSubscriptions() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -872,8 +797,6 @@ public Builder removeSubscriptions(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -886,8 +809,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.
@@ -898,14 +819,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.
@@ -913,8 +831,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 {
@@ -922,8 +840,6 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -932,12 +848,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.
@@ -947,12 +861,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.
@@ -960,22 +872,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(),
@@ -987,21 +893,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; @@ -1010,22 +914,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 { @@ -1033,37 +936,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() { @@ -1073,31 +969,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); } @@ -1107,12 +999,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(); } @@ -1121,27 +1013,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; @@ -1156,4 +1048,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 29cf59ea6..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 09976b28f..26586c857 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,40 +26,33 @@ private ListTopicSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSubscriptionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -86,31 +61,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 { @@ -121,8 +94,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.
@@ -130,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -139,12 +109,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.
@@ -154,7 +121,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -163,15 +129,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.
@@ -181,15 +146,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 { @@ -198,7 +164,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +175,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_); } @@ -233,7 +199,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_); @@ -246,17 +213,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; } @@ -280,136 +249,131 @@ 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(); @@ -421,14 +385,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(); } @@ -443,17 +406,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_; @@ -470,50 +429,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; @@ -553,31 +508,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) { @@ -587,27 +538,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; @@ -616,23 +562,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 { @@ -640,39 +583,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() { @@ -682,23 +614,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; @@ -706,10 +632,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.
@@ -717,7 +641,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -725,8 +648,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -734,7 +655,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -746,8 +666,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -755,7 +673,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -767,8 +684,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.
@@ -778,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; @@ -793,8 +708,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -804,14 +717,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 { @@ -819,8 +733,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 +742,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.
@@ -855,7 +763,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -865,8 +772,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -876,23 +781,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,43 +805,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; @@ -950,8 +851,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 87e5a3815..a522ef003 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -79,13 +49,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.
@@ -95,8 +62,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 311f8f7b7..3ea1453fb 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,114 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.emptyList(); + subscriptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSubscriptionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -116,36 +88,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 @@ -154,30 +120,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 { @@ -186,7 +152,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +163,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)); } @@ -233,16 +199,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; } @@ -266,154 +233,149 @@ 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(); bitField0_ = 0; - subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subscriptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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(); } @@ -428,17 +390,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - 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_ & 0x00000001) != 0)) { subscriptions_.makeImmutable(); @@ -453,50 +411,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_; @@ -538,26 +492,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) { @@ -567,12 +518,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSubscriptionsIsMutable() { if (!subscriptions_.isModifiable()) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); @@ -580,46 +529,38 @@ private void ensureSubscriptionsIsMutable() { 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() { subscriptions_.makeImmutable(); 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. */ @@ -627,39 +568,33 @@ 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); bitField0_ |= 0x00000001; @@ -667,22 +602,18 @@ public Builder setSubscriptions(int index, java.lang.String value) { 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); bitField0_ |= 0x00000001; @@ -690,61 +621,53 @@ public Builder addSubscriptions(java.lang.String value) { 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_); bitField0_ |= 0x00000001; 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() { - subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + subscriptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; 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 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); @@ -755,21 +678,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; @@ -778,22 +699,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 { @@ -801,37 +721,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() { @@ -841,31 +754,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); } @@ -875,43 +784,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; @@ -923,8 +830,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 ea402cd5c..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 094a1922c..8e70e1717 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,41 +26,34 @@ private ListTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -87,32 +62,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 { @@ -123,8 +96,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.
@@ -132,7 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -141,12 +111,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.
@@ -156,7 +123,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,15 +131,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.
@@ -183,15 +148,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 { @@ -200,7 +166,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -235,7 +201,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_); @@ -248,17 +215,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; } @@ -282,135 +251,131 @@ 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(); @@ -422,9 +387,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 @@ -443,11 +408,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; } @@ -469,39 +431,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; @@ -509,8 +470,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; @@ -550,31 +510,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) { @@ -584,28 +540,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; @@ -614,24 +565,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 { @@ -639,41 +587,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() { @@ -683,24 +620,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; @@ -708,10 +639,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.
@@ -719,7 +648,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -727,8 +655,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -736,7 +662,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -748,8 +673,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -757,7 +680,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -769,8 +691,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.
@@ -780,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; @@ -795,8 +715,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -806,14 +724,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -821,8 +740,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 +749,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.
@@ -857,7 +770,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -867,8 +779,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -878,23 +788,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); } @@ -904,12 +812,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(); } @@ -918,27 +826,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; @@ -953,4 +861,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 4440612c7..fdc7f7f20 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -81,13 +51,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.
@@ -97,8 +64,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 abcca4f93..eb5a2110c 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,32 +26,28 @@ private ListTopicsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
@@ -82,8 +60,6 @@ public java.util.List getTopicsList() {
     return topics_;
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -92,13 +68,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.
@@ -111,8 +85,6 @@ public int getTopicsCount() {
     return topics_.size();
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -125,8 +97,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.
@@ -135,24 +105,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 @@ -161,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 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 { @@ -193,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,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 < topics_.size(); i++) { output.writeMessage(1, topics_.get(i)); } @@ -222,7 +189,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_); @@ -235,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.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; } @@ -268,135 +237,131 @@ 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(); @@ -413,9 +378,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 @@ -434,18 +399,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_); @@ -468,39 +429,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; @@ -508,8 +468,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()) { @@ -528,10 +487,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_); } @@ -568,32 +526,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) { @@ -603,28 +559,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.
@@ -640,8 +589,6 @@ public java.util.List getTopicsList() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -657,8 +604,6 @@ public int getTopicsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -674,8 +619,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.
@@ -683,7 +626,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();
@@ -697,8 +641,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.
@@ -718,8 +660,6 @@ public Builder setTopics(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -741,8 +681,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.
@@ -750,7 +688,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();
@@ -764,8 +703,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.
@@ -773,7 +710,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());
@@ -784,8 +722,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.
@@ -805,8 +741,6 @@ public Builder addTopics(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -818,7 +752,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);
@@ -826,8 +761,6 @@ public Builder addAllTopics(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -846,8 +779,6 @@ public Builder clearTopics() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -866,8 +797,6 @@ public Builder removeTopics(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -875,12 +804,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.
@@ -888,16 +816,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.
@@ -905,8 +831,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 {
@@ -914,8 +840,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.
@@ -924,12 +848,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.
@@ -937,13 +859,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.
@@ -951,22 +872,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_;
@@ -974,21 +893,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; @@ -997,22 +914,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 { @@ -1020,37 +936,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() { @@ -1060,31 +969,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); } @@ -1094,12 +999,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(); } @@ -1108,27 +1013,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; @@ -1143,4 +1048,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 3e64e6c6c..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 72% 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 5a398bba9..9307f0c6c 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,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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.
    * 
@@ -80,8 +58,6 @@ public java.util.List getMessag return messages_; } /** - * - * *
    * The messages to publish.
    * 
@@ -89,13 +65,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.
    * 
@@ -107,8 +81,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * The messages to publish.
    * 
@@ -120,8 +92,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { return messages_.get(index); } /** - * - * *
    * The messages to publish.
    * 
@@ -129,15 +99,14 @@ 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
@@ -153,7 +122,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui
    * 
* * int64 first_sequence_number = 2; - * * @return The firstSequenceNumber. */ @java.lang.Override @@ -162,7 +130,6 @@ public long getFirstSequenceNumber() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,7 +141,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)); } @@ -191,10 +159,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 += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, firstSequenceNumber_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -204,16 +174,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 (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; } @@ -230,143 +201,139 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +350,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 @@ -404,18 +371,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_); @@ -438,39 +401,38 @@ 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; @@ -478,8 +440,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()) { @@ -498,10 +459,9 @@ 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_); } @@ -536,33 +496,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 - 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) { @@ -572,29 +529,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.
      * 
@@ -609,8 +558,6 @@ public java.util.List getMessag } } /** - * - * *
      * The messages to publish.
      * 
@@ -625,8 +572,6 @@ public int getMessagesCount() { } } /** - * - * *
      * The messages to publish.
      * 
@@ -641,15 +586,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(); @@ -663,8 +607,6 @@ public Builder setMessages(int index, com.google.cloud.pubsublite.proto.PubSubMe return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -683,8 +625,6 @@ public Builder setMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -705,15 +645,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(); @@ -727,8 +666,6 @@ public Builder addMessages(int index, com.google.cloud.pubsublite.proto.PubSubMe return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -747,8 +684,6 @@ public Builder addMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -767,8 +702,6 @@ public Builder addMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -779,7 +712,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); @@ -787,8 +721,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -806,8 +738,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -825,20 +755,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.
      * 
@@ -848,22 +775,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 { @@ -871,8 +795,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui } } /** - * - * *
      * The messages to publish.
      * 
@@ -880,57 +802,49 @@ 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
@@ -946,7 +860,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilde
      * 
* * int64 first_sequence_number = 2; - * * @return The firstSequenceNumber. */ @java.lang.Override @@ -954,8 +867,6 @@ 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
@@ -971,7 +882,6 @@ public long getFirstSequenceNumber() {
      * 
* * int64 first_sequence_number = 2; - * * @param value The firstSequenceNumber to set. * @return This builder for chaining. */ @@ -983,8 +893,6 @@ public Builder setFirstSequenceNumber(long value) { return this; } /** - * - * *
      * The sequence number corresponding to the first message in `messages`.
      * Messages within a batch are ordered and the sequence numbers of all
@@ -1000,7 +908,6 @@ public Builder setFirstSequenceNumber(long value) {
      * 
* * int64 first_sequence_number = 2; - * * @return This builder for chaining. */ public Builder clearFirstSequenceNumber() { @@ -1009,9 +916,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); } @@ -1021,12 +928,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(); } @@ -1035,27 +942,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; @@ -1070,4 +977,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 74% 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 e41416948..5b582c955 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,30 +33,25 @@ 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
@@ -93,7 +67,6 @@ public interface MessagePublishRequestOrBuilder
    * 
* * int64 first_sequence_number = 2; - * * @return The firstSequenceNumber. */ long getFirstSequenceNumber(); diff --git a/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 similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java index 14927e779..1397beafd 100644 --- a/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 @@ -1,101 +1,73 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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.
@@ -106,86 +78,74 @@ public interface CursorRangeOrBuilder
     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(); } - 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 @@ -193,26 +153,19 @@ 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.
@@ -222,23 +175,18 @@ 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 @@ -249,14 +197,11 @@ 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 @@ -265,7 +210,6 @@ public int getEndIndex() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,7 +221,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 (startCursor_ != null) { output.writeMessage(1, getStartCursor()); } @@ -297,13 +242,16 @@ 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; @@ -313,20 +261,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.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; } @@ -352,95 +302,89 @@ 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 @@ -450,42 +394,39 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -501,22 +442,19 @@ 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); } @@ -525,21 +463,18 @@ 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_; @@ -553,53 +488,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.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()); } @@ -635,31 +563,29 @@ 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) { @@ -669,54 +595,40 @@ 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.
@@ -738,8 +650,6 @@ 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.
@@ -759,8 +669,6 @@ 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.
@@ -770,9 +678,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;
@@ -785,8 +693,6 @@ 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.
@@ -805,8 +711,6 @@ 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.
@@ -820,8 +724,6 @@ 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.
@@ -833,14 +735,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 cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -849,33 +748,27 @@ 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 @@ -883,15 +776,12 @@ 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. */ @@ -903,15 +793,12 @@ public Builder setStartIndex(int value) { 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() { @@ -921,16 +808,13 @@ 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 @@ -938,14 +822,11 @@ 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. */ @@ -957,14 +838,11 @@ public Builder setEndIndex(int value) { return this; } /** - * - * *
        * Index of the last message in this range. Exclusive.
        * 
* * int32 end_index = 3; - * * @return This builder for chaining. */ public Builder clearEndIndex() { @@ -973,7 +851,6 @@ public Builder clearEndIndex() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -986,44 +863,41 @@ 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; @@ -1035,24 +909,21 @@ 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 @@ -1060,26 +931,19 @@ 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.
@@ -1089,19 +953,13 @@ 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.
@@ -1113,18 +971,13 @@ 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.
@@ -1136,19 +989,14 @@ 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< - ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> + 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.
@@ -1160,17 +1008,13 @@ 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 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.
@@ -1182,18 +1026,13 @@ 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.
@@ -1205,18 +1044,15 @@ 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; @@ -1228,7 +1064,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 (startCursor_ != null) { output.writeMessage(1, getStartCursor()); } @@ -1245,10 +1082,12 @@ 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; @@ -1258,19 +1097,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)) { 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; } @@ -1296,136 +1136,131 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1446,9 +1281,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 @@ -1467,18 +1302,14 @@ 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_); @@ -1493,8 +1324,9 @@ private void buildPartialRepeatedFields( 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(); } } @@ -1502,39 +1334,38 @@ 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; @@ -1542,8 +1373,7 @@ 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()); } @@ -1565,10 +1395,9 @@ 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_); } @@ -1600,34 +1429,32 @@ 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) { @@ -1637,54 +1464,40 @@ 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.
@@ -1706,8 +1519,6 @@ 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.
@@ -1727,8 +1538,6 @@ 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.
@@ -1738,9 +1547,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;
@@ -1753,8 +1562,6 @@ 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.
@@ -1773,8 +1580,6 @@ 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.
@@ -1788,8 +1593,6 @@ 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.
@@ -1801,14 +1604,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 cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1817,44 +1617,32 @@ 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<
-                com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange>(
-                cursorRanges_);
+        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_;
+        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.
@@ -1866,12 +1654,9 @@ 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 { @@ -1879,8 +1664,6 @@ private void ensureCursorRangesIsMutable() { } } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1892,9 +1675,7 @@ 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 int getCursorRangesCount() { if (cursorRangesBuilder_ == null) { @@ -1904,8 +1685,6 @@ public int getCursorRangesCount() { } } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1917,12 +1696,9 @@ 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 { @@ -1930,8 +1706,6 @@ 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.
@@ -1943,9 +1717,7 @@ 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) { @@ -1962,8 +1734,6 @@ 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.
@@ -1975,14 +1745,10 @@ 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()); @@ -1993,8 +1759,6 @@ 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.
@@ -2006,12 +1770,9 @@ 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(); @@ -2025,8 +1786,6 @@ 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.
@@ -2038,9 +1797,7 @@ 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 value) { @@ -2057,8 +1814,6 @@ 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.
@@ -2070,13 +1825,10 @@ 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()); @@ -2087,8 +1839,6 @@ 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.
@@ -2100,14 +1850,10 @@ 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()); @@ -2118,8 +1864,6 @@ 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.
@@ -2131,17 +1875,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 addAllCursorRanges( - java.lang.Iterable< - ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange> - values) { + java.lang.Iterable 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); @@ -2149,8 +1890,6 @@ 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.
@@ -2162,9 +1901,7 @@ 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) { @@ -2177,8 +1914,6 @@ 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.
@@ -2190,9 +1925,7 @@ 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) { @@ -2205,8 +1938,6 @@ 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.
@@ -2218,17 +1949,13 @@ 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.
@@ -2240,21 +1967,16 @@ 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.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.
@@ -2266,13 +1988,10 @@ 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 java.util.List< - ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> - getCursorRangesOrBuilderList() { + public java.util.List + getCursorRangesOrBuilderList() { if (cursorRangesBuilder_ != null) { return cursorRangesBuilder_.getMessageOrBuilderList(); } else { @@ -2280,8 +1999,6 @@ public Builder removeCursorRanges(int index) { } } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2293,20 +2010,13 @@ 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 - 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.
@@ -2318,21 +2028,14 @@ 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 - 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.
@@ -2344,35 +2047,29 @@ 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 java.util.List< - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder> - getCursorRangesBuilderList() { + 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> + 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); } @@ -2382,12 +2079,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(); } @@ -2396,27 +2093,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; @@ -2431,4 +2128,6 @@ public com.google.protobuf.Parser getParserForType() { 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/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java index 82a2134e2..00e7e9135 100644 --- a/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 @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -62,8 +38,6 @@ public interface MessagePublishResponseOrBuilder
   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.
@@ -75,15 +49,11 @@ public interface MessagePublishResponseOrBuilder
    * 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.
@@ -95,14 +65,10 @@ public interface MessagePublishResponseOrBuilder
    * 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.
@@ -114,14 +80,10 @@ public interface MessagePublishResponseOrBuilder
    * 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.
@@ -133,16 +95,11 @@ public interface MessagePublishResponseOrBuilder
    * 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< - ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> + java.util.List getCursorRangesOrBuilderList(); /** - * - * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -154,10 +111,8 @@ public interface MessagePublishResponseOrBuilder
    * 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/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 4304317a3..caa4a0880 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,48 +15,43 @@
  *
  * 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();
   }
 
-  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.
    * 
@@ -85,8 +63,6 @@ public java.util.List getMes return messages_; } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -94,13 +70,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.
    * 
@@ -112,8 +86,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -125,8 +97,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) return messages_.get(index); } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -140,7 +110,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +121,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)); } @@ -166,7 +136,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; @@ -176,15 +147,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; } @@ -206,103 +177,98 @@ 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:
@@ -314,32 +280,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();
@@ -355,9 +322,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
@@ -376,18 +343,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_);
@@ -407,39 +370,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;
@@ -447,8 +409,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()) {
@@ -467,10 +428,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_);
           }
@@ -502,27 +462,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) {
@@ -532,29 +490,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.
      * 
@@ -569,8 +519,6 @@ public java.util.List getMes } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -585,8 +533,6 @@ public int getMessagesCount() { } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -601,8 +547,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -624,8 +568,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -644,8 +586,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -666,8 +606,6 @@ public Builder addMessages(com.google.cloud.pubsublite.proto.SequencedMessage va return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -689,8 +627,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -709,8 +645,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -729,8 +663,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -741,7 +673,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); @@ -749,8 +682,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -768,8 +699,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -787,8 +716,6 @@ public Builder removeMessages(int index) { return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -800,8 +727,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder getMessagesBui return getMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -811,22 +736,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 { @@ -834,8 +756,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -843,12 +763,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.
      * 
@@ -857,43 +775,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); } @@ -903,12 +815,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(); } @@ -917,27 +829,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; @@ -952,4 +864,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 bdd325756..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 0e03c438f..9dbcd5dba 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,36 +26,32 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } - 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 @@ -81,14 +59,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 @@ -96,8 +71,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
@@ -112,15 +85,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 @@ -128,15 +98,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 @@ -144,8 +111,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.
@@ -159,12 +124,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:
@@ -172,7 +134,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string target = 3; - * * @return The target. */ @java.lang.Override @@ -181,15 +142,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:
@@ -197,15 +157,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 { @@ -214,18 +175,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 @@ -234,29 +191,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 { @@ -265,7 +222,6 @@ public com.google.protobuf.ByteString getVerbBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -300,10 +257,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_); @@ -319,24 +278,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; } @@ -366,135 +328,131 @@ 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(); @@ -515,9 +473,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 @@ -536,11 +494,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; } @@ -548,10 +503,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_; @@ -565,39 +524,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; @@ -605,8 +563,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()); } @@ -649,37 +606,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) { @@ -689,52 +645,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.
      * 
@@ -755,15 +697,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 { @@ -774,8 +715,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -784,9 +723,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; @@ -799,8 +738,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -818,8 +755,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -832,8 +767,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
@@ -844,14 +777,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.
      * 
@@ -859,17 +789,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_; @@ -877,35 +804,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() { @@ -916,8 +834,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -939,8 +855,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.
@@ -948,7 +862,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 {
@@ -959,8 +874,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.
@@ -970,9 +883,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;
@@ -985,8 +898,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.
@@ -1005,8 +916,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -1020,8 +929,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.
@@ -1033,12 +940,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.
@@ -1047,17 +953,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_;
@@ -1065,8 +968,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:
@@ -1074,13 +975,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; @@ -1089,8 +990,6 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1098,14 +997,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 { @@ -1113,8 +1013,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:
@@ -1122,22 +1020,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:
@@ -1145,7 +1039,6 @@ public Builder setTarget(java.lang.String value) {
      * 
* * string target = 3; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1155,8 +1048,6 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1164,14 +1055,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; @@ -1181,20 +1070,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; @@ -1203,21 +1090,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 { @@ -1225,35 +1111,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() { @@ -1263,30 +1142,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); } @@ -1296,12 +1171,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(); } @@ -1310,27 +1185,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; @@ -1345,4 +1220,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 4aad43491..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 8b830fc0d..8228c4be5 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,94 +12,81 @@
  *
  * 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();
   }
 
-  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; @@ -128,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 { getSerializedSize(); if (getPartitionsList().size() > 0) { output.writeUInt32NoTag(10); @@ -149,13 +120,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; } @@ -167,15 +139,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; } @@ -197,104 +169,98 @@ 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,
@@ -303,32 +269,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();
@@ -338,9 +305,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
@@ -359,18 +326,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);
@@ -386,39 +349,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;
@@ -426,8 +388,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_;
@@ -464,31 +425,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) {
@@ -498,11 +456,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_);
@@ -510,44 +466,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. */ @@ -555,19 +502,17 @@ 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); @@ -575,14 +520,11 @@ public Builder setPartitions(int index, long value) { 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. */ @@ -594,32 +536,28 @@ public Builder addPartitions(long value) { 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() { @@ -628,9 +566,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); } @@ -640,12 +578,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(); } @@ -654,27 +592,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; @@ -689,4 +627,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 3cd9239ec..6ebf9e17c 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,41 +14,39 @@
  *
  * 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();
   }
 
-  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;
@@ -77,7 +58,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);
   }
 
@@ -95,13 +77,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;
@@ -120,104 +101,98 @@ 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,
@@ -228,32 +203,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();
@@ -261,9 +237,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
@@ -282,8 +258,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;
     }
@@ -292,39 +267,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;
@@ -332,8 +306,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;
@@ -360,13 +333,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) {
@@ -376,9 +348,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);
     }
 
@@ -388,12 +360,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();
   }
@@ -402,27 +374,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;
@@ -437,4 +409,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 d6faa411e..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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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 8b9a8d420..3a1b3585b 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,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; - @SuppressWarnings("serial") 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; } @@ -89,36 +67,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 @@ -126,26 +98,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.
    * 
@@ -153,24 +120,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 @@ -178,26 +141,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.
    * 
@@ -207,13 +165,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; @@ -225,10 +182,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_); @@ -243,14 +200,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; @@ -260,21 +215,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: @@ -308,136 +264,131 @@ 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(); @@ -454,14 +405,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(); } @@ -476,29 +426,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(); } } @@ -507,39 +454,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; @@ -547,24 +493,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(); @@ -592,25 +533,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) { @@ -620,12 +562,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() { @@ -638,19 +580,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 @@ -658,14 +594,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 @@ -674,27 +607,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(); @@ -708,8 +636,6 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -717,8 +643,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(); @@ -729,27 +654,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; } @@ -765,8 +681,6 @@ public Builder mergeInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -790,21 +704,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.
      * 
@@ -812,21 +721,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.
      * 
@@ -834,21 +739,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()); @@ -860,19 +758,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 @@ -880,14 +772,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 @@ -905,8 +794,6 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { } } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -927,8 +814,6 @@ public Builder setAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck v return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -947,8 +832,6 @@ public Builder setAck( return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -957,14 +840,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; } @@ -980,8 +859,6 @@ public Builder mergeAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1005,8 +882,6 @@ public Builder clearAck() { return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1017,8 +892,6 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder getAckBu return getAckFieldBuilder().getBuilder(); } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1037,8 +910,6 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO } } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1046,19 +917,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()); @@ -1068,9 +934,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); } @@ -1080,13 +946,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(); } @@ -1095,27 +960,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; @@ -1130,4 +995,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 a18af781f..01b7dc6e0 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 6e3194d4e..006e0663e 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,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -81,14 +60,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 @@ -96,25 +72,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.
    * 
@@ -123,13 +92,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; @@ -141,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 (partition_ != 0L) { output.writeInt64(1, partition_); } @@ -158,10 +125,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; @@ -171,18 +140,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; @@ -196,7 +166,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(); @@ -207,135 +178,131 @@ 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(); @@ -350,9 +317,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 @@ -371,11 +338,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; } @@ -386,7 +350,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(); } } @@ -394,39 +360,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; @@ -434,8 +399,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()); } @@ -468,25 +432,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) { @@ -496,19 +459,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 @@ -516,14 +475,11 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition this is for.
      * 
* * int64 partition = 1; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -535,14 +491,11 @@ public Builder setPartition(long value) { return this; } /** - * - * *
      * The partition this is for.
      * 
* * int64 partition = 1; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -554,47 +507,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.
      * 
@@ -615,15 +555,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 { @@ -634,8 +573,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The value of the cursor.
      * 
@@ -644,9 +581,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; @@ -659,8 +596,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The value of the cursor.
      * 
@@ -678,8 +613,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The value of the cursor.
      * 
@@ -692,8 +625,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The value of the cursor.
      * 
@@ -704,14 +635,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.
      * 
@@ -719,24 +647,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); } @@ -746,12 +671,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(); } @@ -760,27 +685,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; @@ -795,4 +720,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 8d9e816ec..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 66% 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 9e3f4ca9d..252fb1cfb 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,41 +26,39 @@ private PubSubMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PubSubMessage(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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
@@ -86,7 +66,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * bytes key = 1; - * * @return The key. */ @java.lang.Override @@ -97,14 +76,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 @@ -113,42 +89,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.
    * 
@@ -156,22 +122,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.
    * 
@@ -179,13 +143,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.
    * 
@@ -193,20 +154,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.
    * 
@@ -216,9 +174,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)) { @@ -230,14 +186,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 @@ -245,14 +198,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 @@ -260,8 +210,6 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * An optional, user-specified event time.
    * 
@@ -274,7 +222,6 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,15 +233,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()); } @@ -308,25 +260,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; @@ -336,20 +289,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; @@ -379,156 +335,154 @@ 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(); @@ -545,9 +499,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 @@ -566,11 +520,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; } @@ -588,7 +539,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(); } } @@ -596,39 +549,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; @@ -636,15 +588,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()); @@ -675,45 +627,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) { @@ -723,13 +668,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
@@ -737,7 +679,6 @@ public Builder mergeFrom(
      * 
* * bytes key = 1; - * * @return The key. */ @java.lang.Override @@ -745,8 +686,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
@@ -754,22 +693,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
@@ -777,7 +711,6 @@ public Builder setKey(com.google.protobuf.ByteString value) {
      * 
* * bytes key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -789,14 +722,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 @@ -804,35 +734,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() { @@ -843,11 +765,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( @@ -855,13 +774,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(); @@ -870,13 +787,10 @@ public Builder clearData() { onChanged(); return attributes_; } - public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -884,22 +798,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.
      * 
@@ -907,13 +819,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.
      * 
@@ -921,20 +830,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.
      * 
@@ -944,9 +850,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)) { @@ -954,29 +858,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() { @@ -984,8 +888,6 @@ public Builder removeAttributes(java.lang.String key) { return internalGetMutableAttributes().getMutableMap(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -993,20 +895,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.
      * 
@@ -1015,40 +913,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() { @@ -1059,8 +949,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1081,15 +969,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 { @@ -1100,8 +987,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1110,9 +995,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; @@ -1125,8 +1010,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1144,8 +1027,6 @@ public Builder clearEventTime() { return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1158,8 +1039,6 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1170,12 +1049,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.
      * 
@@ -1183,24 +1061,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); } @@ -1210,12 +1085,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(); } @@ -1224,27 +1099,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; @@ -1259,4 +1134,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 827542aaf..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 3d02526a2..21b8bbde0 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,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; - @SuppressWarnings("serial") 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; } @@ -89,36 +67,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 @@ -126,26 +98,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.
    * 
@@ -153,24 +120,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 @@ -178,26 +141,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.
    * 
@@ -205,16 +163,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; @@ -226,14 +182,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); } @@ -245,14 +200,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; @@ -262,21 +215,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: @@ -309,136 +263,132 @@ 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(); @@ -455,9 +405,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 @@ -476,11 +426,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; @@ -493,10 +440,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(); } } @@ -505,39 +454,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; @@ -545,23 +493,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(); @@ -589,26 +533,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) { @@ -618,12 +562,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() { @@ -636,19 +580,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 @@ -656,14 +594,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 @@ -681,16 +616,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(); @@ -704,8 +636,6 @@ public Builder setInitialRequest( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -724,25 +654,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; } @@ -758,8 +681,6 @@ public Builder mergeInitialRequest( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -783,21 +704,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.
      * 
@@ -805,8 +721,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 { @@ -817,8 +732,6 @@ public Builder clearInitialRequest() { } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -826,20 +739,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()); @@ -851,19 +758,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 @@ -871,14 +772,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 @@ -896,16 +794,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(); @@ -919,8 +814,6 @@ public Builder setMessagePublishRequest( return this; } /** - * - * *
      * Request to publish messages.
      * 
@@ -939,25 +832,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; } @@ -973,8 +859,6 @@ public Builder mergeMessagePublishRequest( return this; } /** - * - * *
      * Request to publish messages.
      * 
@@ -998,21 +882,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.
      * 
@@ -1020,8 +899,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 { @@ -1032,8 +910,6 @@ public Builder clearMessagePublishRequest() { } } /** - * - * *
      * Request to publish messages.
      * 
@@ -1041,20 +917,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()); @@ -1064,9 +934,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); } @@ -1076,12 +946,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(); } @@ -1090,27 +960,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; @@ -1125,4 +995,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 9e45162b2..833816496 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); 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 bd1d0751f..f5a0cc318 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,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; - @SuppressWarnings("serial") 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; } @@ -89,36 +67,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 @@ -126,26 +98,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.
    * 
@@ -153,24 +120,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 @@ -178,26 +141,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.
    * 
@@ -205,16 +163,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; @@ -226,14 +182,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); } @@ -245,14 +200,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; @@ -262,21 +215,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: @@ -310,135 +264,131 @@ 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(); @@ -455,9 +405,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 @@ -476,11 +426,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; @@ -493,10 +440,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(); } } @@ -505,39 +454,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; @@ -545,23 +493,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(); @@ -589,25 +533,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) { @@ -617,12 +562,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() { @@ -635,19 +580,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 @@ -655,14 +594,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 @@ -680,16 +616,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(); @@ -703,8 +636,6 @@ public Builder setInitialResponse( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -723,25 +654,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; } @@ -757,8 +681,6 @@ public Builder mergeInitialResponse( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -782,21 +704,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.
      * 
@@ -804,8 +721,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 { @@ -816,8 +732,6 @@ public Builder clearInitialResponse() { } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -825,20 +739,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()); @@ -850,19 +758,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 @@ -870,14 +772,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 @@ -895,16 +794,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(); @@ -918,8 +814,6 @@ public Builder setMessageResponse( return this; } /** - * - * *
      * Response to publishing messages.
      * 
@@ -938,25 +832,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; } @@ -972,8 +859,6 @@ public Builder mergeMessageResponse( return this; } /** - * - * *
      * Response to publishing messages.
      * 
@@ -997,21 +882,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.
      * 
@@ -1019,8 +899,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 { @@ -1031,8 +910,6 @@ public Builder clearMessageResponse() { } } /** - * - * *
      * Response to publishing messages.
      * 
@@ -1040,20 +917,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()); @@ -1063,9 +934,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); } @@ -1075,12 +946,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(); } @@ -1089,27 +960,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; @@ -1124,4 +995,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 bf8b8f3dd..e2584e146 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 69% 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 70c178dc2..69a605c79 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,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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:
@@ -76,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -85,15 +62,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:
@@ -101,15 +77,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 { @@ -120,8 +97,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
@@ -133,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int64 throughput_capacity = 2; - * * @return The throughputCapacity. */ @java.lang.Override @@ -142,7 +116,6 @@ public long getThroughputCapacity() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,7 +127,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_); } @@ -174,7 +148,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; @@ -184,16 +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.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; } @@ -208,142 +184,139 @@ 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(); @@ -354,9 +327,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 @@ -375,11 +348,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; } @@ -398,39 +368,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; @@ -473,25 +442,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) { @@ -501,13 +467,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -515,13 +478,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; @@ -530,8 +493,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -539,14 +500,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 { @@ -554,8 +516,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -563,22 +523,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:
@@ -586,7 +542,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -596,8 +551,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -605,14 +558,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; @@ -620,10 +571,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
@@ -635,7 +584,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 throughput_capacity = 2; - * * @return The throughputCapacity. */ @java.lang.Override @@ -643,8 +591,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
@@ -656,7 +602,6 @@ public long getThroughputCapacity() {
      * 
* * int64 throughput_capacity = 2; - * * @param value The throughputCapacity to set. * @return This builder for chaining. */ @@ -668,8 +613,6 @@ public Builder setThroughputCapacity(long value) { 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
@@ -681,7 +624,6 @@ public Builder setThroughputCapacity(long value) {
      * 
* * int64 throughput_capacity = 2; - * * @return This builder for chaining. */ public Builder clearThroughputCapacity() { @@ -690,9 +632,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); } @@ -702,12 +644,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(); } @@ -716,27 +658,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; @@ -751,4 +693,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 8234e3898..e8bd1f25c 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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
@@ -66,7 +43,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 71% 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 ac3befafe..9d1c86e26 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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
@@ -32,52 +15,48 @@
  *
  * 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();
   }
 
-  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.
      * 
@@ -86,8 +65,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.
@@ -97,8 +74,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.
@@ -111,8 +86,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value. This value is unused.
      * 
@@ -121,8 +94,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.
@@ -132,8 +103,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.
@@ -143,6 +112,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(
@@ -167,49 +137,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;
@@ -227,19 +197,15 @@ private NamedTarget(int value) {
   }
 
   private int targetCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object target_;
-
   public enum TargetCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NAMED_TARGET(1),
     CURSOR(2),
     TARGET_NOT_SET(0);
     private final int value;
-
     private TargetCase(int value) {
       this.value = value;
     }
@@ -255,50 +221,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() { @@ -308,39 +265,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 @@ -348,27 +296,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.
@@ -379,13 +322,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;
@@ -397,7 +339,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_));
     }
@@ -414,13 +357,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;
@@ -430,21 +372,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:
@@ -477,104 +420,99 @@ 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
@@ -586,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();
@@ -625,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
@@ -646,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;
@@ -663,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();
       }
     }
@@ -672,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;
@@ -714,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();
@@ -755,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) {
@@ -784,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() {
@@ -802,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 @@ -817,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 @@ -835,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. */ @@ -853,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. */ @@ -897,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() { @@ -917,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 @@ -938,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 @@ -964,8 +866,6 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { } } /** - * - * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -987,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.
@@ -996,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();
@@ -1007,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.
@@ -1018,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;
         }
@@ -1040,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.
@@ -1066,8 +958,6 @@ public Builder clearCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1079,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.
@@ -1100,8 +988,6 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1110,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());
@@ -1132,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);
     }
 
@@ -1144,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();
   }
@@ -1158,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;
@@ -1193,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 052262fbd..c65b790a7 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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 72e4edf33..09894a334 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,76 +1,55 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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(); } - 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 @@ -78,25 +57,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.
    * 
@@ -105,13 +77,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; @@ -123,7 +92,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()); } @@ -137,7 +107,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; @@ -147,17 +118,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; @@ -179,136 +150,132 @@ 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(); @@ -322,9 +289,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 @@ -343,11 +310,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; } @@ -355,7 +319,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(); } } @@ -363,39 +329,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; @@ -433,19 +398,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) { @@ -455,52 +420,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.
      * 
@@ -521,15 +472,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 { @@ -540,8 +490,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -550,9 +498,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; @@ -565,8 +513,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -584,8 +530,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -598,8 +542,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -610,14 +552,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.
      * 
@@ -625,24 +564,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); } @@ -652,12 +588,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(); } @@ -666,27 +602,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; @@ -701,4 +637,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 64e65c4fd..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 69% 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 aadb1cab7..58d827dbd 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,80 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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.
      * 
@@ -83,8 +61,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ NAMED_TARGET_UNSPECIFIED(0), /** - * - * *
      * Seek to the oldest retained message.
      * 
@@ -93,8 +69,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ TAIL(1), /** - * - * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -107,8 +81,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified named target. Do not use.
      * 
@@ -117,8 +89,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NAMED_TARGET_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Seek to the oldest retained message.
      * 
@@ -127,8 +97,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.
@@ -138,6 +106,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(
@@ -162,51 +131,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;
@@ -224,19 +191,15 @@ private NamedTarget(int value) {
   }
 
   private int targetCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object target_;
-
   public enum TargetCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NAMED_TARGET(2),
     TIME_TARGET(3),
     TARGET_NOT_SET(0);
     private final int value;
-
     private TargetCase(int value) {
       this.value = value;
     }
@@ -252,41 +215,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 @@ -295,31 +249,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 { @@ -329,28 +281,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() { @@ -360,33 +306,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,
@@ -394,7 +331,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 @@ -402,8 +338,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,
@@ -411,19 +345,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,
@@ -435,13 +366,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;
@@ -453,7 +383,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_);
     }
@@ -476,13 +407,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;
@@ -492,22 +422,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:
@@ -543,136 +475,131 @@ 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(); @@ -687,9 +614,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 @@ -708,11 +635,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; @@ -725,11 +649,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(); } } @@ -738,39 +662,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; @@ -778,28 +701,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(); @@ -827,32 +746,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) { @@ -862,12 +779,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() { @@ -881,22 +798,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; @@ -905,23 +818,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 { @@ -929,39 +839,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() { @@ -971,23 +870,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; @@ -996,15 +889,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 @@ -1012,15 +901,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 @@ -1031,15 +916,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. */ @@ -1050,45 +931,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(); } @@ -1098,15 +966,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() { @@ -1119,13 +983,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,
@@ -1133,7 +992,6 @@ public Builder clearNamedTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return Whether the timeTarget field is set. */ @java.lang.Override @@ -1141,8 +999,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,
@@ -1150,7 +1006,6 @@ public boolean hasTimeTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return The timeTarget. */ @java.lang.Override @@ -1168,8 +1023,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,
@@ -1192,8 +1045,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,
@@ -1214,8 +1065,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,
@@ -1226,13 +1075,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;
         }
@@ -1248,8 +1094,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,
@@ -1275,8 +1119,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,
@@ -1289,8 +1131,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,
@@ -1311,8 +1151,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,
@@ -1322,19 +1160,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());
@@ -1344,9 +1177,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);
     }
 
@@ -1356,12 +1189,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();
   }
@@ -1370,27 +1203,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;
@@ -1405,4 +1238,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 71%
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 74c50646a..447640b33 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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 0711c000d..ffc2d95d9 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,67 +1,48 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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(); } - 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; @@ -73,7 +54,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); } @@ -91,13 +73,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; @@ -116,136 +97,131 @@ 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(); @@ -253,9 +229,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 @@ -274,8 +250,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; } @@ -284,39 +259,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; @@ -324,8 +298,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; @@ -352,13 +325,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) { @@ -368,9 +340,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); } @@ -380,12 +352,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(); } @@ -394,27 +366,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; @@ -429,4 +401,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 63% 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 b5c7b075b..28ef008c3 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,50 +11,46 @@
  *
  * 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();
   }
 
-  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 @@ -79,25 +58,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.
    * 
@@ -106,13 +78,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; @@ -124,7 +93,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()); } @@ -138,7 +108,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; @@ -148,17 +119,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; @@ -181,104 +152,98 @@ 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.
@@ -286,32 +251,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();
@@ -325,14 +291,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();
     }
 
@@ -347,20 +312,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();
       }
     }
 
@@ -368,39 +331,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;
@@ -408,9 +370,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());
       }
@@ -440,19 +400,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) {
@@ -462,52 +422,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.
      * 
@@ -528,15 +474,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 { @@ -547,8 +492,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -557,9 +500,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; @@ -572,8 +515,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -591,8 +532,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -605,8 +544,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -617,14 +554,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.
      * 
@@ -632,24 +566,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); } @@ -659,43 +590,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; @@ -707,8 +636,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 d06ce6137..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 62% 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 8d0311486..c471cd350 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,70 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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
@@ -72,7 +52,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int64 acknowledged_commits = 1; - * * @return The acknowledgedCommits. */ @java.lang.Override @@ -81,7 +60,6 @@ public long getAcknowledgedCommits() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -93,7 +71,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_); } @@ -107,7 +86,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; @@ -117,15 +97,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; } @@ -138,143 +118,139 @@ 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(); @@ -284,14 +260,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(); } @@ -306,17 +281,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_; @@ -327,50 +298,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()); } @@ -400,19 +367,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) { @@ -422,13 +387,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
@@ -436,7 +398,6 @@ public Builder mergeFrom(
      * 
* * int64 acknowledged_commits = 1; - * * @return The acknowledgedCommits. */ @java.lang.Override @@ -444,8 +405,6 @@ public long getAcknowledgedCommits() { return acknowledgedCommits_; } /** - * - * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -453,7 +412,6 @@ public long getAcknowledgedCommits() {
      * 
* * int64 acknowledged_commits = 1; - * * @param value The acknowledgedCommits to set. * @return This builder for chaining. */ @@ -465,8 +423,6 @@ public Builder setAcknowledgedCommits(long value) { return this; } /** - * - * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -474,7 +430,6 @@ public Builder setAcknowledgedCommits(long value) {
      * 
* * int64 acknowledged_commits = 1; - * * @return This builder for chaining. */ public Builder clearAcknowledgedCommits() { @@ -483,9 +438,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); } @@ -495,43 +450,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; @@ -543,8 +496,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 6de8e1daf..31defbe04 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,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -78,25 +57,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.
    * 
@@ -105,23 +77,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 @@ -129,15 +96,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 @@ -145,8 +109,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.
@@ -162,14 +124,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 @@ -177,25 +136,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.
    * 
@@ -204,22 +156,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 @@ -228,7 +175,6 @@ public long getSizeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +186,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()); } @@ -263,16 +210,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; @@ -282,27 +233,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; } @@ -327,142 +281,139 @@ 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(); @@ -487,9 +438,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 @@ -508,11 +459,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; } @@ -520,14 +468,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_; @@ -538,39 +491,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; @@ -578,8 +530,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()); } @@ -618,37 +569,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) { @@ -658,52 +610,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.
      * 
@@ -724,15 +662,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 { @@ -743,8 +680,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.
      * 
@@ -753,9 +688,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; @@ -768,8 +703,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.
      * 
@@ -787,8 +720,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -801,8 +732,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.
      * 
@@ -813,14 +742,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.
      * 
@@ -828,17 +754,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_; @@ -846,49 +769,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.
@@ -910,8 +820,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.
@@ -919,7 +827,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 {
@@ -930,8 +839,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.
@@ -941,9 +848,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;
@@ -956,8 +863,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.
@@ -976,8 +881,6 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -991,8 +894,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.
@@ -1004,14 +905,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.
@@ -1020,17 +918,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_;
@@ -1038,47 +933,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.
      * 
@@ -1099,8 +981,6 @@ public Builder setMessage(com.google.cloud.pubsublite.proto.PubSubMessage value) return this; } /** - * - * *
      * The user message.
      * 
@@ -1119,8 +999,6 @@ public Builder setMessage( return this; } /** - * - * *
      * The user message.
      * 
@@ -1129,9 +1007,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; @@ -1144,8 +1022,6 @@ public Builder mergeMessage(com.google.cloud.pubsublite.proto.PubSubMessage valu return this; } /** - * - * *
      * The user message.
      * 
@@ -1163,8 +1039,6 @@ public Builder clearMessage() { return this; } /** - * - * *
      * The user message.
      * 
@@ -1177,8 +1051,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessageBuilder return getMessageFieldBuilder().getBuilder(); } /** - * - * *
      * The user message.
      * 
@@ -1189,14 +1061,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.
      * 
@@ -1204,32 +1073,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 @@ -1237,14 +1100,11 @@ 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. */ @@ -1256,14 +1116,11 @@ public Builder setSizeBytes(long value) { 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() { @@ -1272,9 +1129,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); } @@ -1284,12 +1141,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(); } @@ -1298,27 +1155,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; @@ -1333,4 +1190,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 b1fdf720b..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 24dfecc84..8df2fb301 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,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; - @SuppressWarnings("serial") 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; } @@ -89,36 +67,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 @@ -126,26 +98,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.
    * 
@@ -153,24 +120,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 @@ -178,26 +141,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.
    * 
@@ -205,16 +163,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; @@ -226,14 +182,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); } @@ -245,14 +200,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; @@ -262,21 +215,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: @@ -310,136 +264,131 @@ 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(); @@ -456,14 +405,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(); } @@ -478,29 +426,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(); } } @@ -509,39 +454,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; @@ -549,24 +493,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(); @@ -594,25 +533,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) { @@ -622,12 +562,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() { @@ -640,19 +580,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 @@ -660,14 +594,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 @@ -685,8 +616,6 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -707,8 +636,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -727,26 +654,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; } @@ -762,8 +681,6 @@ public Builder mergeInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -787,21 +704,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.
      * 
@@ -809,8 +721,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 { @@ -821,8 +732,6 @@ public Builder clearInitial() { } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -830,20 +739,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()); @@ -855,19 +758,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 @@ -875,14 +772,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 @@ -900,8 +794,6 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit( } } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -922,8 +814,6 @@ public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursor return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -942,26 +832,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; } @@ -977,8 +859,6 @@ public Builder mergeCommit( return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -1002,21 +882,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.
      * 
@@ -1024,8 +899,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 { @@ -1036,8 +910,6 @@ public Builder clearCommit() { } } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -1045,20 +917,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()); @@ -1068,9 +934,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); } @@ -1080,43 +946,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; @@ -1128,8 +992,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 72% 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 799c1ded6..52c088618 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
    * 
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 0fb8bf0a6..47c84c7fd 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,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; - @SuppressWarnings("serial") 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; } @@ -89,36 +67,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 @@ -126,26 +98,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.
    * 
@@ -153,24 +120,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 @@ -178,26 +141,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.
    * 
@@ -205,16 +163,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; @@ -226,14 +182,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); } @@ -245,14 +200,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; @@ -262,21 +215,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: @@ -310,136 +264,131 @@ 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(); @@ -456,14 +405,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(); } @@ -478,29 +426,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(); } } @@ -509,65 +454,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(); @@ -595,25 +533,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) { @@ -623,12 +562,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 +580,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 @@ -661,14 +594,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 @@ -686,8 +616,6 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial( } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -708,8 +636,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -728,26 +654,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; } @@ -763,8 +681,6 @@ public Builder mergeInitial( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -788,21 +704,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.
      * 
@@ -810,8 +721,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 { @@ -822,8 +732,6 @@ public Builder clearInitial() { } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -831,20 +739,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()); @@ -856,19 +758,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 @@ -876,14 +772,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 @@ -901,16 +794,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(); @@ -924,8 +814,6 @@ public Builder setCommit( return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -944,26 +832,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; } @@ -979,8 +859,6 @@ public Builder mergeCommit( return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -1004,21 +882,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.
      * 
@@ -1026,8 +899,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 { @@ -1038,8 +910,6 @@ public Builder clearCommit() { } } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -1047,20 +917,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()); @@ -1070,9 +934,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); } @@ -1082,43 +946,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; @@ -1130,8 +992,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 72% 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 71b1f41e0..2f178dad0 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
    * 
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 ec944f25b..53dd6a177 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,80 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; - @SuppressWarnings("serial") 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; } @@ -90,38 +68,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 @@ -129,26 +100,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.
    * 
@@ -158,21 +124,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 @@ -180,26 +143,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.
    * 
@@ -209,21 +167,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 @@ -231,26 +186,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,
    * 
@@ -260,13 +210,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; @@ -278,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (requestCase_ == 1) { output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); } @@ -298,19 +248,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; @@ -320,24 +267,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: @@ -375,135 +324,131 @@ 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(); @@ -523,9 +468,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 @@ -544,11 +489,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; @@ -561,13 +503,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(); } } @@ -576,39 +521,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; @@ -616,28 +560,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(); @@ -665,31 +604,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) { @@ -699,12 +640,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() { @@ -717,19 +658,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 @@ -737,14 +672,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 @@ -762,8 +694,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -784,8 +714,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRequ return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -804,8 +732,6 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -814,14 +740,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; } @@ -837,8 +759,6 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -862,8 +782,6 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -874,8 +792,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial request on the stream.
      * 
@@ -883,8 +799,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 { @@ -895,8 +810,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -904,19 +817,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()); @@ -928,19 +836,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 @@ -948,14 +850,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 @@ -973,8 +872,6 @@ public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { } } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -995,15 +892,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(); @@ -1014,8 +910,6 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest.Builder bui return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1024,13 +918,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; } @@ -1046,8 +937,6 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1071,8 +960,6 @@ public Builder clearSeek() { return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1083,8 +970,6 @@ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1103,8 +988,6 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() } } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1112,19 +995,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()); @@ -1136,19 +1014,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 @@ -1156,14 +1028,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 @@ -1181,8 +1050,6 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { } } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1203,8 +1070,6 @@ public Builder setFlowControl(com.google.cloud.pubsublite.proto.FlowControlReque return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1223,8 +1088,6 @@ public Builder setFlowControl( return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1233,14 +1096,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; } @@ -1256,8 +1115,6 @@ public Builder mergeFlowControl(com.google.cloud.pubsublite.proto.FlowControlReq return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1281,8 +1138,6 @@ public Builder clearFlowControl() { return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1293,8 +1148,6 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest.Builder getFlowContr return getFlowControlFieldBuilder().getBuilder(); } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1313,8 +1166,6 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont } } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1322,19 +1173,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()); @@ -1344,9 +1190,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); } @@ -1356,12 +1202,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(); } @@ -1370,27 +1216,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; @@ -1405,4 +1251,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 8e973c758..085caeeed 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 919140843..4c246ceeb 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,80 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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; - @SuppressWarnings("serial") 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; } @@ -90,38 +68,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 @@ -129,26 +100,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.
    * 
@@ -158,21 +124,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 @@ -180,26 +143,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.
    * 
@@ -209,21 +167,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 @@ -231,26 +186,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.
    * 
@@ -260,13 +210,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; @@ -278,10 +227,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_); @@ -299,19 +248,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; @@ -321,24 +267,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: @@ -376,135 +324,131 @@ 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(); @@ -524,9 +468,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 @@ -545,11 +489,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; @@ -562,13 +503,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(); } } @@ -577,39 +521,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; @@ -617,28 +560,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(); @@ -666,31 +604,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) { @@ -700,12 +640,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() { @@ -718,19 +658,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 @@ -738,14 +672,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 @@ -763,8 +694,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -785,8 +714,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeResp return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -805,8 +732,6 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -815,15 +740,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; } @@ -839,8 +759,6 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -864,8 +782,6 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -876,8 +792,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial response on the stream.
      * 
@@ -885,8 +799,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 { @@ -897,8 +810,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -906,20 +817,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()); @@ -931,19 +836,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 @@ -951,14 +850,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 @@ -976,8 +872,6 @@ public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { } } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -998,15 +892,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(); @@ -1017,8 +910,6 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse.Builder bu return this; } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1027,13 +918,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; } @@ -1049,8 +937,6 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { return this; } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1074,8 +960,6 @@ public Builder clearSeek() { return this; } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1086,8 +970,6 @@ public com.google.cloud.pubsublite.proto.SeekResponse.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1106,8 +988,6 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( } } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1115,19 +995,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()); @@ -1139,19 +1014,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 @@ -1159,14 +1028,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 @@ -1184,8 +1050,6 @@ public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { } } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1206,8 +1070,6 @@ public Builder setMessages(com.google.cloud.pubsublite.proto.MessageResponse val return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1226,8 +1088,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1236,14 +1096,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; } @@ -1259,8 +1115,6 @@ public Builder mergeMessages(com.google.cloud.pubsublite.proto.MessageResponse v return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1284,8 +1138,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1296,8 +1148,6 @@ public com.google.cloud.pubsublite.proto.MessageResponse.Builder getMessagesBuil return getMessagesFieldBuilder().getBuilder(); } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1316,8 +1166,6 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB } } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1325,19 +1173,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()); @@ -1347,9 +1190,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); } @@ -1359,12 +1202,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(); } @@ -1373,27 +1216,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; @@ -1408,4 +1251,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 76% 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 1f4280f0a..418241fd3 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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..67a56c46f --- /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\"\213\001\n\027InitialSubscribeRequest\022\024\n\014subscr" + + "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022G\n\020initi" + + "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" + + "ite.v1.SeekRequestB\004\342A\001\001\"N\n\030InitialSubsc" + + "ribeResponse\0222\n\006cursor\030\001 \001(\0132\".google.cl" + + "oud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest" + + "\022K\n\014named_target\030\001 \001(\01623.google.cloud.pu" + + "bsublite.v1.SeekRequest.NamedTargetH\000\0224\n" + + "\006cursor\030\002 \001(\0132\".google.cloud.pubsublite." + + "v1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARG" + + "ET_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_" + + "CURSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cu" + + "rsor\030\001 \001(\0132\".google.cloud.pubsublite.v1." + + "Cursor\"E\n\022FlowControlRequest\022\030\n\020allowed_" + + "messages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001" + + "\n\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.go" + + "ogle.cloud.pubsublite.v1.InitialSubscrib" + + "eRequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud." + + "pubsublite.v1.SeekRequestH\000\022F\n\014flow_cont" + + "rol\030\003 \001(\0132..google.cloud.pubsublite.v1.F" + + "lowControlRequestH\000B\t\n\007request\"Q\n\017Messag" + + "eResponse\022>\n\010messages\030\001 \003(\0132,.google.clo" + + "ud.pubsublite.v1.SequencedMessage\"\343\001\n\021Su" + + "bscribeResponse\022G\n\007initial\030\001 \001(\01324.googl" + + "e.cloud.pubsublite.v1.InitialSubscribeRe" + + "sponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pu" + + "bsublite.v1.SeekResponseH\000\022?\n\010messages\030\003" + + " \001(\0132+.google.cloud.pubsublite.v1.Messag" + + "eResponseH\000B\n\n\010response\"L\n!InitialPartit" + + "ionAssignmentRequest\022\024\n\014subscription\030\001 \001" + + "(\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssign" + + "ment\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAss" + + "ignmentAck\"\274\001\n\032PartitionAssignmentReques" + + "t\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsub" + + "lite.v1.InitialPartitionAssignmentReques" + + "tH\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsubli" + + "te.v1.PartitionAssignmentAckH\000B\t\n\007reques" + + "t2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.g" + + "oogle.cloud.pubsublite.v1.SubscribeReque" + + "st\032-.google.cloud.pubsublite.v1.Subscrib" + + "eResponse\"\000(\0010\001\032M\312A\031pubsublite.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/" + + "cloud-platform2\357\001\n\032PartitionAssignmentSe" + + "rvice\022\201\001\n\020AssignPartitions\0226.google.clou" + + "d.pubsublite.v1.PartitionAssignmentReque" + + "st\032/.google.cloud.pubsublite.v1.Partitio" + + "nAssignment\"\000(\0010\001\032M\312A\031pubsublite.googlea" + + "pis.com\322A.https://www.googleapis.com/aut" + + "h/cloud-platformB\323\001\n!com.google.cloud.pu" + + "bsublite.protoB\017SubscriberProtoP\001Z>cloud" + + ".google.com/go/pubsublite/apiv1/pubsubli" + + "tepb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubS" + + "ubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002" + + "\035Google::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 09b761aa8..4efe876fa 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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,120 +26,99 @@ private Subscription() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Subscription(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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(); } - 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.
        * 
@@ -166,8 +127,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.
@@ -177,8 +136,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
@@ -192,8 +149,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn
       ;
 
       /**
-       *
-       *
        * 
        * Default value. This value is unused.
        * 
@@ -202,8 +157,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.
@@ -213,8 +166,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
@@ -225,6 +176,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(
@@ -249,14 +201,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;
         }
       }
 
@@ -264,31 +212,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();
@@ -296,7 +242,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;
@@ -316,49 +263,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; @@ -370,11 +298,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); @@ -386,11 +312,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; @@ -400,13 +324,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; @@ -428,94 +351,89 @@ 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 @@ -525,41 +443,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(); @@ -569,14 +485,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(); } @@ -591,17 +506,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_; @@ -612,52 +523,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()); } @@ -687,19 +592,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) { @@ -709,38 +612,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. */ @@ -751,45 +642,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(); } @@ -799,16 +673,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() { @@ -817,7 +686,6 @@ public Builder clearDeliveryRequirement() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -830,44 +698,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; @@ -879,19 +744,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:
@@ -899,7 +761,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -908,15 +769,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:
@@ -924,15 +784,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 { @@ -941,12 +802,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:
@@ -954,7 +812,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ @java.lang.Override @@ -963,15 +820,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:
@@ -979,15 +835,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 { @@ -998,14 +855,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 @@ -1013,25 +867,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.
    * 
@@ -1039,25 +886,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 @@ -1065,26 +906,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.
@@ -1094,13 +928,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;
@@ -1112,7 +943,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_);
     }
@@ -1141,10 +973,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;
@@ -1154,23 +988,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;
@@ -1200,136 +1037,132 @@ 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(); @@ -1350,9 +1183,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 @@ -1371,11 +1204,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; } @@ -1389,12 +1219,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(); } } @@ -1402,39 +1234,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; @@ -1485,37 +1316,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) { @@ -1525,13 +1355,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1539,13 +1366,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; @@ -1554,8 +1381,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1563,14 +1388,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 { @@ -1578,8 +1404,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1587,22 +1411,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:
@@ -1610,7 +1430,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1620,8 +1439,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1629,14 +1446,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; @@ -1646,8 +1461,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:
@@ -1655,13 +1468,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; @@ -1670,8 +1483,6 @@ public java.lang.String getTopic() { } } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1679,14 +1490,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 { @@ -1694,8 +1506,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1703,22 +1513,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:
@@ -1726,7 +1532,6 @@ public Builder setTopic(java.lang.String value) {
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1736,8 +1541,6 @@ public Builder clearTopic() { return this; } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1745,14 +1548,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; @@ -1762,55 +1563,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(); @@ -1824,8 +1611,6 @@ public Builder setDeliveryConfig( return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
@@ -1844,22 +1629,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; @@ -1872,8 +1652,6 @@ public Builder mergeDeliveryConfig( return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
@@ -1891,42 +1669,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.
      * 
@@ -1934,17 +1703,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_; @@ -1952,49 +1718,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.
@@ -2016,8 +1769,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.
@@ -2037,8 +1788,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.
@@ -2048,10 +1797,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;
@@ -2064,8 +1812,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.
@@ -2084,8 +1830,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.
@@ -2099,8 +1843,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.
@@ -2112,14 +1854,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.
@@ -2128,24 +1867,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);
     }
 
@@ -2155,12 +1891,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();
   }
@@ -2169,27 +1905,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;
@@ -2204,4 +1940,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 8ec416344..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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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 66cbd2339..0c7b02378 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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,53 +11,48 @@
  *
  * 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();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   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;
     }
@@ -90,30 +68,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
@@ -121,7 +94,6 @@ public TimeCase getTimeCase() {
    * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -129,8 +101,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
@@ -138,19 +108,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
@@ -162,15 +129,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
@@ -180,7 +145,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -188,8 +152,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
@@ -199,19 +161,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
@@ -225,13 +184,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;
@@ -243,7 +201,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_);
     }
@@ -260,14 +219,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;
@@ -277,21 +234,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:
@@ -324,104 +282,99 @@ 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.
@@ -429,32 +382,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();
@@ -471,9 +425,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
@@ -492,11 +446,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;
@@ -509,10 +460,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();
       }
     }
@@ -521,39 +474,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;
@@ -563,20 +515,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();
@@ -604,25 +553,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) {
@@ -632,12 +582,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() {
@@ -650,13 +600,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
@@ -664,7 +609,6 @@ public Builder clearTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -672,8 +616,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
@@ -681,7 +623,6 @@ public boolean hasPublishTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return The publishTime. */ @java.lang.Override @@ -699,8 +640,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
@@ -723,8 +662,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
@@ -733,7 +670,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();
@@ -744,8 +682,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
@@ -756,11 +692,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;
         }
@@ -776,8 +711,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
@@ -803,8 +736,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
@@ -817,8 +748,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
@@ -839,8 +768,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
@@ -850,20 +777,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;
@@ -872,13 +796,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
@@ -888,7 +807,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -896,8 +814,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
@@ -907,7 +823,6 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return The eventTime. */ @java.lang.Override @@ -925,8 +840,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
@@ -951,8 +864,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
@@ -963,7 +874,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();
@@ -974,8 +886,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
@@ -988,11 +898,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;
         }
@@ -1008,8 +917,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
@@ -1037,8 +944,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
@@ -1053,8 +958,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
@@ -1077,8 +980,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
@@ -1090,29 +991,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);
     }
 
@@ -1122,12 +1020,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();
   }
@@ -1136,27 +1034,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;
@@ -1171,4 +1069,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 bc0913592..81343ab5b 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 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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 7089e3f63..5aca8a551 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,75 +1,53 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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(); } - 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.
      *
@@ -80,14 +58,11 @@ public interface PartitionConfigOrBuilder
      * 
* * int64 count = 1; - * * @return The count. */ long getCount(); /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -100,16 +75,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.
@@ -122,181 +93,154 @@ 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(); 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(); } - 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(); } - 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 @@ -307,15 +251,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 @@ -324,7 +265,6 @@ public int getSubscribeMibPerSec() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +276,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_); } @@ -353,10 +294,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; @@ -366,16 +309,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; } @@ -397,96 +341,89 @@ 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 @@ -496,42 +433,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(); @@ -542,16 +476,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 @@ -565,17 +497,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_; @@ -589,53 +517,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()); } @@ -668,25 +589,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) { @@ -696,20 +614,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 @@ -717,15 +631,12 @@ 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. */ @@ -737,15 +648,12 @@ public Builder setPublishMibPerSec(int value) { 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() { @@ -755,17 +663,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 @@ -773,15 +678,12 @@ 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. */ @@ -793,15 +695,12 @@ public Builder setSubscribeMibPerSec(int value) { 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() { @@ -810,7 +709,6 @@ public Builder clearSubscribeMibPerSec() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -823,44 +721,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; @@ -872,27 +767,22 @@ 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; - @SuppressWarnings("serial") 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; } @@ -908,31 +798,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.
      *
@@ -943,7 +828,6 @@ public DimensionCase getDimensionCase() {
      * 
* * int64 count = 1; - * * @return The count. */ @java.lang.Override @@ -953,8 +837,6 @@ public long getCount() { public static final int SCALE_FIELD_NUMBER = 2; /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -967,19 +849,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.
@@ -992,14 +870,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_; } @@ -1008,14 +884,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 @@ -1023,26 +896,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.
      * 
@@ -1050,16 +918,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; @@ -1071,16 +937,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); } @@ -1092,17 +959,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; @@ -1112,22 +979,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: @@ -1144,7 +1013,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; @@ -1163,94 +1033,89 @@ 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 @@ -1260,41 +1125,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(); @@ -1309,9 +1172,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 @@ -1330,11 +1193,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; @@ -1347,11 +1207,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(); } } @@ -1360,41 +1220,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; @@ -1402,26 +1259,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(); @@ -1449,31 +1302,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) { @@ -1483,12 +1334,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() { @@ -1500,10 +1351,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.
        *
@@ -1514,7 +1363,6 @@ public Builder clearDimension() {
        * 
* * int64 count = 1; - * * @return The count. */ @java.lang.Override @@ -1522,8 +1370,6 @@ public long getCount() { return count_; } /** - * - * *
        * The number of partitions in the topic. Must be at least 1.
        *
@@ -1534,7 +1380,6 @@ public long getCount() {
        * 
* * int64 count = 1; - * * @param value The count to set. * @return This builder for chaining. */ @@ -1546,8 +1391,6 @@ public Builder setCount(long value) { return this; } /** - * - * *
        * The number of partitions in the topic. Must be at least 1.
        *
@@ -1558,7 +1401,6 @@ public Builder setCount(long value) {
        * 
* * int64 count = 1; - * * @return This builder for chaining. */ public Builder clearCount() { @@ -1569,8 +1411,6 @@ public Builder clearCount() { } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1583,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.
@@ -1607,21 +1443,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.
@@ -1634,14 +1466,12 @@ 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; @@ -1649,8 +1479,6 @@ public Builder setScale(int value) { return this; } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1663,13 +1491,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 +1505,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 +1519,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 +1532,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 +1561,6 @@ public Builder setCapacity( return this; } /** - * - * *
        * The capacity configuration.
        * 
@@ -1758,8 +1568,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 +1579,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 +1606,6 @@ public Builder mergeCapacity( return this; } /** - * - * *
        * The capacity configuration.
        * 
@@ -1831,21 +1629,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 +1646,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 +1664,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 +1681,6 @@ public Builder clearCapacity() { onChanged(); return capacityBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1912,12 +1693,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 +1707,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 +1742,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 +1758,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 +1770,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 +1781,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,52 +1796,47 @@ 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(); } - 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
@@ -2081,7 +1845,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * int64 per_partition_bytes = 1; - * * @return The perPartitionBytes. */ @java.lang.Override @@ -2092,8 +1855,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
@@ -2101,7 +1862,6 @@ public long getPerPartitionBytes() {
      * 
* * .google.protobuf.Duration period = 2; - * * @return Whether the period field is set. */ @java.lang.Override @@ -2109,8 +1869,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
@@ -2118,7 +1876,6 @@ public boolean hasPeriod() {
      * 
* * .google.protobuf.Duration period = 2; - * * @return The period. */ @java.lang.Override @@ -2126,8 +1883,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
@@ -2142,7 +1897,6 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -2154,7 +1908,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_);
       }
@@ -2171,10 +1926,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;
@@ -2184,18 +1941,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;
@@ -2209,7 +1967,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();
@@ -2220,94 +1979,89 @@ 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
@@ -2317,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(); @@ -2366,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 @@ -2387,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; } @@ -2402,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(); } } @@ -2410,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; @@ -2452,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()); } @@ -2486,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) { @@ -2514,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
@@ -2529,7 +2272,6 @@ public Builder mergeFrom(
        * 
* * int64 per_partition_bytes = 1; - * * @return The perPartitionBytes. */ @java.lang.Override @@ -2537,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
@@ -2547,7 +2287,6 @@ public long getPerPartitionBytes() {
        * 
* * int64 per_partition_bytes = 1; - * * @param value The perPartitionBytes to set. * @return This builder for chaining. */ @@ -2559,8 +2298,6 @@ public Builder setPerPartitionBytes(long value) { 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
@@ -2569,7 +2306,6 @@ public Builder setPerPartitionBytes(long value) {
        * 
* * int64 per_partition_bytes = 1; - * * @return This builder for chaining. */ public Builder clearPerPartitionBytes() { @@ -2581,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
@@ -2595,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
@@ -2611,7 +2339,6 @@ public boolean hasPeriod() {
        * 
* * .google.protobuf.Duration period = 2; - * * @return The period. */ public com.google.protobuf.Duration getPeriod() { @@ -2622,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
@@ -2646,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
@@ -2656,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 {
@@ -2667,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
@@ -2679,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;
@@ -2694,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
@@ -2715,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
@@ -2731,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
@@ -2745,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
@@ -2760,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) {
@@ -2788,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();
     }
@@ -2802,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;
@@ -2838,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:
@@ -2855,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:
@@ -2869,62 +2574,55 @@ 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(); } - 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:
@@ -2932,7 +2630,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The throughputReservation. */ @java.lang.Override @@ -2941,15 +2638,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:
@@ -2957,15 +2653,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 { @@ -2974,7 +2671,6 @@ public com.google.protobuf.ByteString getThroughputReservationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2986,7 +2682,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_); } @@ -3010,15 +2707,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; } @@ -3038,94 +2735,89 @@ 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 @@ -3135,41 +2827,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(); @@ -3179,9 +2869,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 @@ -3200,11 +2890,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; } @@ -3220,41 +2907,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; @@ -3262,8 +2946,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; @@ -3295,19 +2978,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) { @@ -3317,13 +2998,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:
@@ -3331,13 +3009,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; @@ -3346,8 +3024,6 @@ public java.lang.String getThroughputReservation() { } } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3355,14 +3031,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 { @@ -3370,8 +3047,6 @@ public com.google.protobuf.ByteString getThroughputReservationBytes() { } } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3379,22 +3054,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:
@@ -3402,7 +3073,6 @@ public Builder setThroughputReservation(java.lang.String value) {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearThroughputReservation() { @@ -3412,8 +3082,6 @@ public Builder clearThroughputReservation() { return this; } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3421,21 +3089,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) { @@ -3448,12 +3113,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(); } @@ -3462,28 +3127,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; @@ -3498,15 +3162,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:
@@ -3514,7 +3176,6 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInsta
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -3523,15 +3184,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:
@@ -3539,15 +3199,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 { @@ -3558,14 +3219,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 @@ -3573,25 +3231,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.
    * 
@@ -3599,24 +3250,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 @@ -3624,25 +3269,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.
    * 
@@ -3650,24 +3288,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 @@ -3675,25 +3307,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.
    * 
@@ -3701,15 +3326,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; @@ -3721,7 +3342,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_); } @@ -3747,13 +3369,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; @@ -3763,25 +3388,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; @@ -3813,136 +3442,132 @@ 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(); @@ -3967,9 +3592,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 @@ -3988,11 +3613,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; } @@ -4003,18 +3625,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(); } } @@ -4022,39 +3645,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; @@ -4103,38 +3725,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) { @@ -4144,13 +3766,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4158,13 +3777,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; @@ -4173,8 +3792,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4182,14 +3799,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 { @@ -4197,8 +3815,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4206,22 +3822,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:
@@ -4229,7 +3841,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -4239,8 +3850,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4248,14 +3857,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; @@ -4265,55 +3872,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(); @@ -4327,8 +3920,6 @@ public Builder setPartitionConfig( return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
@@ -4347,21 +3938,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; @@ -4374,8 +3961,6 @@ public Builder mergePartitionConfig( return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
@@ -4393,42 +3978,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.
      * 
@@ -4436,17 +4012,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_; @@ -4454,55 +4027,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(); @@ -4516,8 +4075,6 @@ public Builder setRetentionConfig( return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
@@ -4536,21 +4093,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; @@ -4563,8 +4116,6 @@ public Builder mergeRetentionConfig( return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
@@ -4582,42 +4133,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.
      * 
@@ -4625,17 +4167,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_; @@ -4643,55 +4182,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(); @@ -4705,8 +4230,6 @@ public Builder setReservationConfig( return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4725,21 +4248,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; @@ -4752,8 +4271,6 @@ public Builder mergeReservationConfig( return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4771,42 +4288,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.
      * 
@@ -4814,24 +4322,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); } @@ -4841,12 +4346,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(); } @@ -4855,27 +4360,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; @@ -4890,4 +4395,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 a3c120b03..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 64% 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 66fd8f912..6907dfc52 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,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -79,7 +58,6 @@ public long getPartitionCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -91,7 +69,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_); } @@ -105,7 +84,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; @@ -115,15 +95,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; } @@ -136,142 +116,139 @@ 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(); @@ -281,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_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 @@ -302,11 +279,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; } @@ -322,39 +296,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; @@ -362,8 +335,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()); } @@ -393,19 +365,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) { @@ -415,19 +385,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 @@ -435,14 +401,11 @@ 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. */ @@ -454,14 +417,11 @@ public Builder setPartitionCount(long value) { return this; } /** - * - * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; - * * @return This builder for chaining. */ public Builder clearPartitionCount() { @@ -470,9 +430,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); } @@ -482,12 +442,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(); } @@ -496,27 +456,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; @@ -531,4 +491,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..d002be54c --- /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\"\340\001\n\032ComputeMessa" + + "geStatsRequest\0227\n\005topic\030\001 \001(\tB(\342A\001\002\372A!\n\037" + + "pubsublite.googleapis.com/Topic\022\027\n\tparti" + + "tion\030\002 \001(\003B\004\342A\001\002\0228\n\014start_cursor\030\003 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\0226\n\nen" + + "d_cursor\030\004 \001(\0132\".google.cloud.pubsublite" + + ".v1.Cursor\"\275\001\n\033ComputeMessageStatsRespon" + + "se\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_byt" + + "es\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032" + + ".google.protobuf.Timestamp\0226\n\022minimum_ev" + + "ent_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mp\"l\n\030ComputeHeadCursorRequest\0227\n\005topic\030" + + "\001 \001(\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.co" + + "m/Topic\022\027\n\tpartition\030\002 \001(\003B\004\342A\001\002\"T\n\031Comp" + + "uteHeadCursorResponse\0227\n\013head_cursor\030\001 \001" + + "(\0132\".google.cloud.pubsublite.v1.Cursor\"\252" + + "\001\n\030ComputeTimeCursorRequest\0227\n\005topic\030\001 \001" + + "(\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.com/T" + + "opic\022\027\n\tpartition\030\002 \001(\003B\004\342A\001\002\022<\n\006target\030" + + "\003 \001(\0132&.google.cloud.pubsublite.v1.TimeT" + + "argetB\004\342A\001\002\"O\n\031ComputeTimeCursorResponse" + + "\0222\n\006cursor\030\001 \001(\0132\".google.cloud.pubsubli" + + "te.v1.Cursor2\362\005\n\021TopicStatsService\022\335\001\n\023C" + + "omputeMessageStats\0226.google.cloud.pubsub" + + "lite.v1.ComputeMessageStatsRequest\0327.goo" + + "gle.cloud.pubsublite.v1.ComputeMessageSt" + + "atsResponse\"U\202\323\344\223\002O\"J/v1/topicStats/{top" + + "ic=projects/*/locations/*/topics/*}:comp" + + "uteMessageStats:\001*\022\325\001\n\021ComputeHeadCursor" + + "\0224.google.cloud.pubsublite.v1.ComputeHea" + + "dCursorRequest\0325.google.cloud.pubsublite" + + ".v1.ComputeHeadCursorResponse\"S\202\323\344\223\002M\"H/" + + "v1/topicStats/{topic=projects/*/location" + + "s/*/topics/*}:computeHeadCursor:\001*\022\325\001\n\021C" + + "omputeTimeCursor\0224.google.cloud.pubsubli" + + "te.v1.ComputeTimeCursorRequest\0325.google." + + "cloud.pubsublite.v1.ComputeTimeCursorRes" + + "ponse\"S\202\323\344\223\002M\"H/v1/topicStats/{topic=pro" + + "jects/*/locations/*/topics/*}:computeTim" + + "eCursor:\001*\032M\312A\031pubsublite.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\320\001\n!com.google.cloud.pubsublit" + + "e.protoB\017TopicStatsProtoP\001Z>cloud.google" + + ".com/go/pubsublite/apiv1/pubsublitepb;pu" + + "bsublitepb\252\002\032Google.Cloud.PubSubLite.V1\312" + + "\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035Google::C" + + "loud::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.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 481821cde..15dd4098c 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,78 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -80,54 +57,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 @@ -135,15 +95,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 @@ -151,14 +107,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() { @@ -166,7 +119,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +130,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()); } @@ -195,10 +148,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; @@ -208,21 +163,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; @@ -249,136 +205,131 @@ 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(); @@ -397,9 +348,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 @@ -418,11 +369,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; } @@ -430,11 +378,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(); } } @@ -442,39 +393,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; @@ -482,8 +432,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()); } @@ -516,25 +465,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) { @@ -544,63 +494,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) { @@ -616,15 +546,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) { @@ -638,21 +564,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; @@ -665,15 +587,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); @@ -686,15 +604,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; @@ -702,48 +616,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_; @@ -751,55 +653,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) { @@ -815,16 +701,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 { @@ -835,20 +719,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; @@ -861,14 +742,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); @@ -881,14 +759,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; @@ -896,53 +771,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); } @@ -952,12 +817,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(); } @@ -966,27 +831,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; @@ -1001,4 +866,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 0a09894d0..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 946b8b313..161fbee8a 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,79 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -81,56 +58,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 @@ -138,15 +98,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 @@ -154,14 +110,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() { @@ -169,7 +122,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +133,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()); } @@ -198,10 +151,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; @@ -211,21 +166,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; @@ -252,136 +208,131 @@ 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(); @@ -400,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_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 @@ -421,11 +372,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; } @@ -433,11 +381,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(); } } @@ -445,39 +396,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; @@ -485,8 +435,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()); } @@ -519,25 +468,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) { @@ -547,66 +497,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) { @@ -622,16 +552,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) { @@ -645,23 +571,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; @@ -674,16 +595,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); @@ -696,16 +613,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; @@ -713,50 +626,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_; @@ -764,55 +665,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) { @@ -828,16 +713,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 { @@ -848,20 +731,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; @@ -874,14 +754,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); @@ -894,14 +771,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; @@ -909,53 +783,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); } @@ -965,12 +829,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(); } @@ -979,27 +843,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; @@ -1014,4 +878,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 e81d179e9..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 e8155055e..351e63941 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,77 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } - 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 @@ -79,15 +57,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 @@ -95,14 +69,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() { @@ -112,15 +83,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 @@ -128,15 +95,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 @@ -144,14 +107,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() { @@ -159,7 +119,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,7 +130,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()); } @@ -188,10 +148,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; @@ -201,21 +163,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; @@ -242,135 +205,131 @@ 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(); @@ -389,9 +348,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 @@ -410,11 +369,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; } @@ -422,10 +378,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(); } } @@ -433,39 +393,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; @@ -473,8 +432,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()); } @@ -507,25 +465,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) { @@ -535,60 +494,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) { @@ -604,16 +546,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 { @@ -624,20 +564,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; @@ -650,14 +587,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); @@ -670,14 +604,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; @@ -685,46 +616,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_; @@ -732,55 +653,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) { @@ -796,16 +701,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 { @@ -816,20 +719,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; @@ -842,14 +742,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); @@ -862,14 +759,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; @@ -877,53 +771,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); } @@ -933,12 +817,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(); } @@ -947,27 +831,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; @@ -982,4 +866,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 0a1c04739..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 46b74a6c0..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java +++ /dev/null @@ -1,593 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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\"\240\001" - + "\n\022CreateTopicRequest\022:\n\006parent\030\001 \001(\tB*\342A" - + "\001\002\372A#\n!locations.googleapis.com/Location" - + "\0226\n\005topic\030\002 \001(\0132!.google.cloud.pubsublit" - + "e.v1.TopicB\004\342A\001\002\022\026\n\010topic_id\030\003 \001(\tB\004\342A\001\002" - + "\"I\n\017GetTopicRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372" - + "A!\n\037pubsublite.googleapis.com/Topic\"S\n\031G" - + "etTopicPartitionsRequest\0226\n\004name\030\001 \001(\tB(" - + "\342A\001\002\372A!\n\037pubsublite.googleapis.com/Topic" - + "\"*\n\017TopicPartitions\022\027\n\017partition_count\030\001" - + " \001(\003\"v\n\021ListTopicsRequest\022:\n\006parent\030\001 \001(" - + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" - + "ation\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!.google.cloud.pubsublite.v1.Topic\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\203\001\n\022UpdateTopicRe" - + "quest\0226\n\005topic\030\001 \001(\0132!.google.cloud.pubs" - + "ublite.v1.TopicB\004\342A\001\002\0225\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"L\n\022" - + "DeleteTopicRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A" - + "!\n\037pubsublite.googleapis.com/Topic\"~\n\035Li" - + "stTopicSubscriptionsRequest\0226\n\004name\030\001 \001(" - + "\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.com/To" - + "pic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\"P\n\036ListTopicSubscriptionsResponse\022\025\n\r" - + "subscriptions\030\001 \003(\t\022\027\n\017next_page_token\030\002" - + " \001(\t\"\322\001\n\031CreateSubscriptionRequest\022:\n\006pa" - + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" - + "s.com/Location\022D\n\014subscription\030\002 \001(\0132(.g" - + "oogle.cloud.pubsublite.v1.SubscriptionB\004" - + "\342A\001\002\022\035\n\017subscription_id\030\003 \001(\tB\004\342A\001\002\022\024\n\014s" - + "kip_backlog\030\004 \001(\010\"W\n\026GetSubscriptionRequ" - + "est\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&pubsublite.g" - + "oogleapis.com/Subscription\"}\n\030ListSubscr" - + "iptionsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" - + "!locations.googleapis.com/Location\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"u\n\031Lis" - + "tSubscriptionsResponse\022?\n\rsubscriptions\030" - + "\001 \003(\0132(.google.cloud.pubsublite.v1.Subsc" - + "ription\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n\031Upd" - + "ateSubscriptionRequest\022D\n\014subscription\030\001" - + " \001(\0132(.google.cloud.pubsublite.v1.Subscr" - + "iptionB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\004\342A\001\002\"Z\n\031DeleteSub" - + "scriptionRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n" - + "&pubsublite.googleapis.com/Subscription\"" - + "\273\002\n\027SeekSubscriptionRequest\022=\n\004name\030\001 \001(" - + "\tB/\342A\001\002\372A(\n&pubsublite.googleapis.com/Su" - + "bscription\022W\n\014named_target\030\002 \001(\0162?.googl" - + "e.cloud.pubsublite.v1.SeekSubscriptionRe" - + "quest.NamedTargetH\000\022=\n\013time_target\030\003 \001(\013" - + "2&.google.cloud.pubsublite.v1.TimeTarget" - + "H\000\"?\n\013NamedTarget\022\034\n\030NAMED_TARGET_UNSPEC" - + "IFIED\020\000\022\010\n\004TAIL\020\001\022\010\n\004HEAD\020\002B\010\n\006target\"\032\n" - + "\030SeekSubscriptionResponse\"\220\001\n\021OperationM" - + "etadata\022/\n\013create_time\030\001 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014" - + "\n\004verb\030\004 \001(\t\"\270\001\n\030CreateReservationReques" - + "t\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.go" - + "ogleapis.com/Location\022B\n\013reservation\030\002 \001" - + "(\0132\'.google.cloud.pubsublite.v1.Reservat" - + "ionB\004\342A\001\002\022\034\n\016reservation_id\030\003 \001(\tB\004\342A\001\002\"" - + "U\n\025GetReservationRequest\022<\n\004name\030\001 \001(\tB." - + "\342A\001\002\372A\'\n%pubsublite.googleapis.com/Reser" - + "vation\"|\n\027ListReservationsRequest\022:\n\006par" - + "ent\030\001 \001(\tB*\342A\001\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\"r\n\030ListReservationsResponse" - + "\022=\n\014reservations\030\001 \003(\0132\'.google.cloud.pu" - + "bsublite.v1.Reservation\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\225\001\n\030UpdateReservationRequest\022B\n" - + "\013reservation\030\001 \001(\0132\'.google.cloud.pubsub" - + "lite.v1.ReservationB\004\342A\001\002\0225\n\013update_mask" - + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002" - + "\"X\n\030DeleteReservationRequest\022<\n\004name\030\001 \001" - + "(\tB.\342A\001\002\372A\'\n%pubsublite.googleapis.com/R" - + "eservation\"\203\001\n\034ListReservationTopicsRequ" - + "est\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%pubsublite.g" - + "oogleapis.com/Reservation\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035ListReservat" - + "ionTopicsResponse\022\016\n\006topics\030\001 \003(\t\022\027\n\017nex" - + "t_page_token\030\002 \001(\t2\257\036\n\014AdminService\022\271\001\n\013" - + "CreateTopic\022..google.cloud.pubsublite.v1" - + ".CreateTopicRequest\032!.google.cloud.pubsu" - + "blite.v1.Topic\"W\332A\025parent,topic,topic_id" - + "\202\323\344\223\0029\"0/v1/admin/{parent=projects/*/loc" - + "ations/*}/topics:\005topic\022\233\001\n\010GetTopic\022+.g" - + "oogle.cloud.pubsublite.v1.GetTopicReques" - + "t\032!.google.cloud.pubsublite.v1.Topic\"?\332A" - + "\004name\202\323\344\223\0022\0220/v1/admin/{name=projects/*/" - + "locations/*/topics/*}\022\304\001\n\022GetTopicPartit" - + "ions\0225.google.cloud.pubsublite.v1.GetTop" - + "icPartitionsRequest\032+.google.cloud.pubsu" - + "blite.v1.TopicPartitions\"J\332A\004name\202\323\344\223\002=\022" - + ";/v1/admin/{name=projects/*/locations/*/" - + "topics/*}/partitions\022\256\001\n\nListTopics\022-.go" - + "ogle.cloud.pubsublite.v1.ListTopicsReque" - + "st\032..google.cloud.pubsublite.v1.ListTopi" - + "csResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/admin/{" - + "parent=projects/*/locations/*}/topics\022\273\001" - + "\n\013UpdateTopic\022..google.cloud.pubsublite." - + "v1.UpdateTopicRequest\032!.google.cloud.pub" - + "sublite.v1.Topic\"Y\332A\021topic,update_mask\202\323" - + "\344\223\002?26/v1/admin/{topic.name=projects/*/l" - + "ocations/*/topics/*}:\005topic\022\226\001\n\013DeleteTo" - + "pic\022..google.cloud.pubsublite.v1.DeleteT" - + "opicRequest\032\026.google.protobuf.Empty\"?\332A\004" - + "name\202\323\344\223\0022*0/v1/admin/{name=projects/*/l" - + "ocations/*/topics/*}\022\336\001\n\026ListTopicSubscr" - + "iptions\0229.google.cloud.pubsublite.v1.Lis" - + "tTopicSubscriptionsRequest\032:.google.clou" - + "d.pubsublite.v1.ListTopicSubscriptionsRe" - + "sponse\"M\332A\004name\202\323\344\223\002@\022>/v1/admin/{name=p" - + "rojects/*/locations/*/topics/*}/subscrip" - + "tions\022\352\001\n\022CreateSubscription\0225.google.cl" - + "oud.pubsublite.v1.CreateSubscriptionRequ" - + "est\032(.google.cloud.pubsublite.v1.Subscri" - + "ption\"s\332A#parent,subscription,subscripti" - + "on_id\202\323\344\223\002G\"7/v1/admin/{parent=projects/" - + "*/locations/*}/subscriptions:\014subscripti" - + "on\022\267\001\n\017GetSubscription\0222.google.cloud.pu" - + "bsublite.v1.GetSubscriptionRequest\032(.goo" - + "gle.cloud.pubsublite.v1.Subscription\"F\332A" - + "\004name\202\323\344\223\0029\0227/v1/admin/{name=projects/*/" - + "locations/*/subscriptions/*}\022\312\001\n\021ListSub" - + "scriptions\0224.google.cloud.pubsublite.v1." - + "ListSubscriptionsRequest\0325.google.cloud." - + "pubsublite.v1.ListSubscriptionsResponse\"" - + "H\332A\006parent\202\323\344\223\0029\0227/v1/admin/{parent=proj" - + "ects/*/locations/*}/subscriptions\022\354\001\n\022Up" - + "dateSubscription\0225.google.cloud.pubsubli" - + "te.v1.UpdateSubscriptionRequest\032(.google" - + ".cloud.pubsublite.v1.Subscription\"u\332A\030su" - + "bscription,update_mask\202\323\344\223\002T2D/v1/admin/" - + "{subscription.name=projects/*/locations/" - + "*/subscriptions/*}:\014subscription\022\253\001\n\022Del" - + "eteSubscription\0225.google.cloud.pubsublit" - + "e.v1.DeleteSubscriptionRequest\032\026.google." - + "protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v1/admin" - + "/{name=projects/*/locations/*/subscripti" - + "ons/*}\022\337\001\n\020SeekSubscription\0223.google.clo" - + "ud.pubsublite.v1.SeekSubscriptionRequest" - + "\032\035.google.longrunning.Operation\"w\312A-\n\030Se" - + "ekSubscriptionResponse\022\021OperationMetadat" - + "a\202\323\344\223\002A\"cloud.google.com/go/pubsublite/apiv1/p" - + "ubsublitepb;pubsublitepb\252\002\032Google.Cloud." - + "PubSubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\" - + "V1\352\002\035Google::Cloud::PubSubLite::V1b\006prot" - + "o3" - }; - 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 c9e2bc271..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 6e50c3844..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java +++ /dev/null @@ -1,333 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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}\"\303\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " - + "\001(\0162..google.cloud.pubsublite.v1.ExportC" - + "onfig.State\022K\n\rcurrent_state\030\006 \001(\0162..goo" - + "gle.cloud.pubsublite.v1.ExportConfig.Sta" - + "teB\004\342A\001\003\022C\n\021dead_letter_topic\030\005 \001(\tB(\342A\001" - + "\001\372A!\n\037pubsublite.googleapis.com/Topic\022N\n" - + "\rpubsub_config\030\003 \001(\01325.google.cloud.pubs" - + "ublite.v1.ExportConfig.PubSubConfigH\000\032\035\n" - + "\014PubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUS" - + "ED\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND" - + "\020\004B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publi" - + "sh_time\030\001 \001(\0132\032.google.protobuf.Timestam" - + "pH\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobu" - + "f.TimestampH\000B\006\n\004timeB\317\001\n!com.google.clo" - + "ud.pubsublite.protoB\013CommonProtoP\001Z>clou" - + "d.google.com/go/pubsublite/apiv1/pubsubl" - + "itepb;pubsublitepb\370\001\001\252\002\032Google.Cloud.Pub" - + "SubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352" - + "\002\035Google::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 e1e31e3a8..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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/CursorOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java deleted file mode 100644 index 9d9995b35..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 53548fc58..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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\"\205\001\n\033ListPartitionCursorsRequest\022" - + "?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\n&pubsublite.goo" - + "gleapis.com/Subscription\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurs" - + "or\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\"." - + "google.cloud.pubsublite.v1.Cursor\"\177\n\034Lis" - + "tPartitionCursorsResponse\022F\n\021partition_c" - + "ursors\030\001 \003(\0132+.google.cloud.pubsublite.v" - + "1.PartitionCursor\022\027\n\017next_page_token\030\002 \001" - + "(\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommit" - + "Cursor\0228.google.cloud.pubsublite.v1.Stre" - + "amingCommitCursorRequest\0329.google.cloud." - + "pubsublite.v1.StreamingCommitCursorRespo" - + "nse\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.clou" - + "d.pubsublite.v1.CommitCursorRequest\0320.go" - + "ogle.cloud.pubsublite.v1.CommitCursorRes" - + "ponse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=" - + "projects/*/locations/*/subscriptions/*}:" - + "commitCursor:\001*\022\336\001\n\024ListPartitionCursors" - + "\0227.google.cloud.pubsublite.v1.ListPartit" - + "ionCursorsRequest\0328.google.cloud.pubsubl" - + "ite.v1.ListPartitionCursorsResponse\"S\332A\006" - + "parent\202\323\344\223\002D\022B/v1/cursor/{parent=project" - + "s/*/locations/*/subscriptions/*}/cursors" - + "\032M\312A\031pubsublite.googleapis.com\322A.https:/" - + "/www.googleapis.com/auth/cloud-platformB" - + "\317\001\n!com.google.cloud.pubsublite.protoB\013C" - + "ursorProtoP\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.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 4bcba5c65..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 1aa5376ee..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 40b0ea0bb..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 c6269df63..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 6b286a916..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 a5c436d04..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 e49058526..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 a8d41fdc7..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 a84ab7323..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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/PartitionAssignmentAckOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java deleted file mode 100644 index f66713e44..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 b8067d9a3..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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/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 b31cef860..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 ebc68fa4f..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 5f3bf980f..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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\"\213\001\n\027InitialSubscribeRequest\022\024\n\014subscr" - + "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022G\n\020initi" - + "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" - + "ite.v1.SeekRequestB\004\342A\001\001\"N\n\030InitialSubsc" - + "ribeResponse\0222\n\006cursor\030\001 \001(\0132\".google.cl" - + "oud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest" - + "\022K\n\014named_target\030\001 \001(\01623.google.cloud.pu" - + "bsublite.v1.SeekRequest.NamedTargetH\000\0224\n" - + "\006cursor\030\002 \001(\0132\".google.cloud.pubsublite." - + "v1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARG" - + "ET_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_" - + "CURSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cu" - + "rsor\030\001 \001(\0132\".google.cloud.pubsublite.v1." - + "Cursor\"E\n\022FlowControlRequest\022\030\n\020allowed_" - + "messages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001" - + "\n\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.go" - + "ogle.cloud.pubsublite.v1.InitialSubscrib" - + "eRequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud." - + "pubsublite.v1.SeekRequestH\000\022F\n\014flow_cont" - + "rol\030\003 \001(\0132..google.cloud.pubsublite.v1.F" - + "lowControlRequestH\000B\t\n\007request\"Q\n\017Messag" - + "eResponse\022>\n\010messages\030\001 \003(\0132,.google.clo" - + "ud.pubsublite.v1.SequencedMessage\"\343\001\n\021Su" - + "bscribeResponse\022G\n\007initial\030\001 \001(\01324.googl" - + "e.cloud.pubsublite.v1.InitialSubscribeRe" - + "sponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pu" - + "bsublite.v1.SeekResponseH\000\022?\n\010messages\030\003" - + " \001(\0132+.google.cloud.pubsublite.v1.Messag" - + "eResponseH\000B\n\n\010response\"L\n!InitialPartit" - + "ionAssignmentRequest\022\024\n\014subscription\030\001 \001" - + "(\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssign" - + "ment\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAss" - + "ignmentAck\"\274\001\n\032PartitionAssignmentReques" - + "t\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsub" - + "lite.v1.InitialPartitionAssignmentReques" - + "tH\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsubli" - + "te.v1.PartitionAssignmentAckH\000B\t\n\007reques" - + "t2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.g" - + "oogle.cloud.pubsublite.v1.SubscribeReque" - + "st\032-.google.cloud.pubsublite.v1.Subscrib" - + "eResponse\"\000(\0010\001\032M\312A\031pubsublite.googleapi" - + "s.com\322A.https://www.googleapis.com/auth/" - + "cloud-platform2\357\001\n\032PartitionAssignmentSe" - + "rvice\022\201\001\n\020AssignPartitions\0226.google.clou" - + "d.pubsublite.v1.PartitionAssignmentReque" - + "st\032/.google.cloud.pubsublite.v1.Partitio" - + "nAssignment\"\000(\0010\001\032M\312A\031pubsublite.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\323\001\n!com.google.cloud.pu" - + "bsublite.protoB\017SubscriberProtoP\001Z>cloud" - + ".google.com/go/pubsublite/apiv1/pubsubli" - + "tepb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubS" - + "ubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002" - + "\035Google::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 7c1abfd90..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 9842a109f..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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\"\340\001\n\032ComputeMessa" - + "geStatsRequest\0227\n\005topic\030\001 \001(\tB(\342A\001\002\372A!\n\037" - + "pubsublite.googleapis.com/Topic\022\027\n\tparti" - + "tion\030\002 \001(\003B\004\342A\001\002\0228\n\014start_cursor\030\003 \001(\0132\"" - + ".google.cloud.pubsublite.v1.Cursor\0226\n\nen" - + "d_cursor\030\004 \001(\0132\".google.cloud.pubsublite" - + ".v1.Cursor\"\275\001\n\033ComputeMessageStatsRespon" - + "se\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_byt" - + "es\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032" - + ".google.protobuf.Timestamp\0226\n\022minimum_ev" - + "ent_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mp\"l\n\030ComputeHeadCursorRequest\0227\n\005topic\030" - + "\001 \001(\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.co" - + "m/Topic\022\027\n\tpartition\030\002 \001(\003B\004\342A\001\002\"T\n\031Comp" - + "uteHeadCursorResponse\0227\n\013head_cursor\030\001 \001" - + "(\0132\".google.cloud.pubsublite.v1.Cursor\"\252" - + "\001\n\030ComputeTimeCursorRequest\0227\n\005topic\030\001 \001" - + "(\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.com/T" - + "opic\022\027\n\tpartition\030\002 \001(\003B\004\342A\001\002\022<\n\006target\030" - + "\003 \001(\0132&.google.cloud.pubsublite.v1.TimeT" - + "argetB\004\342A\001\002\"O\n\031ComputeTimeCursorResponse" - + "\0222\n\006cursor\030\001 \001(\0132\".google.cloud.pubsubli" - + "te.v1.Cursor2\362\005\n\021TopicStatsService\022\335\001\n\023C" - + "omputeMessageStats\0226.google.cloud.pubsub" - + "lite.v1.ComputeMessageStatsRequest\0327.goo" - + "gle.cloud.pubsublite.v1.ComputeMessageSt" - + "atsResponse\"U\202\323\344\223\002O\"J/v1/topicStats/{top" - + "ic=projects/*/locations/*/topics/*}:comp" - + "uteMessageStats:\001*\022\325\001\n\021ComputeHeadCursor" - + "\0224.google.cloud.pubsublite.v1.ComputeHea" - + "dCursorRequest\0325.google.cloud.pubsublite" - + ".v1.ComputeHeadCursorResponse\"S\202\323\344\223\002M\"H/" - + "v1/topicStats/{topic=projects/*/location" - + "s/*/topics/*}:computeHeadCursor:\001*\022\325\001\n\021C" - + "omputeTimeCursor\0224.google.cloud.pubsubli" - + "te.v1.ComputeTimeCursorRequest\0325.google." - + "cloud.pubsublite.v1.ComputeTimeCursorRes" - + "ponse\"S\202\323\344\223\002M\"H/v1/topicStats/{topic=pro" - + "jects/*/locations/*/topics/*}:computeTim" - + "eCursor:\001*\032M\312A\031pubsublite.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\320\001\n!com.google.cloud.pubsublit" - + "e.protoB\017TopicStatsProtoP\001Z>cloud.google" - + ".com/go/pubsublite/apiv1/pubsublitepb;pu" - + "bsublitepb\252\002\032Google.Cloud.PubSubLite.V1\312" - + "\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035Google::C" - + "loud::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.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 d51a42b8d7f1e6d7787e2fff00c592bac9d54c09 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 8 Jan 2024 21:18:09 +0000 Subject: [PATCH 2/5] =?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 | 2582 ++++++++++++++++ .../pubsublite/proto/CursorServiceGrpc.java | 615 ++++ .../proto/PartitionAssignmentServiceGrpc.java | 206 +- .../proto/PublisherServiceGrpc.java | 195 +- .../proto/SubscriberServiceGrpc.java | 200 +- .../proto/TopicStatsServiceGrpc.java | 659 ++++ .../reflect-config.json | 2666 ----------------- .../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 | 1945 ------------ .../pubsublite/proto/CursorServiceGrpc.java | 485 --- .../proto/TopicStatsServiceGrpc.java | 523 ---- .../cloud/pubsublite/proto/AdminProto.java | 554 ---- .../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 | 593 ++++ .../pubsublite/proto/AttributeValues.java | 329 +- .../proto/AttributeValuesOrBuilder.java | 27 +- .../pubsublite/proto/CommitCursorRequest.java | 453 +-- .../proto/CommitCursorRequestOrBuilder.java | 38 +- .../proto/CommitCursorResponse.java | 248 +- .../proto/CommitCursorResponseOrBuilder.java | 24 + .../cloud/pubsublite/proto/CommonProto.java | 333 ++ .../proto/ComputeHeadCursorRequest.java | 384 ++- .../ComputeHeadCursorRequestOrBuilder.java | 67 + .../proto/ComputeHeadCursorResponse.java | 350 ++- .../ComputeHeadCursorResponseOrBuilder.java | 26 +- .../proto/ComputeMessageStatsRequest.java | 586 ++-- .../ComputeMessageStatsRequestOrBuilder.java | 54 +- .../proto/ComputeMessageStatsResponse.java | 531 ++-- .../ComputeMessageStatsResponseOrBuilder.java | 40 +- .../proto/ComputeTimeCursorRequest.java | 529 ++-- .../ComputeTimeCursorRequestOrBuilder.java | 58 +- .../proto/ComputeTimeCursorResponse.java | 350 ++- .../ComputeTimeCursorResponseOrBuilder.java | 26 +- .../proto/CreateReservationRequest.java | 565 ++-- .../CreateReservationRequestOrBuilder.java | 64 +- .../proto/CreateSubscriptionRequest.java | 600 ++-- .../CreateSubscriptionRequestOrBuilder.java | 67 +- .../pubsublite/proto/CreateTopicRequest.java | 544 ++-- .../proto/CreateTopicRequestOrBuilder.java | 61 +- .../google/cloud/pubsublite/proto/Cursor.java | 274 +- .../pubsublite/proto/CursorOrBuilder.java | 39 + .../cloud/pubsublite/proto/CursorProto.java | 253 ++ .../proto/DeleteReservationRequest.java | 350 ++- .../DeleteReservationRequestOrBuilder.java | 58 + .../proto/DeleteSubscriptionRequest.java | 350 ++- .../DeleteSubscriptionRequestOrBuilder.java | 54 + .../pubsublite/proto/DeleteTopicRequest.java | 347 ++- .../proto/DeleteTopicRequestOrBuilder.java | 54 + .../cloud/pubsublite/proto/ExportConfig.java | 1055 ++++--- .../proto/ExportConfigOrBuilder.java | 63 +- .../pubsublite/proto/FlowControlRequest.java | 318 +- .../proto/FlowControlRequestOrBuilder.java | 24 +- .../proto/GetReservationRequest.java | 350 ++- .../proto/GetReservationRequestOrBuilder.java | 58 + .../proto/GetSubscriptionRequest.java | 350 ++- .../GetSubscriptionRequestOrBuilder.java | 54 + .../proto/GetTopicPartitionsRequest.java | 350 ++- .../GetTopicPartitionsRequestOrBuilder.java | 54 + .../pubsublite/proto/GetTopicRequest.java | 347 ++- .../proto/GetTopicRequestOrBuilder.java | 54 + .../proto/InitialCommitCursorRequest.java | 366 ++- .../InitialCommitCursorRequestOrBuilder.java | 30 +- .../proto/InitialCommitCursorResponse.java | 255 +- .../InitialCommitCursorResponseOrBuilder.java | 24 + .../InitialPartitionAssignmentRequest.java | 393 ++- ...alPartitionAssignmentRequestOrBuilder.java | 30 +- .../proto/InitialPublishRequest.java | 389 ++- .../proto/InitialPublishRequestOrBuilder.java | 33 +- .../proto/InitialPublishResponse.java | 248 +- .../InitialPublishResponseOrBuilder.java | 24 + .../proto/InitialSubscribeRequest.java | 500 ++-- .../InitialSubscribeRequestOrBuilder.java | 50 +- .../proto/InitialSubscribeResponse.java | 350 ++- .../InitialSubscribeResponseOrBuilder.java | 26 +- .../proto/ListPartitionCursorsRequest.java | 463 +-- .../ListPartitionCursorsRequestOrBuilder.java | 47 +- .../proto/ListPartitionCursorsResponse.java | 489 +-- ...ListPartitionCursorsResponseOrBuilder.java | 42 +- .../proto/ListReservationTopicsRequest.java | 473 +-- ...ListReservationTopicsRequestOrBuilder.java | 47 +- .../proto/ListReservationTopicsResponse.java | 453 +-- ...istReservationTopicsResponseOrBuilder.java | 45 +- .../proto/ListReservationsRequest.java | 453 +-- .../ListReservationsRequestOrBuilder.java | 47 +- .../proto/ListReservationsResponse.java | 477 +-- .../ListReservationsResponseOrBuilder.java | 45 +- .../proto/ListSubscriptionsRequest.java | 453 +-- .../ListSubscriptionsRequestOrBuilder.java | 47 +- .../proto/ListSubscriptionsResponse.java | 460 +-- .../ListSubscriptionsResponseOrBuilder.java | 45 +- .../proto/ListTopicSubscriptionsRequest.java | 476 +-- ...istTopicSubscriptionsRequestOrBuilder.java | 47 +- .../proto/ListTopicSubscriptionsResponse.java | 456 +-- ...stTopicSubscriptionsResponseOrBuilder.java | 45 +- .../pubsublite/proto/ListTopicsRequest.java | 450 +-- .../proto/ListTopicsRequestOrBuilder.java | 47 +- .../pubsublite/proto/ListTopicsResponse.java | 479 +-- .../proto/ListTopicsResponseOrBuilder.java | 45 +- .../cloud/pubsublite/proto/LocationName.java | 0 .../proto/MessagePublishRequest.java | 443 +-- .../proto/MessagePublishRequestOrBuilder.java | 39 +- .../proto/MessagePublishResponse.java | 1091 ++++--- .../MessagePublishResponseOrBuilder.java | 65 +- .../pubsublite/proto/MessageResponse.java | 392 ++- .../proto/MessageResponseOrBuilder.java | 36 +- .../pubsublite/proto/OperationMetadata.java | 563 ++-- .../proto/OperationMetadataOrBuilder.java | 52 +- .../pubsublite/proto/PartitionAssignment.java | 350 ++- .../proto/PartitionAssignmentAck.java | 248 +- .../PartitionAssignmentAckOrBuilder.java | 24 + .../proto/PartitionAssignmentOrBuilder.java | 27 +- .../proto/PartitionAssignmentRequest.java | 527 ++-- .../PartitionAssignmentRequestOrBuilder.java | 37 +- .../pubsublite/proto/PartitionCursor.java | 381 ++- .../proto/PartitionCursorOrBuilder.java | 29 +- .../cloud/pubsublite/proto/PubSubMessage.java | 637 ++-- .../proto/PubSubMessageOrBuilder.java | 60 +- .../pubsublite/proto/PublishRequest.java | 518 ++-- .../proto/PublishRequestOrBuilder.java | 37 +- .../pubsublite/proto/PublishResponse.java | 517 ++-- .../proto/PublishResponseOrBuilder.java | 34 +- .../pubsublite/proto/PublisherProto.java | 182 ++ .../cloud/pubsublite/proto/Reservation.java | 346 ++- .../pubsublite/proto/ReservationName.java | 0 .../proto/ReservationOrBuilder.java | 30 +- .../cloud/pubsublite/proto/SeekRequest.java | 515 ++-- .../proto/SeekRequestOrBuilder.java | 35 +- .../cloud/pubsublite/proto/SeekResponse.java | 340 ++- .../proto/SeekResponseOrBuilder.java | 26 +- .../proto/SeekSubscriptionRequest.java | 655 ++-- .../SeekSubscriptionRequestOrBuilder.java | 52 +- .../proto/SeekSubscriptionResponse.java | 248 +- .../SeekSubscriptionResponseOrBuilder.java | 24 + .../proto/SequencedCommitCursorRequest.java | 370 ++- ...SequencedCommitCursorRequestOrBuilder.java | 26 +- .../proto/SequencedCommitCursorResponse.java | 310 +- ...equencedCommitCursorResponseOrBuilder.java | 40 + .../pubsublite/proto/SequencedMessage.java | 565 ++-- .../proto/SequencedMessageOrBuilder.java | 45 +- .../proto/StreamingCommitCursorRequest.java | 539 ++-- ...StreamingCommitCursorRequestOrBuilder.java | 34 +- .../proto/StreamingCommitCursorResponse.java | 545 ++-- ...treamingCommitCursorResponseOrBuilder.java | 34 +- .../pubsublite/proto/SubscribeRequest.java | 576 ++-- .../proto/SubscribeRequestOrBuilder.java | 42 +- .../pubsublite/proto/SubscribeResponse.java | 583 ++-- .../proto/SubscribeResponseOrBuilder.java | 42 +- .../pubsublite/proto/SubscriberProto.java | 264 ++ .../cloud/pubsublite/proto/Subscription.java | 1038 ++++--- .../pubsublite/proto/SubscriptionName.java | 0 .../proto/SubscriptionOrBuilder.java | 55 +- .../cloud/pubsublite/proto/TimeTarget.java | 476 +-- .../pubsublite/proto/TimeTargetOrBuilder.java | 34 +- .../google/cloud/pubsublite/proto/Topic.java | 2235 ++++++++------ .../cloud/pubsublite/proto/TopicName.java | 0 .../pubsublite/proto/TopicOrBuilder.java | 54 +- .../pubsublite/proto/TopicPartitions.java | 284 +- .../proto/TopicPartitionsOrBuilder.java | 38 + .../pubsublite/proto/TopicStatsProto.java | 194 ++ .../proto/UpdateReservationRequest.java | 521 ++-- .../UpdateReservationRequestOrBuilder.java | 55 +- .../proto/UpdateSubscriptionRequest.java | 522 ++-- .../UpdateSubscriptionRequestOrBuilder.java | 55 +- .../pubsublite/proto/UpdateTopicRequest.java | 500 ++-- .../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 364 files changed, 29777 insertions(+), 25523 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 (58%) 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 (62%) 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 (55%) 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/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json 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 (68%) 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 (62%) 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 (63%) 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 (63%) 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 (62%) 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 (66%) 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 (67%) 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 (73%) 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 (71%) 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 (74%) 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 (66%) 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 (69%) 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 (71%) 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 (69%) 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 (71%) 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 (63%) 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 (62%) 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 (72%) 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 (72%) 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 (76%) 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 (64%) 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 2130725a3..d0d340bbf 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 db76616b8..5dd3040dd 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 6b6f0a14d..fef5c20e2 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 7bb28513f..7a9e05572 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 84144ef01..33a0fe82d 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 8f38ee9f0..27e13cad1 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 5ec6b3a93..35ef5dcb2 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 dc13090db..dee68e5ac 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 5c5a25223..de69736f5 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..04c820110 --- /dev/null +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java @@ -0,0 +1,2582 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 java.lang.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 interface AsyncService { + + /** + * + * + *
+     * Creates a new topic.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listReservationTopics( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReservationTopicsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AdminService. + * + *
+   * 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, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AdminServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AdminService. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AdminService. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AdminService. + * + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>(service, METHODID_CREATE_TOPIC))) + .addMethod( + getGetTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicRequest, + com.google.cloud.pubsublite.proto.Topic>(service, METHODID_GET_TOPIC))) + .addMethod( + getGetTopicPartitionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, + com.google.cloud.pubsublite.proto.TopicPartitions>( + service, 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>( + service, METHODID_LIST_TOPICS))) + .addMethod( + getUpdateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>(service, METHODID_UPDATE_TOPIC))) + .addMethod( + getDeleteTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteTopicRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_TOPIC))) + .addMethod( + getListTopicSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( + service, 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>( + service, METHODID_CREATE_SUBSCRIPTION))) + .addMethod( + getGetSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + service, METHODID_GET_SUBSCRIPTION))) + .addMethod( + getListSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( + service, METHODID_LIST_SUBSCRIPTIONS))) + .addMethod( + getUpdateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + service, METHODID_UPDATE_SUBSCRIPTION))) + .addMethod( + getDeleteSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SUBSCRIPTION))) + .addMethod( + getSeekSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, + com.google.longrunning.Operation>(service, METHODID_SEEK_SUBSCRIPTION))) + .addMethod( + getCreateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + service, METHODID_CREATE_RESERVATION))) + .addMethod( + getGetReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + service, METHODID_GET_RESERVATION))) + .addMethod( + getListReservationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationsRequest, + com.google.cloud.pubsublite.proto.ListReservationsResponse>( + service, METHODID_LIST_RESERVATIONS))) + .addMethod( + getUpdateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + service, METHODID_UPDATE_RESERVATION))) + .addMethod( + getDeleteReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteReservationRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_RESERVATION))) + .addMethod( + getListReservationTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( + service, METHODID_LIST_RESERVATION_TOPICS))) + .build(); + } + + 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 java.lang.String methodName; + + AdminServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (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..7526b8762 --- /dev/null +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java @@ -0,0 +1,615 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 java.lang.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 interface AsyncService { + + /** + * + * + *
+     * Establishes a stream with the server for managing committed cursors.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listPartitionCursors( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPartitionCursorsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service CursorService. + * + *
+   * 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, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return CursorServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service CursorService. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service CursorService. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service CursorService. + * + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, 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>( + service, METHODID_COMMIT_CURSOR))) + .addMethod( + getListPartitionCursorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( + service, METHODID_LIST_PARTITION_CURSORS))) + .build(); + } + + 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 java.lang.String methodName; + + CursorServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (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 58% 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 126cd48ed..a4a6805ad 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.
@@ -16,85 +33,104 @@ public final class PartitionAssignmentServiceGrpc {
 
   private PartitionAssignmentServiceGrpc() {}
 
-  public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.PartitionAssignmentService";
+  public static final java.lang.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.
@@ -103,6 +139,8 @@ public PartitionAssignmentServiceFutureStub newStub(io.grpc.Channel channel, io.
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -112,29 +150,36 @@ public interface AsyncService {
      * partitions it is connected to to reflect the new assignment.
      * 
*/ - default io.grpc.stub.StreamObserver assignPartitions( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getAssignPartitionsMethod(), responseObserver); + default io.grpc.stub.StreamObserver< + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest> + assignPartitions( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getAssignPartitionsMethod(), responseObserver); } } /** * Base class for the server implementation of the service PartitionAssignmentService. + * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public static abstract class PartitionAssignmentServiceImplBase + public abstract static class PartitionAssignmentServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return PartitionAssignmentServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service PartitionAssignmentService. + * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
@@ -154,6 +199,8 @@ protected PartitionAssignmentServiceStub build(
     }
 
     /**
+     *
+     *
      * 
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -163,8 +210,10 @@ 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); } @@ -172,6 +221,7 @@ public io.grpc.stub.StreamObserver * The service that a subscriber client application uses to determine which * partitions it should connect to. @@ -192,7 +242,9 @@ protected PartitionAssignmentServiceBlockingStub build( } /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service PartitionAssignmentService. + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * PartitionAssignmentService. + * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
@@ -214,11 +266,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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -242,8 +294,11 @@ 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();
       }
@@ -253,17 +308,18 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     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>(
-                service, METHODID_ASSIGN_PARTITIONS)))
+            getAssignPartitionsMethod(),
+            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+                new MethodHandlers<
+                    com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
+                    com.google.cloud.pubsublite.proto.PartitionAssignment>(
+                    service, METHODID_ASSIGN_PARTITIONS)))
         .build();
   }
 
-  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
@@ -305,10 +361,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 62%
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 b272320ca..14a840626 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 java.lang.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
@@ -107,6 +138,8 @@ public PublisherServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallO
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Establishes a stream with the server for publishing messages. Once the
      * stream is initialized, the client publishes messages by sending publish
@@ -118,13 +151,16 @@ public interface AsyncService {
      * 
*/ default 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); } } /** * Base class for the server implementation of the service PublisherService. + * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -132,16 +168,18 @@ default io.grpc.stub.StreamObserver
    */
-  public static abstract class PublisherServiceImplBase
+  public abstract static class PublisherServiceImplBase
       implements io.grpc.BindableService, AsyncService {
 
-    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
+    @java.lang.Override
+    public final io.grpc.ServerServiceDefinition bindService() {
       return PublisherServiceGrpc.bindService(this);
     }
   }
 
   /**
    * A stub to allow clients to do asynchronous rpc calls to service PublisherService.
+   *
    * 
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -151,18 +189,18 @@ public static abstract class PublisherServiceImplBase
    */
   public static final class PublisherServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private PublisherServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    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
@@ -174,7 +212,8 @@ 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); } @@ -182,6 +221,7 @@ public io.grpc.stub.StreamObserver * The service that a publisher client application uses to publish messages to * topics. Published messages are retained by the service for the duration of @@ -191,8 +231,7 @@ public io.grpc.stub.StreamObserver { - private PublisherServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PublisherServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -205,6 +244,7 @@ protected PublisherServiceBlockingStub build( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service PublisherService. + * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -214,8 +254,7 @@ protected PublisherServiceBlockingStub build(
    */
   public static final class PublisherServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private PublisherServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private PublisherServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -228,11 +267,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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -256,8 +295,10 @@ 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();
       }
@@ -267,17 +308,17 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     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>(
-                service, METHODID_PUBLISH)))
+            getPublishMethod(),
+            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+                new MethodHandlers<
+                    com.google.cloud.pubsublite.proto.PublishRequest,
+                    com.google.cloud.pubsublite.proto.PublishResponse>(service, METHODID_PUBLISH)))
         .build();
   }
 
-  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
@@ -319,10 +360,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 55%
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 7e9b83b02..9b3ccb0bd 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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.
@@ -16,85 +33,101 @@ public final class SubscriberServiceGrpc {
 
   private SubscriberServiceGrpc() {}
 
-  public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.SubscriberService";
+  public static final java.lang.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.
@@ -103,33 +136,41 @@ public SubscriberServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.Call
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Establishes a stream with the server for receiving messages.
      * 
*/ - default io.grpc.stub.StreamObserver subscribe( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getSubscribeMethod(), responseObserver); + default io.grpc.stub.StreamObserver + subscribe( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getSubscribeMethod(), responseObserver); } } /** * Base class for the server implementation of the service SubscriberService. + * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public static abstract class SubscriberServiceImplBase + public abstract static class SubscriberServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return SubscriberServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SubscriberService. + * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
@@ -137,8 +178,7 @@ public static abstract class SubscriberServiceImplBase
    */
   public static final class SubscriberServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private SubscriberServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SubscriberServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -149,12 +189,16 @@ 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); } @@ -162,6 +206,7 @@ public io.grpc.stub.StreamObserver * The service that a subscriber client application uses to receive messages * from subscriptions. @@ -183,6 +228,7 @@ protected SubscriberServiceBlockingStub build( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service SubscriberService. + * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
@@ -190,8 +236,7 @@ protected SubscriberServiceBlockingStub build(
    */
   public static final class SubscriberServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private SubscriberServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SubscriberServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -204,11 +249,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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -232,8 +277,10 @@ 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();
       }
@@ -243,17 +290,18 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     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>(
-                service, METHODID_SUBSCRIBE)))
+            getSubscribeMethod(),
+            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+                new MethodHandlers<
+                    com.google.cloud.pubsublite.proto.SubscribeRequest,
+                    com.google.cloud.pubsublite.proto.SubscribeResponse>(
+                    service, METHODID_SUBSCRIBE)))
         .build();
   }
 
-  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
@@ -295,10 +343,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..73e8e224a
--- /dev/null
+++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java
@@ -0,0 +1,659 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 java.lang.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 interface AsyncService { + + /** + * + * + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void computeTimeCursor( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeTimeCursorMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TopicStatsService. + * + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public abstract static class TopicStatsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return TopicStatsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TopicStatsService. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TopicStatsService. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TopicStatsService. + * + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, 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>( + service, 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>( + service, METHODID_COMPUTE_TIME_CURSOR))) + .build(); + } + + 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 java.lang.String methodName; + + TopicStatsServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (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/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json deleted file mode 100644 index 0a5aca4fc..000000000 --- a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json +++ /dev/null @@ -1,2666 +0,0 @@ -[ - { - "name": "com.google.api.ClientLibraryDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibraryOrganization", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.FieldBehavior", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LaunchStage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$History", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Style", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.AttributeValues", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.AttributeValues$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CommitCursorRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CommitCursorRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CommitCursorResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CommitCursorResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CreateReservationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CreateReservationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CreateSubscriptionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CreateSubscriptionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CreateTopicRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.CreateTopicRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Cursor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Cursor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.DeleteReservationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.DeleteReservationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.DeleteTopicRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.DeleteTopicRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ExportConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ExportConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ExportConfig$PubSubConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ExportConfig$PubSubConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ExportConfig$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.FlowControlRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.FlowControlRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.GetReservationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.GetReservationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.GetSubscriptionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.GetSubscriptionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.GetTopicRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.GetTopicRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialPublishRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialPublishRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialPublishResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialPublishResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialSubscribeRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialSubscribeRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialSubscribeResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.InitialSubscribeResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListReservationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListReservationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListReservationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListReservationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListTopicsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListTopicsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListTopicsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.ListTopicsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.MessagePublishRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.MessagePublishRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse$CursorRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse$CursorRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.MessageResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.MessageResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.OperationMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.OperationMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PartitionAssignment", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PartitionAssignment$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentAck", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentAck$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PartitionCursor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PartitionCursor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PubSubMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PubSubMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PublishRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PublishRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PublishResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.PublishResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Reservation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Reservation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekRequest$NamedTarget", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionRequest$NamedTarget", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SequencedMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SequencedMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SubscribeRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SubscribeRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SubscribeResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.SubscribeResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Subscription", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Subscription$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Subscription$DeliveryConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Subscription$DeliveryConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Subscription$DeliveryConfig$DeliveryRequirement", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.TimeTarget", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.TimeTarget$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig$Capacity", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig$Capacity$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic$ReservationConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic$ReservationConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic$RetentionConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.Topic$RetentionConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.TopicPartitions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.TopicPartitions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.UpdateReservationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.UpdateReservationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.UpdateTopicRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.pubsublite.proto.UpdateTopicRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.FieldMask", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.FieldMask$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - } -] \ No newline at end of file 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 a935e9f7d..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 373322bd1..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 c8d6c9197..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 2e961a394..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 09c50710b..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 ffe707c6c..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 9b1f0f28d..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 b114e4449..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 44584818c..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 033899f44..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 6e257279b..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 73a733441..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 c05dd702f..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 d5836a2c3..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 df1bd2e08..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 8848b4749..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 ad1476de4..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 df34ca094..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 d10d1b5a4..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java +++ /dev/null @@ -1,1945 +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 java.lang.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 interface AsyncService { - - /** - *
-     * Creates a new topic.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReservationTopicsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service AdminService. - *
-   * 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, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return AdminServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service AdminService. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service AdminService. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service AdminService. - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>( - service, METHODID_CREATE_TOPIC))) - .addMethod( - getGetTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic>( - service, METHODID_GET_TOPIC))) - .addMethod( - getGetTopicPartitionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions>( - service, 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>( - service, METHODID_LIST_TOPICS))) - .addMethod( - getUpdateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>( - service, METHODID_UPDATE_TOPIC))) - .addMethod( - getDeleteTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_TOPIC))) - .addMethod( - getListTopicSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( - service, 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>( - service, METHODID_CREATE_SUBSCRIPTION))) - .addMethod( - getGetSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - service, METHODID_GET_SUBSCRIPTION))) - .addMethod( - getListSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( - service, METHODID_LIST_SUBSCRIPTIONS))) - .addMethod( - getUpdateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - service, METHODID_UPDATE_SUBSCRIPTION))) - .addMethod( - getDeleteSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SUBSCRIPTION))) - .addMethod( - getSeekSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation>( - service, METHODID_SEEK_SUBSCRIPTION))) - .addMethod( - getCreateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - service, METHODID_CREATE_RESERVATION))) - .addMethod( - getGetReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - service, METHODID_GET_RESERVATION))) - .addMethod( - getListReservationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse>( - service, METHODID_LIST_RESERVATIONS))) - .addMethod( - getUpdateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - service, METHODID_UPDATE_RESERVATION))) - .addMethod( - getDeleteReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_RESERVATION))) - .addMethod( - getListReservationTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( - service, METHODID_LIST_RESERVATION_TOPICS))) - .build(); - } - - 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 java.lang.String methodName; - - AdminServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (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 ce5f37c13..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java +++ /dev/null @@ -1,485 +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 java.lang.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 interface AsyncService { - - /** - *
-     * Establishes a stream with the server for managing committed cursors.
-     * 
- */ - default io.grpc.stub.StreamObserver streamingCommitCursor( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingCommitCursorMethod(), responseObserver); - } - - /** - *
-     * Updates the committed cursor.
-     * 
- */ - default 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.
-     * 
- */ - default void listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPartitionCursorsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service CursorService. - *
-   * 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, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return CursorServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service CursorService. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service CursorService. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service CursorService. - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, 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>( - service, METHODID_COMMIT_CURSOR))) - .addMethod( - getListPartitionCursorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( - service, METHODID_LIST_PARTITION_CURSORS))) - .build(); - } - - 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 java.lang.String methodName; - - CursorServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (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 7b36d6c03..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java +++ /dev/null @@ -1,523 +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 java.lang.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 interface AsyncService { - - /** - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeTimeCursorMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TopicStatsService. - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static abstract class TopicStatsServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return TopicStatsServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TopicStatsService. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TopicStatsService. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TopicStatsService. - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, 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>( - service, 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>( - service, METHODID_COMPUTE_TIME_CURSOR))) - .build(); - } - - 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 java.lang.String methodName; - - TopicStatsServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (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 c4d2dbe6d..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java +++ /dev/null @@ -1,554 +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\"\240\001" + - "\n\022CreateTopicRequest\022:\n\006parent\030\001 \001(\tB*\342A" + - "\001\002\372A#\n!locations.googleapis.com/Location" + - "\0226\n\005topic\030\002 \001(\0132!.google.cloud.pubsublit" + - "e.v1.TopicB\004\342A\001\002\022\026\n\010topic_id\030\003 \001(\tB\004\342A\001\002" + - "\"I\n\017GetTopicRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372" + - "A!\n\037pubsublite.googleapis.com/Topic\"S\n\031G" + - "etTopicPartitionsRequest\0226\n\004name\030\001 \001(\tB(" + - "\342A\001\002\372A!\n\037pubsublite.googleapis.com/Topic" + - "\"*\n\017TopicPartitions\022\027\n\017partition_count\030\001" + - " \001(\003\"v\n\021ListTopicsRequest\022:\n\006parent\030\001 \001(" + - "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" + - "ation\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!.google.cloud.pubsublite.v1.Topic\022\027\n" + - "\017next_page_token\030\002 \001(\t\"\203\001\n\022UpdateTopicRe" + - "quest\0226\n\005topic\030\001 \001(\0132!.google.cloud.pubs" + - "ublite.v1.TopicB\004\342A\001\002\0225\n\013update_mask\030\002 \001" + - "(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"L\n\022" + - "DeleteTopicRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A" + - "!\n\037pubsublite.googleapis.com/Topic\"~\n\035Li" + - "stTopicSubscriptionsRequest\0226\n\004name\030\001 \001(" + - "\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.com/To" + - "pic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + - "(\t\"P\n\036ListTopicSubscriptionsResponse\022\025\n\r" + - "subscriptions\030\001 \003(\t\022\027\n\017next_page_token\030\002" + - " \001(\t\"\322\001\n\031CreateSubscriptionRequest\022:\n\006pa" + - "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" + - "s.com/Location\022D\n\014subscription\030\002 \001(\0132(.g" + - "oogle.cloud.pubsublite.v1.SubscriptionB\004" + - "\342A\001\002\022\035\n\017subscription_id\030\003 \001(\tB\004\342A\001\002\022\024\n\014s" + - "kip_backlog\030\004 \001(\010\"W\n\026GetSubscriptionRequ" + - "est\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&pubsublite.g" + - "oogleapis.com/Subscription\"}\n\030ListSubscr" + - "iptionsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + - "!locations.googleapis.com/Location\022\021\n\tpa" + - "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"u\n\031Lis" + - "tSubscriptionsResponse\022?\n\rsubscriptions\030" + - "\001 \003(\0132(.google.cloud.pubsublite.v1.Subsc" + - "ription\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n\031Upd" + - "ateSubscriptionRequest\022D\n\014subscription\030\001" + - " \001(\0132(.google.cloud.pubsublite.v1.Subscr" + - "iptionB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goog" + - "le.protobuf.FieldMaskB\004\342A\001\002\"Z\n\031DeleteSub" + - "scriptionRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + - "&pubsublite.googleapis.com/Subscription\"" + - "\273\002\n\027SeekSubscriptionRequest\022=\n\004name\030\001 \001(" + - "\tB/\342A\001\002\372A(\n&pubsublite.googleapis.com/Su" + - "bscription\022W\n\014named_target\030\002 \001(\0162?.googl" + - "e.cloud.pubsublite.v1.SeekSubscriptionRe" + - "quest.NamedTargetH\000\022=\n\013time_target\030\003 \001(\013" + - "2&.google.cloud.pubsublite.v1.TimeTarget" + - "H\000\"?\n\013NamedTarget\022\034\n\030NAMED_TARGET_UNSPEC" + - "IFIED\020\000\022\010\n\004TAIL\020\001\022\010\n\004HEAD\020\002B\010\n\006target\"\032\n" + - "\030SeekSubscriptionResponse\"\220\001\n\021OperationM" + - "etadata\022/\n\013create_time\030\001 \001(\0132\032.google.pr" + - "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" + - "gle.protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014" + - "\n\004verb\030\004 \001(\t\"\270\001\n\030CreateReservationReques" + - "t\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.go" + - "ogleapis.com/Location\022B\n\013reservation\030\002 \001" + - "(\0132\'.google.cloud.pubsublite.v1.Reservat" + - "ionB\004\342A\001\002\022\034\n\016reservation_id\030\003 \001(\tB\004\342A\001\002\"" + - "U\n\025GetReservationRequest\022<\n\004name\030\001 \001(\tB." + - "\342A\001\002\372A\'\n%pubsublite.googleapis.com/Reser" + - "vation\"|\n\027ListReservationsRequest\022:\n\006par" + - "ent\030\001 \001(\tB*\342A\001\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\"r\n\030ListReservationsResponse" + - "\022=\n\014reservations\030\001 \003(\0132\'.google.cloud.pu" + - "bsublite.v1.Reservation\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\"\225\001\n\030UpdateReservationRequest\022B\n" + - "\013reservation\030\001 \001(\0132\'.google.cloud.pubsub" + - "lite.v1.ReservationB\004\342A\001\002\0225\n\013update_mask" + - "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002" + - "\"X\n\030DeleteReservationRequest\022<\n\004name\030\001 \001" + - "(\tB.\342A\001\002\372A\'\n%pubsublite.googleapis.com/R" + - "eservation\"\203\001\n\034ListReservationTopicsRequ" + - "est\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%pubsublite.g" + - "oogleapis.com/Reservation\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035ListReservat" + - "ionTopicsResponse\022\016\n\006topics\030\001 \003(\t\022\027\n\017nex" + - "t_page_token\030\002 \001(\t2\257\036\n\014AdminService\022\271\001\n\013" + - "CreateTopic\022..google.cloud.pubsublite.v1" + - ".CreateTopicRequest\032!.google.cloud.pubsu" + - "blite.v1.Topic\"W\332A\025parent,topic,topic_id" + - "\202\323\344\223\0029\"0/v1/admin/{parent=projects/*/loc" + - "ations/*}/topics:\005topic\022\233\001\n\010GetTopic\022+.g" + - "oogle.cloud.pubsublite.v1.GetTopicReques" + - "t\032!.google.cloud.pubsublite.v1.Topic\"?\332A" + - "\004name\202\323\344\223\0022\0220/v1/admin/{name=projects/*/" + - "locations/*/topics/*}\022\304\001\n\022GetTopicPartit" + - "ions\0225.google.cloud.pubsublite.v1.GetTop" + - "icPartitionsRequest\032+.google.cloud.pubsu" + - "blite.v1.TopicPartitions\"J\332A\004name\202\323\344\223\002=\022" + - ";/v1/admin/{name=projects/*/locations/*/" + - "topics/*}/partitions\022\256\001\n\nListTopics\022-.go" + - "ogle.cloud.pubsublite.v1.ListTopicsReque" + - "st\032..google.cloud.pubsublite.v1.ListTopi" + - "csResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/admin/{" + - "parent=projects/*/locations/*}/topics\022\273\001" + - "\n\013UpdateTopic\022..google.cloud.pubsublite." + - "v1.UpdateTopicRequest\032!.google.cloud.pub" + - "sublite.v1.Topic\"Y\332A\021topic,update_mask\202\323" + - "\344\223\002?26/v1/admin/{topic.name=projects/*/l" + - "ocations/*/topics/*}:\005topic\022\226\001\n\013DeleteTo" + - "pic\022..google.cloud.pubsublite.v1.DeleteT" + - "opicRequest\032\026.google.protobuf.Empty\"?\332A\004" + - "name\202\323\344\223\0022*0/v1/admin/{name=projects/*/l" + - "ocations/*/topics/*}\022\336\001\n\026ListTopicSubscr" + - "iptions\0229.google.cloud.pubsublite.v1.Lis" + - "tTopicSubscriptionsRequest\032:.google.clou" + - "d.pubsublite.v1.ListTopicSubscriptionsRe" + - "sponse\"M\332A\004name\202\323\344\223\002@\022>/v1/admin/{name=p" + - "rojects/*/locations/*/topics/*}/subscrip" + - "tions\022\352\001\n\022CreateSubscription\0225.google.cl" + - "oud.pubsublite.v1.CreateSubscriptionRequ" + - "est\032(.google.cloud.pubsublite.v1.Subscri" + - "ption\"s\332A#parent,subscription,subscripti" + - "on_id\202\323\344\223\002G\"7/v1/admin/{parent=projects/" + - "*/locations/*}/subscriptions:\014subscripti" + - "on\022\267\001\n\017GetSubscription\0222.google.cloud.pu" + - "bsublite.v1.GetSubscriptionRequest\032(.goo" + - "gle.cloud.pubsublite.v1.Subscription\"F\332A" + - "\004name\202\323\344\223\0029\0227/v1/admin/{name=projects/*/" + - "locations/*/subscriptions/*}\022\312\001\n\021ListSub" + - "scriptions\0224.google.cloud.pubsublite.v1." + - "ListSubscriptionsRequest\0325.google.cloud." + - "pubsublite.v1.ListSubscriptionsResponse\"" + - "H\332A\006parent\202\323\344\223\0029\0227/v1/admin/{parent=proj" + - "ects/*/locations/*}/subscriptions\022\354\001\n\022Up" + - "dateSubscription\0225.google.cloud.pubsubli" + - "te.v1.UpdateSubscriptionRequest\032(.google" + - ".cloud.pubsublite.v1.Subscription\"u\332A\030su" + - "bscription,update_mask\202\323\344\223\002T2D/v1/admin/" + - "{subscription.name=projects/*/locations/" + - "*/subscriptions/*}:\014subscription\022\253\001\n\022Del" + - "eteSubscription\0225.google.cloud.pubsublit" + - "e.v1.DeleteSubscriptionRequest\032\026.google." + - "protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v1/admin" + - "/{name=projects/*/locations/*/subscripti" + - "ons/*}\022\337\001\n\020SeekSubscription\0223.google.clo" + - "ud.pubsublite.v1.SeekSubscriptionRequest" + - "\032\035.google.longrunning.Operation\"w\312A-\n\030Se" + - "ekSubscriptionResponse\022\021OperationMetadat" + - "a\202\323\344\223\002A\"cloud.google.com/go/pubsublite/apiv1/p" + - "ubsublitepb;pubsublitepb\252\002\032Google.Cloud." + - "PubSubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\" + - "V1\352\002\035Google::Cloud::PubSubLite::V1b\006prot" + - "o3" - }; - 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 0e19f92c4..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}\"\303\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " + - "\001(\0162..google.cloud.pubsublite.v1.ExportC" + - "onfig.State\022K\n\rcurrent_state\030\006 \001(\0162..goo" + - "gle.cloud.pubsublite.v1.ExportConfig.Sta" + - "teB\004\342A\001\003\022C\n\021dead_letter_topic\030\005 \001(\tB(\342A\001" + - "\001\372A!\n\037pubsublite.googleapis.com/Topic\022N\n" + - "\rpubsub_config\030\003 \001(\01325.google.cloud.pubs" + - "ublite.v1.ExportConfig.PubSubConfigH\000\032\035\n" + - "\014PubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n" + - "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUS" + - "ED\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND" + - "\020\004B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publi" + - "sh_time\030\001 \001(\0132\032.google.protobuf.Timestam" + - "pH\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobu" + - "f.TimestampH\000B\006\n\004timeB\317\001\n!com.google.clo" + - "ud.pubsublite.protoB\013CommonProtoP\001Z>clou" + - "d.google.com/go/pubsublite/apiv1/pubsubl" + - "itepb;pubsublitepb\370\001\001\252\002\032Google.Cloud.Pub" + - "SubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352" + - "\002\035Google::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 12ffcb8d9..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\"\205\001\n\033ListPartitionCursorsRequest\022" + - "?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\n&pubsublite.goo" + - "gleapis.com/Subscription\022\021\n\tpage_size\030\002 " + - "\001(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurs" + - "or\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\"." + - "google.cloud.pubsublite.v1.Cursor\"\177\n\034Lis" + - "tPartitionCursorsResponse\022F\n\021partition_c" + - "ursors\030\001 \003(\0132+.google.cloud.pubsublite.v" + - "1.PartitionCursor\022\027\n\017next_page_token\030\002 \001" + - "(\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommit" + - "Cursor\0228.google.cloud.pubsublite.v1.Stre" + - "amingCommitCursorRequest\0329.google.cloud." + - "pubsublite.v1.StreamingCommitCursorRespo" + - "nse\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.clou" + - "d.pubsublite.v1.CommitCursorRequest\0320.go" + - "ogle.cloud.pubsublite.v1.CommitCursorRes" + - "ponse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=" + - "projects/*/locations/*/subscriptions/*}:" + - "commitCursor:\001*\022\336\001\n\024ListPartitionCursors" + - "\0227.google.cloud.pubsublite.v1.ListPartit" + - "ionCursorsRequest\0328.google.cloud.pubsubl" + - "ite.v1.ListPartitionCursorsResponse\"S\332A\006" + - "parent\202\323\344\223\002D\022B/v1/cursor/{parent=project" + - "s/*/locations/*/subscriptions/*}/cursors" + - "\032M\312A\031pubsublite.googleapis.com\322A.https:/" + - "/www.googleapis.com/auth/cloud-platformB" + - "\317\001\n!com.google.cloud.pubsublite.protoB\013C" + - "ursorProtoP\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.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 67a56c46f..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\"\213\001\n\027InitialSubscribeRequest\022\024\n\014subscr" + - "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022G\n\020initi" + - "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" + - "ite.v1.SeekRequestB\004\342A\001\001\"N\n\030InitialSubsc" + - "ribeResponse\0222\n\006cursor\030\001 \001(\0132\".google.cl" + - "oud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest" + - "\022K\n\014named_target\030\001 \001(\01623.google.cloud.pu" + - "bsublite.v1.SeekRequest.NamedTargetH\000\0224\n" + - "\006cursor\030\002 \001(\0132\".google.cloud.pubsublite." + - "v1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARG" + - "ET_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_" + - "CURSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cu" + - "rsor\030\001 \001(\0132\".google.cloud.pubsublite.v1." + - "Cursor\"E\n\022FlowControlRequest\022\030\n\020allowed_" + - "messages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001" + - "\n\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.go" + - "ogle.cloud.pubsublite.v1.InitialSubscrib" + - "eRequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud." + - "pubsublite.v1.SeekRequestH\000\022F\n\014flow_cont" + - "rol\030\003 \001(\0132..google.cloud.pubsublite.v1.F" + - "lowControlRequestH\000B\t\n\007request\"Q\n\017Messag" + - "eResponse\022>\n\010messages\030\001 \003(\0132,.google.clo" + - "ud.pubsublite.v1.SequencedMessage\"\343\001\n\021Su" + - "bscribeResponse\022G\n\007initial\030\001 \001(\01324.googl" + - "e.cloud.pubsublite.v1.InitialSubscribeRe" + - "sponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pu" + - "bsublite.v1.SeekResponseH\000\022?\n\010messages\030\003" + - " \001(\0132+.google.cloud.pubsublite.v1.Messag" + - "eResponseH\000B\n\n\010response\"L\n!InitialPartit" + - "ionAssignmentRequest\022\024\n\014subscription\030\001 \001" + - "(\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssign" + - "ment\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAss" + - "ignmentAck\"\274\001\n\032PartitionAssignmentReques" + - "t\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsub" + - "lite.v1.InitialPartitionAssignmentReques" + - "tH\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsubli" + - "te.v1.PartitionAssignmentAckH\000B\t\n\007reques" + - "t2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.g" + - "oogle.cloud.pubsublite.v1.SubscribeReque" + - "st\032-.google.cloud.pubsublite.v1.Subscrib" + - "eResponse\"\000(\0010\001\032M\312A\031pubsublite.googleapi" + - "s.com\322A.https://www.googleapis.com/auth/" + - "cloud-platform2\357\001\n\032PartitionAssignmentSe" + - "rvice\022\201\001\n\020AssignPartitions\0226.google.clou" + - "d.pubsublite.v1.PartitionAssignmentReque" + - "st\032/.google.cloud.pubsublite.v1.Partitio" + - "nAssignment\"\000(\0010\001\032M\312A\031pubsublite.googlea" + - "pis.com\322A.https://www.googleapis.com/aut" + - "h/cloud-platformB\323\001\n!com.google.cloud.pu" + - "bsublite.protoB\017SubscriberProtoP\001Z>cloud" + - ".google.com/go/pubsublite/apiv1/pubsubli" + - "tepb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubS" + - "ubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002" + - "\035Google::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 d002be54c..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\"\340\001\n\032ComputeMessa" + - "geStatsRequest\0227\n\005topic\030\001 \001(\tB(\342A\001\002\372A!\n\037" + - "pubsublite.googleapis.com/Topic\022\027\n\tparti" + - "tion\030\002 \001(\003B\004\342A\001\002\0228\n\014start_cursor\030\003 \001(\0132\"" + - ".google.cloud.pubsublite.v1.Cursor\0226\n\nen" + - "d_cursor\030\004 \001(\0132\".google.cloud.pubsublite" + - ".v1.Cursor\"\275\001\n\033ComputeMessageStatsRespon" + - "se\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_byt" + - "es\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032" + - ".google.protobuf.Timestamp\0226\n\022minimum_ev" + - "ent_time\030\004 \001(\0132\032.google.protobuf.Timesta" + - "mp\"l\n\030ComputeHeadCursorRequest\0227\n\005topic\030" + - "\001 \001(\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.co" + - "m/Topic\022\027\n\tpartition\030\002 \001(\003B\004\342A\001\002\"T\n\031Comp" + - "uteHeadCursorResponse\0227\n\013head_cursor\030\001 \001" + - "(\0132\".google.cloud.pubsublite.v1.Cursor\"\252" + - "\001\n\030ComputeTimeCursorRequest\0227\n\005topic\030\001 \001" + - "(\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.com/T" + - "opic\022\027\n\tpartition\030\002 \001(\003B\004\342A\001\002\022<\n\006target\030" + - "\003 \001(\0132&.google.cloud.pubsublite.v1.TimeT" + - "argetB\004\342A\001\002\"O\n\031ComputeTimeCursorResponse" + - "\0222\n\006cursor\030\001 \001(\0132\".google.cloud.pubsubli" + - "te.v1.Cursor2\362\005\n\021TopicStatsService\022\335\001\n\023C" + - "omputeMessageStats\0226.google.cloud.pubsub" + - "lite.v1.ComputeMessageStatsRequest\0327.goo" + - "gle.cloud.pubsublite.v1.ComputeMessageSt" + - "atsResponse\"U\202\323\344\223\002O\"J/v1/topicStats/{top" + - "ic=projects/*/locations/*/topics/*}:comp" + - "uteMessageStats:\001*\022\325\001\n\021ComputeHeadCursor" + - "\0224.google.cloud.pubsublite.v1.ComputeHea" + - "dCursorRequest\0325.google.cloud.pubsublite" + - ".v1.ComputeHeadCursorResponse\"S\202\323\344\223\002M\"H/" + - "v1/topicStats/{topic=projects/*/location" + - "s/*/topics/*}:computeHeadCursor:\001*\022\325\001\n\021C" + - "omputeTimeCursor\0224.google.cloud.pubsubli" + - "te.v1.ComputeTimeCursorRequest\0325.google." + - "cloud.pubsublite.v1.ComputeTimeCursorRes" + - "ponse\"S\202\323\344\223\002M\"H/v1/topicStats/{topic=pro" + - "jects/*/locations/*/topics/*}:computeTim" + - "eCursor:\001*\032M\312A\031pubsublite.googleapis.com" + - "\322A.https://www.googleapis.com/auth/cloud" + - "-platformB\320\001\n!com.google.cloud.pubsublit" + - "e.protoB\017TopicStatsProtoP\001Z>cloud.google" + - ".com/go/pubsublite/apiv1/pubsublitepb;pu" + - "bsublitepb\252\002\032Google.Cloud.PubSubLite.V1\312" + - "\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035Google::C" + - "loud::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.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..46b74a6c0 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java @@ -0,0 +1,593 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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\"\240\001" + + "\n\022CreateTopicRequest\022:\n\006parent\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!locations.googleapis.com/Location" + + "\0226\n\005topic\030\002 \001(\0132!.google.cloud.pubsublit" + + "e.v1.TopicB\004\342A\001\002\022\026\n\010topic_id\030\003 \001(\tB\004\342A\001\002" + + "\"I\n\017GetTopicRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372" + + "A!\n\037pubsublite.googleapis.com/Topic\"S\n\031G" + + "etTopicPartitionsRequest\0226\n\004name\030\001 \001(\tB(" + + "\342A\001\002\372A!\n\037pubsublite.googleapis.com/Topic" + + "\"*\n\017TopicPartitions\022\027\n\017partition_count\030\001" + + " \001(\003\"v\n\021ListTopicsRequest\022:\n\006parent\030\001 \001(" + + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" + + "ation\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!.google.cloud.pubsublite.v1.Topic\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\203\001\n\022UpdateTopicRe" + + "quest\0226\n\005topic\030\001 \001(\0132!.google.cloud.pubs" + + "ublite.v1.TopicB\004\342A\001\002\0225\n\013update_mask\030\002 \001" + + "(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"L\n\022" + + "DeleteTopicRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A" + + "!\n\037pubsublite.googleapis.com/Topic\"~\n\035Li" + + "stTopicSubscriptionsRequest\0226\n\004name\030\001 \001(" + + "\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.com/To" + + "pic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"P\n\036ListTopicSubscriptionsResponse\022\025\n\r" + + "subscriptions\030\001 \003(\t\022\027\n\017next_page_token\030\002" + + " \001(\t\"\322\001\n\031CreateSubscriptionRequest\022:\n\006pa" + + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" + + "s.com/Location\022D\n\014subscription\030\002 \001(\0132(.g" + + "oogle.cloud.pubsublite.v1.SubscriptionB\004" + + "\342A\001\002\022\035\n\017subscription_id\030\003 \001(\tB\004\342A\001\002\022\024\n\014s" + + "kip_backlog\030\004 \001(\010\"W\n\026GetSubscriptionRequ" + + "est\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&pubsublite.g" + + "oogleapis.com/Subscription\"}\n\030ListSubscr" + + "iptionsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"u\n\031Lis" + + "tSubscriptionsResponse\022?\n\rsubscriptions\030" + + "\001 \003(\0132(.google.cloud.pubsublite.v1.Subsc" + + "ription\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n\031Upd" + + "ateSubscriptionRequest\022D\n\014subscription\030\001" + + " \001(\0132(.google.cloud.pubsublite.v1.Subscr" + + "iptionB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\004\342A\001\002\"Z\n\031DeleteSub" + + "scriptionRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&pubsublite.googleapis.com/Subscription\"" + + "\273\002\n\027SeekSubscriptionRequest\022=\n\004name\030\001 \001(" + + "\tB/\342A\001\002\372A(\n&pubsublite.googleapis.com/Su" + + "bscription\022W\n\014named_target\030\002 \001(\0162?.googl" + + "e.cloud.pubsublite.v1.SeekSubscriptionRe" + + "quest.NamedTargetH\000\022=\n\013time_target\030\003 \001(\013" + + "2&.google.cloud.pubsublite.v1.TimeTarget" + + "H\000\"?\n\013NamedTarget\022\034\n\030NAMED_TARGET_UNSPEC" + + "IFIED\020\000\022\010\n\004TAIL\020\001\022\010\n\004HEAD\020\002B\010\n\006target\"\032\n" + + "\030SeekSubscriptionResponse\"\220\001\n\021OperationM" + + "etadata\022/\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014" + + "\n\004verb\030\004 \001(\t\"\270\001\n\030CreateReservationReques" + + "t\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.go" + + "ogleapis.com/Location\022B\n\013reservation\030\002 \001" + + "(\0132\'.google.cloud.pubsublite.v1.Reservat" + + "ionB\004\342A\001\002\022\034\n\016reservation_id\030\003 \001(\tB\004\342A\001\002\"" + + "U\n\025GetReservationRequest\022<\n\004name\030\001 \001(\tB." + + "\342A\001\002\372A\'\n%pubsublite.googleapis.com/Reser" + + "vation\"|\n\027ListReservationsRequest\022:\n\006par" + + "ent\030\001 \001(\tB*\342A\001\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\"r\n\030ListReservationsResponse" + + "\022=\n\014reservations\030\001 \003(\0132\'.google.cloud.pu" + + "bsublite.v1.Reservation\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\225\001\n\030UpdateReservationRequest\022B\n" + + "\013reservation\030\001 \001(\0132\'.google.cloud.pubsub" + + "lite.v1.ReservationB\004\342A\001\002\0225\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002" + + "\"X\n\030DeleteReservationRequest\022<\n\004name\030\001 \001" + + "(\tB.\342A\001\002\372A\'\n%pubsublite.googleapis.com/R" + + "eservation\"\203\001\n\034ListReservationTopicsRequ" + + "est\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%pubsublite.g" + + "oogleapis.com/Reservation\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035ListReservat" + + "ionTopicsResponse\022\016\n\006topics\030\001 \003(\t\022\027\n\017nex" + + "t_page_token\030\002 \001(\t2\257\036\n\014AdminService\022\271\001\n\013" + + "CreateTopic\022..google.cloud.pubsublite.v1" + + ".CreateTopicRequest\032!.google.cloud.pubsu" + + "blite.v1.Topic\"W\332A\025parent,topic,topic_id" + + "\202\323\344\223\0029\"0/v1/admin/{parent=projects/*/loc" + + "ations/*}/topics:\005topic\022\233\001\n\010GetTopic\022+.g" + + "oogle.cloud.pubsublite.v1.GetTopicReques" + + "t\032!.google.cloud.pubsublite.v1.Topic\"?\332A" + + "\004name\202\323\344\223\0022\0220/v1/admin/{name=projects/*/" + + "locations/*/topics/*}\022\304\001\n\022GetTopicPartit" + + "ions\0225.google.cloud.pubsublite.v1.GetTop" + + "icPartitionsRequest\032+.google.cloud.pubsu" + + "blite.v1.TopicPartitions\"J\332A\004name\202\323\344\223\002=\022" + + ";/v1/admin/{name=projects/*/locations/*/" + + "topics/*}/partitions\022\256\001\n\nListTopics\022-.go" + + "ogle.cloud.pubsublite.v1.ListTopicsReque" + + "st\032..google.cloud.pubsublite.v1.ListTopi" + + "csResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/admin/{" + + "parent=projects/*/locations/*}/topics\022\273\001" + + "\n\013UpdateTopic\022..google.cloud.pubsublite." + + "v1.UpdateTopicRequest\032!.google.cloud.pub" + + "sublite.v1.Topic\"Y\332A\021topic,update_mask\202\323" + + "\344\223\002?26/v1/admin/{topic.name=projects/*/l" + + "ocations/*/topics/*}:\005topic\022\226\001\n\013DeleteTo" + + "pic\022..google.cloud.pubsublite.v1.DeleteT" + + "opicRequest\032\026.google.protobuf.Empty\"?\332A\004" + + "name\202\323\344\223\0022*0/v1/admin/{name=projects/*/l" + + "ocations/*/topics/*}\022\336\001\n\026ListTopicSubscr" + + "iptions\0229.google.cloud.pubsublite.v1.Lis" + + "tTopicSubscriptionsRequest\032:.google.clou" + + "d.pubsublite.v1.ListTopicSubscriptionsRe" + + "sponse\"M\332A\004name\202\323\344\223\002@\022>/v1/admin/{name=p" + + "rojects/*/locations/*/topics/*}/subscrip" + + "tions\022\352\001\n\022CreateSubscription\0225.google.cl" + + "oud.pubsublite.v1.CreateSubscriptionRequ" + + "est\032(.google.cloud.pubsublite.v1.Subscri" + + "ption\"s\332A#parent,subscription,subscripti" + + "on_id\202\323\344\223\002G\"7/v1/admin/{parent=projects/" + + "*/locations/*}/subscriptions:\014subscripti" + + "on\022\267\001\n\017GetSubscription\0222.google.cloud.pu" + + "bsublite.v1.GetSubscriptionRequest\032(.goo" + + "gle.cloud.pubsublite.v1.Subscription\"F\332A" + + "\004name\202\323\344\223\0029\0227/v1/admin/{name=projects/*/" + + "locations/*/subscriptions/*}\022\312\001\n\021ListSub" + + "scriptions\0224.google.cloud.pubsublite.v1." + + "ListSubscriptionsRequest\0325.google.cloud." + + "pubsublite.v1.ListSubscriptionsResponse\"" + + "H\332A\006parent\202\323\344\223\0029\0227/v1/admin/{parent=proj" + + "ects/*/locations/*}/subscriptions\022\354\001\n\022Up" + + "dateSubscription\0225.google.cloud.pubsubli" + + "te.v1.UpdateSubscriptionRequest\032(.google" + + ".cloud.pubsublite.v1.Subscription\"u\332A\030su" + + "bscription,update_mask\202\323\344\223\002T2D/v1/admin/" + + "{subscription.name=projects/*/locations/" + + "*/subscriptions/*}:\014subscription\022\253\001\n\022Del" + + "eteSubscription\0225.google.cloud.pubsublit" + + "e.v1.DeleteSubscriptionRequest\032\026.google." + + "protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v1/admin" + + "/{name=projects/*/locations/*/subscripti" + + "ons/*}\022\337\001\n\020SeekSubscription\0223.google.clo" + + "ud.pubsublite.v1.SeekSubscriptionRequest" + + "\032\035.google.longrunning.Operation\"w\312A-\n\030Se" + + "ekSubscriptionResponse\022\021OperationMetadat" + + "a\202\323\344\223\002A\"cloud.google.com/go/pubsublite/apiv1/p" + + "ubsublitepb;pubsublitepb\252\002\032Google.Cloud." + + "PubSubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\" + + "V1\352\002\035Google::Cloud::PubSubLite::V1b\006prot" + + "o3" + }; + 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 cf52d121f..d642efa12 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,81 +1,109 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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. */ @@ -84,6 +112,7 @@ public com.google.protobuf.ByteString getValues(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -95,8 +124,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)); } @@ -112,8 +140,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(); @@ -126,15 +153,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; } @@ -156,131 +183,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(); @@ -290,9 +321,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 @@ -311,14 +342,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); @@ -334,38 +369,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; @@ -373,7 +409,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_; @@ -410,18 +447,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) { @@ -431,9 +470,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_); @@ -441,35 +483,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. */ @@ -477,62 +528,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() { @@ -541,9 +606,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); } @@ -553,12 +618,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(); } @@ -567,27 +632,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; @@ -602,6 +667,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..3af18449d 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 280d0994b..14cd6068b 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,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -60,29 +83,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 { @@ -93,12 +116,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 @@ -109,11 +135,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 @@ -121,18 +150,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.
    * 
@@ -141,10 +177,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; @@ -156,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -180,12 +218,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; @@ -195,21 +231,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; @@ -225,8 +259,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(); @@ -237,131 +270,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(); @@ -377,9 +415,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 @@ -398,8 +436,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; } @@ -413,9 +454,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(); } } @@ -423,38 +462,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; @@ -462,7 +502,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; @@ -500,29 +541,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) { @@ -532,22 +575,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; @@ -556,20 +602,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 { @@ -577,28 +624,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() { @@ -608,17 +662,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; @@ -626,14 +684,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 @@ -641,12 +702,15 @@ 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. */ @@ -658,12 +722,15 @@ public Builder setPartition(long value) { 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() { @@ -675,34 +742,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.
      * 
@@ -723,14 +803,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 { @@ -741,6 +822,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -749,9 +832,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; @@ -764,6 +847,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -781,6 +866,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -793,6 +880,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -803,11 +892,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.
      * 
@@ -815,21 +907,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); } @@ -839,12 +934,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(); } @@ -853,27 +948,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; @@ -888,6 +983,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..f849ae49c 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 0d954cfa5..51df58a09 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,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; @@ -54,8 +73,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); } @@ -73,12 +91,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; @@ -97,131 +116,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(); @@ -229,9 +253,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 @@ -250,7 +274,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; } @@ -259,38 +284,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; @@ -298,7 +324,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; @@ -325,12 +352,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) { @@ -340,9 +368,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); } @@ -352,12 +380,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(); } @@ -366,27 +394,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; @@ -401,6 +429,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..c9e2bc271 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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..6e50c3844 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java @@ -0,0 +1,333 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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}\"\303\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " + + "\001(\0162..google.cloud.pubsublite.v1.ExportC" + + "onfig.State\022K\n\rcurrent_state\030\006 \001(\0162..goo" + + "gle.cloud.pubsublite.v1.ExportConfig.Sta" + + "teB\004\342A\001\003\022C\n\021dead_letter_topic\030\005 \001(\tB(\342A\001" + + "\001\372A!\n\037pubsublite.googleapis.com/Topic\022N\n" + + "\rpubsub_config\030\003 \001(\01325.google.cloud.pubs" + + "ublite.v1.ExportConfig.PubSubConfigH\000\032\035\n" + + "\014PubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUS" + + "ED\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND" + + "\020\004B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publi" + + "sh_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "pH\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampH\000B\006\n\004timeB\317\001\n!com.google.clo" + + "ud.pubsublite.protoB\013CommonProtoP\001Z>clou" + + "d.google.com/go/pubsublite/apiv1/pubsubl" + + "itepb;pubsublitepb\370\001\001\252\002\032Google.Cloud.Pub" + + "SubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352" + + "\002\035Google::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 826846c78..4b9da1b86 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,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -60,29 +85,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 { @@ -93,11 +120,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 @@ -106,6 +136,7 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -138,8 +168,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; @@ -149,17 +178,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; } @@ -174,139 +202,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(); @@ -317,9 +349,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 @@ -338,8 +370,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; } @@ -358,38 +393,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; @@ -397,7 +433,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; @@ -432,22 +469,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) { @@ -457,22 +497,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; @@ -481,20 +526,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 { @@ -502,28 +550,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() { @@ -533,17 +592,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; @@ -551,13 +616,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 @@ -565,11 +633,14 @@ 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. */ @@ -581,11 +652,14 @@ public Builder setPartition(long value) { 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() { @@ -594,9 +668,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); } @@ -606,12 +680,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(); } @@ -620,27 +694,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; @@ -655,6 +729,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..e1e31e3a8 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 2b69c41e2..b1ca67929 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,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -57,18 +78,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.
    * 
@@ -77,10 +105,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; @@ -92,8 +123,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()); } @@ -107,8 +137,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; @@ -118,17 +147,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; @@ -151,131 +180,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(); @@ -289,9 +323,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 @@ -310,8 +344,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; } @@ -319,9 +356,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(); } } @@ -329,38 +364,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; @@ -368,7 +404,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()); } @@ -398,19 +435,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) { @@ -420,38 +457,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.
      * 
@@ -472,14 +523,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 { @@ -490,6 +542,8 @@ public Builder setHeadCursor( return this; } /** + * + * *
      * The head cursor.
      * 
@@ -498,9 +552,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; @@ -513,6 +567,8 @@ public Builder mergeHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The head cursor.
      * 
@@ -530,6 +586,8 @@ public Builder clearHeadCursor() { return this; } /** + * + * *
      * The head cursor.
      * 
@@ -542,6 +600,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getHeadCursorBuilder() { return getHeadCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The head cursor.
      * 
@@ -552,11 +612,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.
      * 
@@ -564,21 +627,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); } @@ -588,12 +654,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(); } @@ -602,27 +668,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; @@ -637,6 +703,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..5133cae7b 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 68% 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 eb4ad1f1b..e314cafc6 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,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -60,29 +85,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 { @@ -93,11 +120,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 @@ -108,11 +138,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 @@ -120,18 +153,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.
    * 
@@ -140,12 +180,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
@@ -153,6 +197,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 @@ -160,6 +205,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
@@ -167,13 +214,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
@@ -184,10 +236,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;
@@ -199,8 +254,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
     }
@@ -226,16 +280,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;
@@ -245,26 +296,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;
@@ -280,8 +328,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();
@@ -296,131 +343,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(); @@ -441,13 +493,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(); } @@ -462,13 +515,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_; @@ -477,14 +534,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(); } } @@ -492,38 +546,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; @@ -531,7 +586,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; @@ -572,36 +629,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) { @@ -611,22 +669,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; @@ -635,20 +698,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 { @@ -656,28 +722,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() { @@ -687,17 +764,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; @@ -705,13 +788,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 @@ -719,11 +805,14 @@ 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. */ @@ -735,11 +824,14 @@ public Builder setPartition(long value) { 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() { @@ -751,34 +843,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.
      * 
@@ -799,6 +904,8 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -817,6 +924,8 @@ public Builder setStartCursor( return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -825,9 +934,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; @@ -840,6 +949,8 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -857,6 +968,8 @@ public Builder clearStartCursor() { return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -869,6 +982,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder() return getStartCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -879,11 +994,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.
      * 
@@ -891,14 +1009,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_; @@ -906,8 +1027,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
@@ -915,12 +1041,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
@@ -928,16 +1057,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
@@ -960,6 +1094,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
@@ -968,8 +1104,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 {
@@ -980,6 +1115,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
@@ -990,9 +1127,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;
@@ -1005,6 +1142,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
@@ -1024,6 +1163,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
@@ -1038,6 +1179,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
@@ -1050,11 +1193,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
@@ -1064,21 +1210,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);
     }
 
@@ -1088,12 +1237,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();
   }
@@ -1102,27 +1252,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;
@@ -1137,6 +1287,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..1f23dadd1 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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 8944658d7..4a1ee55f4 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,55 +1,76 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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(); } - 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 @@ -60,11 +81,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 @@ -75,6 +99,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
@@ -82,6 +108,7 @@ public long getMessageBytes() {
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; + * * @return Whether the minimumPublishTime field is set. */ @java.lang.Override @@ -89,6 +116,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
@@ -96,13 +125,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
@@ -113,12 +147,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
@@ -126,6 +164,7 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; + * * @return Whether the minimumEventTime field is set. */ @java.lang.Override @@ -133,6 +172,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
@@ -140,13 +181,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
@@ -157,10 +203,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;
@@ -172,8 +221,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_);
     }
@@ -196,20 +244,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;
@@ -219,26 +263,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;
@@ -252,11 +293,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();
@@ -271,131 +310,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(); @@ -416,13 +460,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(); } @@ -437,13 +482,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_; @@ -452,14 +501,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(); } } @@ -467,38 +516,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; @@ -506,7 +556,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()); } @@ -545,36 +597,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) { @@ -584,15 +639,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 @@ -600,11 +659,14 @@ public long getMessageCount() { return messageCount_; } /** + * + * *
      * The count of messages.
      * 
* * int64 message_count = 1; + * * @param value The messageCount to set. * @return This builder for chaining. */ @@ -616,11 +678,14 @@ public Builder setMessageCount(long value) { return this; } /** + * + * *
      * The count of messages.
      * 
* * int64 message_count = 1; + * * @return This builder for chaining. */ public Builder clearMessageCount() { @@ -630,13 +695,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 @@ -644,11 +712,14 @@ 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. */ @@ -660,11 +731,14 @@ public Builder setMessageBytes(long value) { return this; } /** + * + * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; + * * @return This builder for chaining. */ public Builder clearMessageBytes() { @@ -676,8 +750,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
@@ -685,12 +764,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
@@ -698,16 +780,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
@@ -730,6 +817,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
@@ -738,8 +827,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 {
@@ -750,6 +838,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
@@ -760,9 +850,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;
@@ -775,6 +865,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
@@ -794,6 +886,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
@@ -808,6 +902,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
@@ -820,11 +916,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
@@ -834,14 +933,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_;
@@ -849,8 +951,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
@@ -858,12 +965,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
@@ -871,16 +981,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
@@ -903,6 +1018,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
@@ -911,8 +1028,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 {
@@ -923,6 +1039,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
@@ -933,9 +1051,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;
@@ -948,6 +1066,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
@@ -967,6 +1087,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
@@ -981,6 +1103,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
@@ -993,11 +1117,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
@@ -1007,21 +1134,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);
     }
 
@@ -1031,12 +1161,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();
   }
@@ -1045,27 +1176,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;
@@ -1080,6 +1211,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..4b6013f3d 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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 5c1c49bf4..77de66dfe 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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,48 +28,56 @@
  *
  * 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();
   }
 
-  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 @@ -61,29 +86,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 { @@ -94,11 +121,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 @@ -109,12 +139,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 @@ -122,32 +157,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; @@ -159,8 +208,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_); } @@ -183,12 +231,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; @@ -198,21 +244,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; @@ -228,8 +272,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(); @@ -240,98 +283,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.
@@ -339,33 +388,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();
@@ -381,9 +429,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
@@ -402,8 +450,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;
     }
@@ -417,9 +468,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();
       }
     }
 
@@ -427,38 +476,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;
@@ -466,7 +516,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;
@@ -504,29 +555,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) {
@@ -536,22 +589,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; @@ -560,20 +618,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 { @@ -581,28 +642,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() { @@ -612,17 +684,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; @@ -630,13 +708,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 @@ -644,11 +725,14 @@ 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. */ @@ -660,11 +744,14 @@ public Builder setPartition(long value) { 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() { @@ -676,42 +763,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) { @@ -727,15 +833,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 { @@ -746,18 +855,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; @@ -770,12 +883,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); @@ -788,12 +905,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; @@ -801,45 +922,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); } @@ -849,12 +982,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(); } @@ -863,27 +996,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; @@ -898,6 +1031,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..9bc635b41 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 f55a916d0..aca697a66 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,41 +28,44 @@
  *
  * 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();
   }
 
-  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,
@@ -53,6 +73,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -60,6 +81,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,
@@ -67,13 +90,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,
@@ -84,10 +112,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;
@@ -99,8 +130,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());
     }
@@ -114,8 +144,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;
@@ -125,17 +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.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;
@@ -158,98 +187,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.
@@ -257,33 +292,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();
@@ -297,9 +331,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
@@ -318,8 +352,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;
     }
@@ -327,9 +364,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();
       }
     }
 
@@ -337,38 +372,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;
@@ -376,7 +412,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());
       }
@@ -406,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) {
@@ -428,12 +465,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,
@@ -441,12 +484,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,
@@ -454,16 +500,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,
@@ -486,6 +537,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,
@@ -494,8 +547,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 {
@@ -506,6 +558,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,
@@ -516,9 +570,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;
@@ -531,6 +585,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,
@@ -550,6 +606,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,
@@ -564,6 +622,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,
@@ -576,11 +636,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,
@@ -590,21 +653,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);
     }
 
@@ -614,12 +680,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();
   }
@@ -628,27 +694,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;
@@ -663,6 +729,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..4de299670 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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 f331b0a07..a81285c06 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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,34 +44,41 @@ private CreateReservationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateReservationRequest(); } - 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 @@ -62,30 +87,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 { @@ -96,12 +123,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 @@ -109,35 +141,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.
@@ -146,6 +194,7 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The reservationId. */ @java.lang.Override @@ -154,14 +203,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.
@@ -170,16 +220,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 { @@ -188,6 +237,7 @@ public java.lang.String getReservationId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,8 +249,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_); } @@ -223,8 +272,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_); @@ -237,22 +285,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; } @@ -278,131 +324,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(); @@ -418,9 +469,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 @@ -439,8 +490,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; } @@ -451,9 +505,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_; @@ -464,38 +517,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; @@ -503,7 +557,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; @@ -543,29 +598,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) { @@ -575,23 +632,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; @@ -600,21 +662,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 { @@ -622,30 +687,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() { @@ -655,18 +731,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; @@ -676,42 +758,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) { @@ -727,12 +828,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) { @@ -746,18 +851,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; @@ -770,12 +879,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); @@ -788,12 +901,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; @@ -801,38 +918,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_; @@ -840,6 +969,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 +979,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 +994,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.
@@ -871,15 +1004,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 { @@ -887,6 +1019,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.
@@ -895,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.
@@ -915,6 +1053,7 @@ public Builder setReservationId(
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearReservationId() { @@ -924,6 +1063,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.
@@ -932,21 +1073,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); } @@ -956,12 +1099,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(); } @@ -970,27 +1113,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; @@ -1005,6 +1148,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 e4933cbbe..fa8c10090 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -68,10 +109,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.
@@ -80,8 +124,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 3cb980efb..b57906888 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,34 +44,41 @@ private CreateSubscriptionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSubscriptionRequest(); } - 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 @@ -62,30 +87,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 { @@ -96,12 +123,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 @@ -109,35 +141,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.
@@ -146,6 +194,7 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subscriptionId. */ @java.lang.Override @@ -154,14 +203,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.
@@ -170,16 +220,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 { @@ -190,6 +239,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
@@ -197,6 +248,7 @@ public java.lang.String getSubscriptionId() {
    * 
* * bool skip_backlog = 4; + * * @return The skipBacklog. */ @java.lang.Override @@ -205,6 +257,7 @@ public boolean getSkipBacklog() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +269,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_); } @@ -243,15 +295,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; @@ -261,24 +311,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; } @@ -299,139 +346,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(); @@ -448,9 +499,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 @@ -469,8 +520,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; } @@ -481,9 +535,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_; @@ -497,38 +550,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; @@ -536,7 +590,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; @@ -579,34 +634,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) { @@ -616,23 +674,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; @@ -641,21 +704,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 { @@ -663,30 +729,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() { @@ -696,18 +773,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; @@ -717,42 +800,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) { @@ -768,12 +870,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) { @@ -787,18 +893,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; @@ -811,12 +922,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); @@ -829,12 +944,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; @@ -842,38 +961,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_; @@ -881,6 +1012,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 +1022,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 +1037,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.
@@ -912,15 +1047,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 { @@ -928,6 +1062,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.
@@ -936,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.
@@ -956,6 +1096,7 @@ public Builder setSubscriptionId(
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSubscriptionId() { @@ -965,6 +1106,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.
@@ -973,12 +1116,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; @@ -986,8 +1131,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
@@ -995,6 +1142,7 @@ public Builder setSubscriptionIdBytes(
      * 
* * bool skip_backlog = 4; + * * @return The skipBacklog. */ @java.lang.Override @@ -1002,6 +1150,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
@@ -1009,6 +1159,7 @@ public boolean getSkipBacklog() {
      * 
* * bool skip_backlog = 4; + * * @param value The skipBacklog to set. * @return This builder for chaining. */ @@ -1020,6 +1171,8 @@ public Builder setSkipBacklog(boolean value) { return this; } /** + * + * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1027,6 +1180,7 @@ public Builder setSkipBacklog(boolean value) {
      * 
* * bool skip_backlog = 4; + * * @return This builder for chaining. */ public Builder clearSkipBacklog() { @@ -1035,9 +1189,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); } @@ -1047,12 +1201,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(); } @@ -1061,27 +1215,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; @@ -1096,6 +1250,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 62% 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 4a6fffb86..8ff0b553f 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -68,10 +109,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.
@@ -80,12 +124,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
@@ -93,6 +139,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 8945f22b4..1409d6695 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,34 +44,41 @@ private CreateTopicRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateTopicRequest(); } - 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 @@ -62,30 +87,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 { @@ -96,12 +123,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 @@ -109,12 +140,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 @@ -122,12 +157,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() { @@ -135,9 +173,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.
@@ -146,6 +187,7 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() {
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topicId. */ @java.lang.Override @@ -154,14 +196,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.
@@ -170,16 +213,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 { @@ -188,6 +230,7 @@ public java.lang.String getTopicId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -223,8 +265,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_); @@ -237,22 +278,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; } @@ -278,131 +317,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(); @@ -418,9 +461,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 @@ -439,8 +482,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; } @@ -451,9 +497,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_; @@ -464,38 +508,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; @@ -503,7 +548,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; @@ -543,29 +589,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) { @@ -575,23 +623,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; @@ -600,21 +653,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 { @@ -622,30 +678,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() { @@ -655,18 +722,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; @@ -676,42 +749,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) { @@ -727,15 +816,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 { @@ -746,18 +837,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; @@ -770,12 +864,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); @@ -788,12 +885,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; @@ -801,38 +901,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_; @@ -840,6 +950,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 +960,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 +975,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.
@@ -871,15 +985,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 { @@ -887,6 +1000,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.
@@ -895,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.
@@ -915,6 +1034,7 @@ public Builder setTopicId(
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTopicId() { @@ -924,6 +1044,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.
@@ -932,21 +1054,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); } @@ -956,12 +1080,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(); } @@ -970,27 +1094,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; @@ -1005,6 +1129,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 2187ba224..82ef0aee5 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -68,10 +106,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.
@@ -80,8 +121,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 e0bc9ff1c..09ef9cca2 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,56 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -59,6 +80,7 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -70,8 +92,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_); } @@ -85,8 +106,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; @@ -96,15 +116,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; } @@ -117,139 +136,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(); @@ -259,9 +281,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 @@ -280,8 +302,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; } @@ -297,38 +322,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; @@ -366,17 +392,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) { @@ -386,16 +414,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 @@ -403,12 +435,15 @@ 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. */ @@ -420,12 +455,15 @@ public Builder setOffset(long value) { 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() { @@ -434,9 +472,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); } @@ -446,12 +484,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(); } @@ -460,27 +498,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; @@ -495,6 +533,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..9d9995b35 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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..53548fc58 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java @@ -0,0 +1,253 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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\"\205\001\n\033ListPartitionCursorsRequest\022" + + "?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\n&pubsublite.goo" + + "gleapis.com/Subscription\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurs" + + "or\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\"." + + "google.cloud.pubsublite.v1.Cursor\"\177\n\034Lis" + + "tPartitionCursorsResponse\022F\n\021partition_c" + + "ursors\030\001 \003(\0132+.google.cloud.pubsublite.v" + + "1.PartitionCursor\022\027\n\017next_page_token\030\002 \001" + + "(\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommit" + + "Cursor\0228.google.cloud.pubsublite.v1.Stre" + + "amingCommitCursorRequest\0329.google.cloud." + + "pubsublite.v1.StreamingCommitCursorRespo" + + "nse\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.clou" + + "d.pubsublite.v1.CommitCursorRequest\0320.go" + + "ogle.cloud.pubsublite.v1.CommitCursorRes" + + "ponse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=" + + "projects/*/locations/*/subscriptions/*}:" + + "commitCursor:\001*\022\336\001\n\024ListPartitionCursors" + + "\0227.google.cloud.pubsublite.v1.ListPartit" + + "ionCursorsRequest\0328.google.cloud.pubsubl" + + "ite.v1.ListPartitionCursorsResponse\"S\332A\006" + + "parent\202\323\344\223\002D\022B/v1/cursor/{parent=project" + + "s/*/locations/*/subscriptions/*}/cursors" + + "\032M\312A\031pubsublite.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\317\001\n!com.google.cloud.pubsublite.protoB\013C" + + "ursorProtoP\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.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 63% 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 f3b9fd665..6b7ab1f26 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,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -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.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; } @@ -159,131 +186,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(); @@ -293,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_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 @@ -314,8 +346,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; } @@ -331,38 +366,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; @@ -370,7 +406,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; @@ -402,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) { @@ -422,24 +461,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; @@ -448,22 +492,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 { @@ -471,32 +518,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() { @@ -506,28 +564,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); } @@ -537,12 +601,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(); } @@ -551,27 +615,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; @@ -586,6 +650,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..4bcba5c65 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 0549514cd..30d2b52fe 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,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -60,29 +85,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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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; } @@ -155,131 +182,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(); @@ -289,9 +321,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 @@ -310,8 +342,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; } @@ -327,38 +362,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; @@ -366,7 +402,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; @@ -398,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +457,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; @@ -442,20 +486,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 { @@ -463,28 +510,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() { @@ -494,26 +552,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); } @@ -523,12 +587,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(); } @@ -537,27 +601,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; @@ -572,6 +636,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..1aa5376ee --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 202fbf0d5..e50db7fcc 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,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -60,29 +85,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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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; } @@ -155,131 +182,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(); @@ -289,9 +320,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 @@ -310,8 +341,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; } @@ -327,38 +361,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; @@ -366,7 +401,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; @@ -398,17 +434,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) { @@ -418,22 +456,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; @@ -442,20 +485,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 { @@ -463,28 +509,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() { @@ -494,26 +551,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); } @@ -523,12 +586,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(); } @@ -537,27 +600,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; @@ -572,6 +635,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..40b0ea0bb --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 29cca91c8..bb55c36b6 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,34 +46,38 @@ private ExportConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExportConfig();
   }
 
-  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.
      * 
@@ -64,6 +86,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Messages are being exported.
      * 
@@ -72,6 +96,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * Exporting messages is suspended.
      * 
@@ -80,6 +106,8 @@ public enum State */ PAUSED(2), /** + * + * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -88,6 +116,8 @@ public enum State */ PERMISSION_DENIED(3), /** + * + * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -99,6 +129,8 @@ public enum State ; /** + * + * *
      * Default value. This value is unused.
      * 
@@ -107,6 +139,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Messages are being exported.
      * 
@@ -115,6 +149,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * Exporting messages is suspended.
      * 
@@ -123,6 +159,8 @@ public enum State */ public static final int PAUSED_VALUE = 2; /** + * + * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -131,6 +169,8 @@ public enum State */ public static final int PERMISSION_DENIED_VALUE = 3; /** + * + * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -139,7 +179,6 @@ public enum State */ public static final int NOT_FOUND_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -164,51 +203,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; @@ -225,11 +266,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}.
@@ -237,10 +281,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}.
@@ -248,55 +295,62 @@ 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(); } - 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}.
@@ -304,6 +358,7 @@ protected java.lang.Object newInstance(
      * 
* * string topic = 1; + * * @return The topic. */ @java.lang.Override @@ -312,14 +367,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}.
@@ -327,16 +383,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 { @@ -345,6 +400,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -356,8 +412,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_); } @@ -381,15 +436,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; } @@ -409,89 +464,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 @@ -501,39 +561,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(); @@ -543,13 +605,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(); } @@ -564,13 +627,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_; @@ -581,38 +648,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; @@ -620,7 +690,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; @@ -652,17 +724,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) { @@ -672,10 +746,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}.
@@ -683,13 +760,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; @@ -698,6 +775,8 @@ public java.lang.String getTopic() { } } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -705,15 +784,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 { @@ -721,6 +799,8 @@ public java.lang.String getTopic() { } } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -728,18 +808,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}.
@@ -747,6 +831,7 @@ public Builder setTopic(
        * 
* * string topic = 1; + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -756,6 +841,8 @@ public Builder clearTopic() { return this; } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -763,18 +850,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) { @@ -787,12 +877,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(); } @@ -801,27 +892,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; @@ -836,18 +928,21 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int destinationCase_ = 0; + @SuppressWarnings("serial") 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; } @@ -863,82 +958,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
@@ -951,7 +1077,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 @@ -960,14 +1089,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
@@ -980,17 +1110,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 { @@ -1000,12 +1131,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 @@ -1013,22 +1147,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.
@@ -1037,14 +1176,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;
@@ -1056,18 +1197,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);
@@ -1079,20 +1222,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;
@@ -1102,22 +1246,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:
@@ -1152,99 +1295,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.
@@ -1252,33 +1400,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();
@@ -1295,9 +1442,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
@@ -1316,8 +1463,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;
@@ -1339,8 +1489,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();
       }
     }
@@ -1349,38 +1498,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;
@@ -1401,13 +1551,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();
@@ -1435,34 +1587,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) {
@@ -1472,12 +1627,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() {
@@ -1491,24 +1646,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. */ @@ -1519,26 +1681,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. */ @@ -1552,12 +1723,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() { @@ -1569,24 +1743,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. */ @@ -1597,26 +1782,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. */ @@ -1630,12 +1828,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() { @@ -1647,6 +1850,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
@@ -1659,14 +1864,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; @@ -1675,6 +1882,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
@@ -1687,16 +1896,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 { @@ -1704,6 +1914,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 +1928,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
@@ -1741,7 +1959,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() { @@ -1751,6 +1972,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
@@ -1763,13 +1986,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; @@ -1778,14 +2005,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 @@ -1793,12 +2026,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 @@ -1816,6 +2052,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.
@@ -1823,7 +2061,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();
@@ -1837,6 +2076,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.
@@ -1856,6 +2097,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.
@@ -1863,12 +2106,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;
         }
@@ -1884,6 +2133,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.
@@ -1908,6 +2159,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.
@@ -1915,10 +2168,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.
@@ -1927,7 +2183,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 {
@@ -1938,6 +2195,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.
@@ -1946,14 +2205,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());
@@ -1963,9 +2228,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);
     }
 
@@ -1975,12 +2240,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();
   }
@@ -1989,27 +2254,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;
@@ -2024,6 +2289,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 171074251..fa504654a 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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
@@ -62,11 +96,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
@@ -79,33 +118,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 496de2f15..d0cd19398 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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,46 +28,50 @@
  *
  * 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();
   }
 
-  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 @@ -61,11 +82,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 @@ -74,6 +98,7 @@ public long getAllowedBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -85,8 +110,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_); } @@ -103,12 +127,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; @@ -118,17 +140,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; } @@ -141,109 +162,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.
@@ -251,33 +275,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();
@@ -288,9 +311,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
@@ -309,8 +332,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;
     }
@@ -329,38 +355,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;
@@ -368,7 +395,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());
       }
@@ -401,22 +429,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) {
@@ -426,15 +457,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 @@ -442,11 +477,14 @@ 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. */ @@ -458,11 +496,14 @@ public Builder setAllowedMessages(long value) { 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() { @@ -472,13 +513,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 @@ -486,11 +530,14 @@ 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. */ @@ -502,11 +549,14 @@ public Builder setAllowedBytes(long value) { 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() { @@ -515,9 +565,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); } @@ -527,12 +577,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(); } @@ -541,27 +591,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; @@ -576,6 +626,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..087ea15ae 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 63% 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 4078e4813..496119d23 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,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -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.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; } @@ -159,131 +186,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(); @@ -293,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_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 @@ -314,8 +346,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; } @@ -331,38 +366,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; @@ -370,7 +406,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; @@ -402,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) { @@ -422,24 +461,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; @@ -448,22 +492,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 { @@ -471,32 +518,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() { @@ -506,28 +564,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); } @@ -537,12 +601,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(); } @@ -551,27 +615,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; @@ -586,6 +650,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..c6269df63 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 62% 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 5dff3b1f8..ff7198af7 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,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -60,29 +85,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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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; } @@ -155,131 +182,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(); @@ -289,9 +321,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 @@ -310,8 +342,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; } @@ -327,38 +362,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; @@ -366,7 +402,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; @@ -398,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +457,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; @@ -442,20 +486,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 { @@ -463,28 +510,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() { @@ -494,26 +552,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); } @@ -523,12 +587,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(); } @@ -537,27 +601,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; @@ -572,6 +636,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..6b286a916 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 83a157ea4..3ddc52277 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,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -60,29 +85,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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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; } @@ -155,131 +182,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(); @@ -289,9 +321,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 @@ -310,8 +342,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; } @@ -327,38 +362,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; @@ -366,7 +402,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; @@ -398,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +457,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; @@ -442,20 +486,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 { @@ -463,28 +510,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() { @@ -494,26 +552,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); } @@ -523,12 +587,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(); } @@ -537,27 +601,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; @@ -572,6 +636,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..a5c436d04 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 8fb3fabe4..74451f571 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,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -60,29 +85,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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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; } @@ -155,131 +182,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(); @@ -289,9 +320,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 @@ -310,8 +341,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; } @@ -327,38 +361,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; @@ -366,7 +401,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; @@ -398,17 +434,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) { @@ -418,22 +456,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; @@ -442,20 +485,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 { @@ -463,28 +509,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() { @@ -494,26 +551,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); } @@ -523,12 +586,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(); } @@ -537,27 +600,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; @@ -572,6 +635,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..e49058526 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 71ca962c4..23a80f7fa 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,48 +29,54 @@
  *
  * 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();
   }
 
-  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 @@ -62,29 +85,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 { @@ -95,12 +118,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 @@ -109,6 +135,7 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +147,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_); } @@ -141,8 +167,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; @@ -152,17 +177,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; } @@ -177,106 +201,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
@@ -285,33 +314,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();
@@ -322,13 +350,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();
     }
 
@@ -343,13 +372,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_;
@@ -363,38 +396,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;
@@ -402,7 +436,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;
@@ -437,22 +473,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) {
@@ -462,22 +501,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; @@ -486,20 +528,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 { @@ -507,28 +550,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() { @@ -538,17 +588,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; @@ -556,14 +610,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 @@ -571,12 +628,15 @@ 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. */ @@ -588,12 +648,15 @@ public Builder setPartition(long value) { 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() { @@ -602,9 +665,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); } @@ -614,12 +677,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(); } @@ -628,27 +692,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; @@ -663,6 +727,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..b8a03bf80 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 bf34ff607..34bc8d402 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,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; @@ -54,8 +73,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); } @@ -73,12 +91,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; @@ -97,131 +116,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(); @@ -229,13 +253,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(); } @@ -250,7 +275,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; } @@ -259,38 +285,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; @@ -298,7 +325,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; @@ -325,12 +354,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +370,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -352,12 +382,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(); } @@ -366,27 +397,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; @@ -401,6 +432,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..a8d41fdc7 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 bcf07fdb5..d771cd297 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,28 +46,32 @@ private InitialPartitionAssignmentRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InitialPartitionAssignmentRequest();
   }
 
-  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
@@ -56,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string subscription = 1; + * * @return The subscription. */ @java.lang.Override @@ -64,14 +88,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
@@ -79,16 +104,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 { @@ -99,6 +123,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
@@ -111,6 +137,7 @@ public java.lang.String getSubscription() {
    * 
* * bytes client_id = 2; + * * @return The clientId. */ @java.lang.Override @@ -119,6 +146,7 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,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(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -151,8 +178,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; @@ -162,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.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; } @@ -194,98 +219,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.
@@ -293,33 +325,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();
@@ -330,14 +362,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
@@ -351,13 +385,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_;
@@ -371,46 +409,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;
@@ -445,22 +488,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) {
@@ -470,10 +516,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
@@ -481,13 +530,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; @@ -496,6 +545,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -503,15 +554,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 { @@ -519,6 +569,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -526,18 +578,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
@@ -545,6 +601,7 @@ public Builder setSubscription(
      * 
* * string subscription = 1; + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -554,6 +611,8 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -561,12 +620,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; @@ -576,6 +637,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
@@ -588,6 +651,7 @@ public Builder setSubscriptionBytes(
      * 
* * bytes client_id = 2; + * * @return The clientId. */ @java.lang.Override @@ -595,6 +659,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 +673,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
@@ -630,6 +701,7 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 2; + * * @return This builder for chaining. */ public Builder clearClientId() { @@ -638,9 +710,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); } @@ -650,41 +722,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; @@ -696,9 +770,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 f294df05c..841b49f90 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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
@@ -44,6 +67,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 06c0d0aa0..233a71d71 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,33 +44,38 @@ private InitialPublishRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InitialPublishRequest(); } - 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 @@ -61,29 +84,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 { @@ -94,6 +117,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,
@@ -101,6 +126,7 @@ public java.lang.String getTopic() {
    * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -111,6 +137,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.
@@ -122,6 +150,7 @@ public long getPartition() {
    * 
* * bytes client_id = 3; + * * @return The clientId. */ @java.lang.Override @@ -130,6 +159,7 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +171,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_); } @@ -165,12 +194,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; @@ -180,19 +207,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; } @@ -207,8 +232,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(); @@ -217,131 +241,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(); @@ -353,9 +382,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 @@ -374,8 +403,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; } @@ -397,38 +429,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; @@ -436,7 +469,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; @@ -474,27 +508,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) { @@ -504,22 +542,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; @@ -528,20 +569,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 { @@ -549,28 +591,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() { @@ -580,17 +629,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; @@ -598,8 +651,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,
@@ -607,6 +662,7 @@ public Builder setTopicBytes(
      * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -614,6 +670,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,
@@ -621,6 +679,7 @@ public long getPartition() {
      * 
* * int64 partition = 2; + * * @param value The partition to set. * @return This builder for chaining. */ @@ -632,6 +691,8 @@ public Builder setPartition(long value) { 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,
@@ -639,6 +700,7 @@ public Builder setPartition(long value) {
      * 
* * int64 partition = 2; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -650,6 +712,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.
@@ -661,6 +725,7 @@ public Builder clearPartition() {
      * 
* * bytes client_id = 3; + * * @return The clientId. */ @java.lang.Override @@ -668,6 +733,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 +746,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.
@@ -701,6 +773,7 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 3; + * * @return This builder for chaining. */ public Builder clearClientId() { @@ -709,9 +782,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); } @@ -721,12 +794,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(); } @@ -735,27 +808,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; @@ -770,6 +843,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 03fa3e09c..61970cd52 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -51,6 +77,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 d3c9a348a..b01478402 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,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; @@ -54,8 +73,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); } @@ -73,12 +91,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; @@ -97,131 +116,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(); @@ -229,9 +253,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 @@ -250,7 +274,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; } @@ -259,38 +284,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; @@ -298,7 +324,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; @@ -325,12 +352,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) { @@ -340,9 +368,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); } @@ -352,12 +380,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(); } @@ -366,27 +394,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; @@ -401,6 +429,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..a84ab7323 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 66% 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 c0a87ce68..e95e5a840 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,48 +28,54 @@
  *
  * 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();
   }
 
-  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 @@ -61,29 +84,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 { @@ -94,12 +117,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 @@ -110,13 +136,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 @@ -124,34 +155,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; @@ -163,8 +208,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_); } @@ -187,12 +231,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; @@ -202,21 +244,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; @@ -232,8 +272,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(); @@ -244,98 +283,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.
@@ -343,33 +388,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();
@@ -385,9 +429,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
@@ -406,8 +450,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;
     }
@@ -421,9 +468,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();
       }
     }
 
@@ -431,38 +477,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;
@@ -470,7 +517,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;
@@ -508,29 +556,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) {
@@ -540,22 +590,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; @@ -564,20 +617,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 { @@ -585,28 +639,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() { @@ -616,17 +677,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; @@ -634,14 +699,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 @@ -649,12 +717,15 @@ 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. */ @@ -666,12 +737,15 @@ public Builder setPartition(long value) { 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() { @@ -683,45 +757,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) { @@ -737,13 +830,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) { @@ -757,19 +854,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; @@ -782,13 +884,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); @@ -801,13 +907,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; @@ -815,47 +925,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); } @@ -865,12 +987,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(); } @@ -879,27 +1001,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; @@ -914,6 +1036,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..638e4b1ee 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 94d4239c9..3a3fb8ed9 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,56 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -58,19 +79,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.
@@ -80,10 +108,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;
@@ -95,8 +126,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());
     }
@@ -110,8 +140,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;
@@ -121,17 +150,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;
@@ -154,131 +183,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(); @@ -292,9 +326,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 @@ -313,8 +347,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; } @@ -322,9 +359,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(); } } @@ -332,38 +367,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; @@ -371,7 +407,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()); } @@ -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,40 +460,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.
@@ -478,6 +529,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.
@@ -485,8 +538,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 {
@@ -497,6 +549,8 @@ public Builder setCursor(
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -506,9 +560,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;
@@ -521,6 +575,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.
@@ -539,6 +595,8 @@ public Builder clearCursor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -552,6 +610,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.
@@ -563,11 +623,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.
@@ -576,21 +639,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);
     }
 
@@ -600,12 +666,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();
   }
@@ -614,27 +680,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;
@@ -649,6 +715,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..a181b0609 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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 b8811f1e1..9d5387e97 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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,35 +44,42 @@ private ListPartitionCursorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPartitionCursorsRequest(); } - 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 @@ -63,31 +88,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 { @@ -98,6 +125,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.
@@ -105,6 +134,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,9 +143,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.
@@ -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 `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -150,16 +185,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 { @@ -168,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +214,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_); } @@ -203,8 +237,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_); @@ -217,19 +250,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; } @@ -253,131 +284,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(); @@ -389,13 +425,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(); } @@ -410,13 +447,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_; @@ -433,38 +474,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; @@ -472,7 +514,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; @@ -512,27 +556,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) { @@ -542,24 +590,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; @@ -568,22 +621,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 { @@ -591,32 +647,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() { @@ -626,19 +693,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; @@ -646,8 +719,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.
@@ -655,6 +730,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -662,6 +738,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -669,6 +747,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -680,6 +759,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -687,6 +768,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -698,6 +780,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 +791,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 +806,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -731,15 +817,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 { @@ -747,6 +832,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -756,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.
@@ -777,6 +868,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -786,6 +878,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -795,21 +889,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); } @@ -819,12 +915,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(); } @@ -833,27 +930,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; @@ -868,6 +965,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 321654945..28dfbf2b2 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -53,10 +83,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.
@@ -66,8 +99,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 b2cc32ab5..d592503ae 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,28 +44,32 @@ private ListPartitionCursorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPartitionCursorsResponse(); } - 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.
    * 
@@ -55,10 +77,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.
    * 
@@ -66,11 +91,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.
    * 
@@ -82,6 +109,8 @@ public int getPartitionCursorsCount() { return partitionCursors_.size(); } /** + * + * *
    * The partition cursors from this request.
    * 
@@ -93,6 +122,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int return partitionCursors_.get(index); } /** + * + * *
    * The partition cursors from this request.
    * 
@@ -106,15 +137,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 @@ -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, 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 { @@ -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 < partitionCursors_.size(); i++) { output.writeMessage(1, partitionCursors_.get(i)); } @@ -184,8 +219,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_); @@ -198,17 +232,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; } @@ -232,131 +265,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(); @@ -373,13 +411,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(); } @@ -394,14 +433,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_); @@ -413,7 +456,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_; @@ -424,38 +468,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; @@ -463,7 +508,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()) { @@ -482,9 +529,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_); } @@ -521,30 +569,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) { @@ -554,28 +605,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 { @@ -583,6 +644,8 @@ public java.util.List getPart } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -597,6 +660,8 @@ public int getPartitionCursorsCount() { } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -611,6 +676,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -632,6 +699,8 @@ public Builder setPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -650,6 +719,8 @@ public Builder setPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -670,6 +741,8 @@ public Builder addPartitionCursors(com.google.cloud.pubsublite.proto.PartitionCu return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -691,6 +764,8 @@ public Builder addPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -709,6 +784,8 @@ public Builder addPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -727,6 +804,8 @@ public Builder addPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -737,8 +816,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); @@ -746,6 +824,8 @@ public Builder addAllPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -763,6 +843,8 @@ public Builder clearPartitionCursors() { return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -780,6 +862,8 @@ public Builder removePartitionCursors(int index) { return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -791,6 +875,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder getPartitionCur return getPartitionCursorsFieldBuilder().getBuilder(index); } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -800,19 +886,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 { @@ -820,6 +909,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -827,10 +918,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.
      * 
@@ -839,26 +932,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(), @@ -870,19 +972,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; @@ -891,21 +995,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 { @@ -913,30 +1018,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() { @@ -946,27 +1058,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); } @@ -976,41 +1092,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; @@ -1022,9 +1140,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..0bf081935 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 67% 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 32ec51f96..4b142ce93 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,35 +44,42 @@ private ListReservationTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReservationTopicsRequest(); } - 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 @@ -63,31 +88,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 { @@ -98,6 +125,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.
@@ -105,6 +134,7 @@ public java.lang.String getName() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,9 +143,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.
@@ -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 `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -150,16 +185,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 { @@ -168,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +214,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_); } @@ -203,8 +237,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_); @@ -217,19 +250,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; } @@ -253,131 +284,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(); @@ -389,13 +425,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(); } @@ -410,13 +447,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_; @@ -433,38 +474,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; @@ -472,7 +514,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; @@ -512,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) { @@ -542,24 +590,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; @@ -568,22 +621,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 { @@ -591,32 +647,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() { @@ -626,19 +693,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; @@ -646,8 +719,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.
@@ -655,6 +730,7 @@ public Builder setNameBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -662,6 +738,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -669,6 +747,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -680,6 +759,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -687,6 +768,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -698,6 +780,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 +791,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 +806,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -731,15 +817,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 { @@ -747,6 +832,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -756,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.
@@ -777,6 +868,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -786,6 +878,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -795,21 +889,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); } @@ -819,41 +915,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; @@ -865,9 +963,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 e360fb06b..5a59309a5 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -53,10 +83,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.
@@ -66,8 +99,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 74db70add..6ab71e530 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,86 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.emptyList(); + topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReservationTopicsResponse(); } - 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.LazyStringArrayList topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -88,30 +115,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 @@ -120,30 +153,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 { @@ -152,6 +185,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +197,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)); } @@ -199,17 +232,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; } @@ -233,149 +265,154 @@ 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(); bitField0_ = 0; - topics_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @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(); } @@ -390,13 +427,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result = + new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - 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_ & 0x00000001) != 0)) { topics_.makeImmutable(); @@ -411,46 +452,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_; @@ -492,23 +537,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) { @@ -518,10 +566,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTopicsIsMutable() { if (!topics_.isModifiable()) { topics_ = new com.google.protobuf.LazyStringArrayList(topics_); @@ -529,38 +579,46 @@ private void ensureTopicsIsMutable() { 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() { topics_.makeImmutable(); 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. */ @@ -568,33 +626,39 @@ 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); bitField0_ |= 0x00000001; @@ -602,18 +666,22 @@ public Builder setTopics( 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); bitField0_ |= 0x00000001; @@ -621,53 +689,61 @@ public Builder addTopics( 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_); bitField0_ |= 0x00000001; 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() { - topics_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; 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 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); @@ -678,19 +754,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; @@ -699,21 +777,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 { @@ -721,30 +800,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() { @@ -754,27 +840,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); } @@ -784,41 +874,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; @@ -830,9 +922,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..39cf17d30 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 43c995849..301993fa7 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,34 +44,41 @@ private ListReservationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReservationsRequest(); } - 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 @@ -62,30 +87,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 { @@ -96,6 +123,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
@@ -103,6 +132,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -111,9 +141,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.
@@ -123,6 +156,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,14 +165,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.
@@ -148,16 +183,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 { @@ -166,6 +200,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +212,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_); } @@ -201,8 +235,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_); @@ -215,19 +248,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; } @@ -251,131 +282,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(); @@ -387,9 +423,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 @@ -408,8 +444,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; } @@ -431,38 +470,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; @@ -470,7 +510,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; @@ -510,27 +551,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) { @@ -540,23 +585,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; @@ -565,21 +615,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 { @@ -587,30 +640,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() { @@ -620,18 +684,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; @@ -639,8 +709,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
@@ -648,6 +720,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -655,6 +728,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
@@ -662,6 +737,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -673,6 +749,8 @@ public Builder setPageSize(int value) { 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
@@ -680,6 +758,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -691,6 +770,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 +781,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 +796,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -724,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 { @@ -740,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -749,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.
@@ -770,6 +858,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -779,6 +868,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -788,21 +879,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); } @@ -812,12 +905,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(); } @@ -826,27 +919,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; @@ -861,6 +954,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 ccfafd765..c55cd914b 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -51,10 +81,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.
@@ -64,8 +97,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 73% 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 95241e95c..f2971e56c 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,28 +44,32 @@ private ListReservationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReservationsResponse(); } - 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.
@@ -60,6 +82,8 @@ public java.util.List getReservat
     return reservations_;
   }
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -68,11 +92,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.
@@ -85,6 +111,8 @@ public int getReservationsCount() {
     return reservations_.size();
   }
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -97,6 +125,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.
@@ -111,15 +141,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 @@ -128,30 +162,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 { @@ -160,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < reservations_.size(); i++) { output.writeMessage(1, reservations_.get(i)); } @@ -189,8 +223,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_); @@ -203,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.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; } @@ -237,131 +269,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(); @@ -378,9 +415,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 @@ -399,14 +436,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_); @@ -429,38 +470,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; @@ -468,7 +510,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()) { @@ -487,9 +530,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_); } @@ -526,30 +570,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) { @@ -559,21 +605,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.
@@ -589,6 +643,8 @@ public java.util.List getReservat
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -604,6 +660,8 @@ public int getReservationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -619,6 +677,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.
@@ -626,8 +686,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();
@@ -641,6 +700,8 @@ public Builder setReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -660,6 +721,8 @@ public Builder setReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -681,6 +744,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.
@@ -688,8 +753,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();
@@ -703,6 +767,8 @@ public Builder addReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -722,6 +788,8 @@ public Builder addReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -741,6 +809,8 @@ public Builder addReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -752,8 +822,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);
@@ -761,6 +830,8 @@ public Builder addAllReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -779,6 +850,8 @@ public Builder clearReservations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -797,6 +870,8 @@ public Builder removeReservations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -804,11 +879,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.
@@ -819,11 +895,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.
@@ -831,8 +910,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 {
@@ -840,6 +919,8 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -848,10 +929,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.
@@ -859,12 +942,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.
@@ -872,20 +956,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_;
@@ -893,19 +980,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; @@ -914,21 +1003,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 { @@ -936,30 +1026,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() { @@ -969,27 +1066,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); } @@ -999,12 +1100,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(); } @@ -1013,27 +1114,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; @@ -1048,6 +1149,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..44b2ecc83 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 6f062b718..c2f8ac99f 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,34 +44,41 @@ private ListSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSubscriptionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -62,30 +87,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 { @@ -96,6 +123,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.
@@ -103,6 +132,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -111,9 +141,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.
@@ -123,6 +156,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,14 +165,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.
@@ -148,16 +183,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 { @@ -166,6 +200,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +212,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_); } @@ -201,8 +235,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_); @@ -215,19 +248,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; } @@ -251,131 +282,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(); @@ -387,9 +423,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 @@ -408,8 +444,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; } @@ -431,38 +470,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; @@ -470,7 +510,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; @@ -510,27 +551,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) { @@ -540,23 +585,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; @@ -565,21 +615,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 { @@ -587,30 +640,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() { @@ -620,18 +684,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; @@ -639,8 +709,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.
@@ -648,6 +720,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -655,6 +728,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -662,6 +737,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -673,6 +749,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -680,6 +758,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -691,6 +770,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 +781,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 +796,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -724,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 { @@ -740,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -749,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.
@@ -770,6 +858,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -779,6 +868,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -788,21 +879,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); } @@ -812,12 +905,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(); } @@ -826,27 +919,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; @@ -861,6 +954,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 fa4a2d2f6..d3d6cabd3 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -51,10 +81,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.
@@ -64,8 +97,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 6de909e89..ad043de6d 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,28 +44,32 @@ private ListSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSubscriptionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
@@ -60,6 +82,8 @@ public java.util.List getSubscri
     return subscriptions_;
   }
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -68,11 +92,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.
@@ -85,6 +111,8 @@ public int getSubscriptionsCount() {
     return subscriptions_.size();
   }
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -97,6 +125,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.
@@ -111,15 +141,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 @@ -128,30 +162,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 { @@ -160,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { output.writeMessage(1, subscriptions_.get(i)); } @@ -189,8 +223,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_); @@ -203,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.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; } @@ -237,131 +269,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(); @@ -378,9 +415,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 @@ -399,14 +436,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_); @@ -429,38 +470,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; @@ -468,7 +510,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()) { @@ -487,9 +530,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_); } @@ -526,30 +570,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) { @@ -559,21 +605,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.
@@ -589,6 +643,8 @@ public java.util.List getSubscri
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -604,6 +660,8 @@ public int getSubscriptionsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -619,6 +677,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.
@@ -641,6 +701,8 @@ public Builder setSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -660,6 +722,8 @@ public Builder setSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -681,6 +745,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.
@@ -703,6 +769,8 @@ public Builder addSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -722,6 +790,8 @@ public Builder addSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -741,6 +811,8 @@ public Builder addSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -752,8 +824,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);
@@ -761,6 +832,8 @@ public Builder addAllSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -779,6 +852,8 @@ public Builder clearSubscriptions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -797,6 +872,8 @@ public Builder removeSubscriptions(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -809,6 +886,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.
@@ -819,11 +898,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.
@@ -831,8 +913,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 {
@@ -840,6 +922,8 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -848,10 +932,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.
@@ -861,10 +947,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.
@@ -872,16 +960,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(),
@@ -893,19 +987,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; @@ -914,21 +1010,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 { @@ -936,30 +1033,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() { @@ -969,27 +1073,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); } @@ -999,12 +1107,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(); } @@ -1013,27 +1121,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; @@ -1048,6 +1156,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..29cf59ea6 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 26586c857..09976b28f 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,33 +44,40 @@ private ListTopicSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSubscriptionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -61,29 +86,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 { @@ -94,6 +121,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.
@@ -101,6 +130,7 @@ public java.lang.String getName() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -109,9 +139,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.
@@ -121,6 +154,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -129,14 +163,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.
@@ -146,16 +181,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 { @@ -164,6 +198,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -199,8 +233,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_); @@ -213,19 +246,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; } @@ -249,131 +280,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(); @@ -385,13 +421,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(); } @@ -406,13 +443,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_; @@ -429,46 +470,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; @@ -508,27 +553,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) { @@ -538,22 +587,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; @@ -562,20 +616,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 { @@ -583,28 +640,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() { @@ -614,17 +682,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; @@ -632,8 +706,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.
@@ -641,6 +717,7 @@ public Builder setNameBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -648,6 +725,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -655,6 +734,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -666,6 +746,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -673,6 +755,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -684,6 +767,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 +778,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 +793,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -717,15 +804,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 { @@ -733,6 +819,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -742,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.
@@ -763,6 +855,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -772,6 +865,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -781,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); } @@ -805,41 +902,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; @@ -851,9 +950,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 a522ef003..87e5a3815 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -49,10 +79,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.
@@ -62,8 +95,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 3ea1453fb..311f8f7b7 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,86 +1,114 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.emptyList(); + subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSubscriptionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -88,30 +116,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 @@ -120,30 +154,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 { @@ -152,6 +186,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +198,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscriptions_.getRaw(i)); } @@ -199,17 +233,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; } @@ -233,149 +266,154 @@ 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(); bitField0_ = 0; - subscriptions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.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(); } @@ -390,13 +428,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result = + new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - 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_ & 0x00000001) != 0)) { subscriptions_.makeImmutable(); @@ -411,46 +453,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_; @@ -492,23 +538,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) { @@ -518,10 +567,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubscriptionsIsMutable() { if (!subscriptions_.isModifiable()) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); @@ -529,38 +580,46 @@ private void ensureSubscriptionsIsMutable() { 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() { subscriptions_.makeImmutable(); 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. */ @@ -568,33 +627,39 @@ 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); bitField0_ |= 0x00000001; @@ -602,18 +667,22 @@ public Builder setSubscriptions( 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); bitField0_ |= 0x00000001; @@ -621,53 +690,61 @@ public Builder addSubscriptions( 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_); bitField0_ |= 0x00000001; 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() { - subscriptions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; 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 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); @@ -678,19 +755,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; @@ -699,21 +778,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 { @@ -721,30 +801,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() { @@ -754,27 +841,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); } @@ -784,41 +875,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; @@ -830,9 +923,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..ea402cd5c 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 8e70e1717..094a1922c 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,34 +44,41 @@ private ListTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -62,30 +87,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 { @@ -96,6 +123,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.
@@ -103,6 +132,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -111,9 +141,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.
@@ -123,6 +156,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,14 +165,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.
@@ -148,16 +183,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 { @@ -166,6 +200,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +212,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_); } @@ -201,8 +235,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_); @@ -215,19 +248,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; } @@ -251,131 +282,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(); @@ -387,9 +422,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 @@ -408,8 +443,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; } @@ -431,38 +469,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; @@ -470,7 +509,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; @@ -510,27 +550,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) { @@ -540,23 +584,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; @@ -565,21 +614,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 { @@ -587,30 +639,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() { @@ -620,18 +683,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; @@ -639,8 +708,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.
@@ -648,6 +719,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -655,6 +727,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -662,6 +736,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -673,6 +748,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -680,6 +757,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -691,6 +769,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 +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; @@ -715,6 +795,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -724,15 +806,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -740,6 +821,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -749,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.
@@ -770,6 +857,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -779,6 +867,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -788,21 +878,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); } @@ -812,12 +904,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(); } @@ -826,27 +918,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; @@ -861,6 +953,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 fdc7f7f20..4440612c7 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -51,10 +81,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.
@@ -64,8 +97,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 eb5a2110c..abcca4f93 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,28 +44,32 @@ private ListTopicsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
@@ -60,6 +82,8 @@ public java.util.List getTopicsList() {
     return topics_;
   }
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -68,11 +92,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.
@@ -85,6 +111,8 @@ public int getTopicsCount() {
     return topics_.size();
   }
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -97,6 +125,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.
@@ -105,21 +135,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 @@ -128,30 +161,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * 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 { @@ -160,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < topics_.size(); i++) { output.writeMessage(1, topics_.get(i)); } @@ -189,8 +222,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < topics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, topics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topics_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +235,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; } @@ -237,131 +268,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(); @@ -378,9 +413,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 @@ -399,14 +434,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_); @@ -429,38 +468,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; @@ -468,7 +508,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()) { @@ -487,9 +528,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_); } @@ -526,30 +568,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) { @@ -559,21 +603,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.
@@ -589,6 +640,8 @@ public java.util.List getTopicsList() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -604,6 +657,8 @@ public int getTopicsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -619,6 +674,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.
@@ -626,8 +683,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();
@@ -641,6 +697,8 @@ public Builder setTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -660,6 +718,8 @@ public Builder setTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -681,6 +741,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.
@@ -688,8 +750,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();
@@ -703,6 +764,8 @@ public Builder addTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -710,8 +773,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());
@@ -722,6 +784,8 @@ public Builder addTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -741,6 +805,8 @@ public Builder addTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -752,8 +818,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);
@@ -761,6 +826,8 @@ public Builder addAllTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -779,6 +846,8 @@ public Builder clearTopics() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -797,6 +866,8 @@ public Builder removeTopics(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -804,11 +875,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.
@@ -816,14 +888,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.
@@ -831,8 +905,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 {
@@ -840,6 +914,8 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -848,10 +924,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.
@@ -859,12 +937,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.
@@ -872,20 +951,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_;
@@ -893,19 +974,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; @@ -914,21 +997,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 { @@ -936,30 +1020,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() { @@ -969,27 +1060,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); } @@ -999,12 +1094,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(); } @@ -1013,27 +1108,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; @@ -1048,6 +1143,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..3e64e6c6c 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 9307f0c6c..5a398bba9 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,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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.
    * 
@@ -58,6 +80,8 @@ public java.util.List getMessag return messages_; } /** + * + * *
    * The messages to publish.
    * 
@@ -65,11 +89,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.
    * 
@@ -81,6 +107,8 @@ public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * The messages to publish.
    * 
@@ -92,6 +120,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { return messages_.get(index); } /** + * + * *
    * The messages to publish.
    * 
@@ -99,14 +129,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
@@ -122,6 +153,7 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui
    * 
* * int64 first_sequence_number = 2; + * * @return The firstSequenceNumber. */ @java.lang.Override @@ -130,6 +162,7 @@ public long getFirstSequenceNumber() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +174,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)); } @@ -159,12 +191,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; @@ -174,17 +204,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; } @@ -201,139 +230,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(); @@ -350,9 +383,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 @@ -371,14 +404,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_); @@ -401,38 +438,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; @@ -440,7 +478,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()) { @@ -459,9 +498,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_); } @@ -496,30 +536,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) { @@ -529,21 +572,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.
      * 
@@ -558,6 +609,8 @@ public java.util.List getMessag } } /** + * + * *
      * The messages to publish.
      * 
@@ -572,6 +625,8 @@ public int getMessagesCount() { } } /** + * + * *
      * The messages to publish.
      * 
@@ -586,14 +641,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(); @@ -607,6 +663,8 @@ public Builder setMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -625,6 +683,8 @@ public Builder setMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -645,14 +705,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(); @@ -666,6 +727,8 @@ public Builder addMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -684,6 +747,8 @@ public Builder addMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -702,6 +767,8 @@ public Builder addMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -712,8 +779,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); @@ -721,6 +787,8 @@ public Builder addAllMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -738,6 +806,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -755,17 +825,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.
      * 
@@ -775,19 +848,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 { @@ -795,6 +871,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui } } /** + * + * *
      * The messages to publish.
      * 
@@ -802,49 +880,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
@@ -860,6 +946,7 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilde
      * 
* * int64 first_sequence_number = 2; + * * @return The firstSequenceNumber. */ @java.lang.Override @@ -867,6 +954,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,6 +971,7 @@ public long getFirstSequenceNumber() {
      * 
* * int64 first_sequence_number = 2; + * * @param value The firstSequenceNumber to set. * @return This builder for chaining. */ @@ -893,6 +983,8 @@ public Builder setFirstSequenceNumber(long value) { return this; } /** + * + * *
      * The sequence number corresponding to the first message in `messages`.
      * Messages within a batch are ordered and the sequence numbers of all
@@ -908,6 +1000,7 @@ public Builder setFirstSequenceNumber(long value) {
      * 
* * int64 first_sequence_number = 2; + * * @return This builder for chaining. */ public Builder clearFirstSequenceNumber() { @@ -916,9 +1009,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); } @@ -928,12 +1021,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(); } @@ -942,27 +1035,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; @@ -977,6 +1070,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 5b582c955..e41416948 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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
@@ -67,6 +93,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 71% 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 1397beafd..14927e779 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,73 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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.
@@ -78,74 +106,86 @@ 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(); } - 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 @@ -153,19 +193,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.
@@ -175,18 +222,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 @@ -197,11 +249,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 @@ -210,6 +265,7 @@ public int getEndIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +277,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()); } @@ -242,16 +297,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; @@ -261,22 +313,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -302,89 +352,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 @@ -394,39 +450,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(); @@ -442,19 +501,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); } @@ -463,18 +525,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_; @@ -488,46 +553,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()); } @@ -563,29 +635,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) { @@ -595,40 +669,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.
@@ -650,6 +738,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.
@@ -669,6 +759,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.
@@ -678,9 +770,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;
@@ -693,6 +785,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.
@@ -711,6 +805,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.
@@ -724,6 +820,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.
@@ -735,11 +833,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.
@@ -748,27 +849,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 @@ -776,12 +883,15 @@ 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. */ @@ -793,12 +903,15 @@ public Builder setStartIndex(int value) { 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() { @@ -808,13 +921,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 @@ -822,11 +938,14 @@ 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. */ @@ -838,11 +957,14 @@ public Builder setEndIndex(int value) { return this; } /** + * + * *
        * Index of the last message in this range. Exclusive.
        * 
* * int32 end_index = 3; + * * @return This builder for chaining. */ public Builder clearEndIndex() { @@ -851,6 +973,7 @@ public Builder clearEndIndex() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -863,41 +986,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; @@ -909,21 +1035,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 @@ -931,19 +1060,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.
@@ -953,13 +1089,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.
@@ -971,13 +1113,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.
@@ -989,14 +1136,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.
@@ -1008,13 +1160,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.
@@ -1026,13 +1182,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.
@@ -1044,15 +1205,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; @@ -1064,8 +1228,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()); } @@ -1082,12 +1245,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; @@ -1097,20 +1258,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; } @@ -1136,131 +1296,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(); @@ -1281,9 +1446,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 @@ -1302,14 +1467,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_); @@ -1324,9 +1493,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(); } } @@ -1334,38 +1502,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; @@ -1373,7 +1542,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()); } @@ -1395,9 +1565,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_); } @@ -1429,32 +1600,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) { @@ -1464,40 +1637,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.
@@ -1519,6 +1706,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.
@@ -1538,6 +1727,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.
@@ -1547,9 +1738,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;
@@ -1562,6 +1753,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.
@@ -1580,6 +1773,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.
@@ -1593,6 +1788,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.
@@ -1604,11 +1801,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.
@@ -1617,32 +1817,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 +1866,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 +1879,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. @@ -1675,7 +1892,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) { @@ -1685,6 +1904,8 @@ public int getCursorRangesCount() { } } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1696,9 +1917,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 { @@ -1706,6 +1930,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.
@@ -1717,7 +1943,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) { @@ -1734,6 +1962,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.
@@ -1745,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()); @@ -1759,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.
@@ -1770,9 +2006,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(); @@ -1786,6 +2025,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.
@@ -1797,7 +2038,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) { @@ -1814,6 +2057,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.
@@ -1825,10 +2070,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()); @@ -1839,6 +2087,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.
@@ -1850,10 +2100,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()); @@ -1864,6 +2118,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.
@@ -1875,14 +2131,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); @@ -1890,6 +2149,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.
@@ -1901,7 +2162,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) { @@ -1914,6 +2177,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.
@@ -1925,7 +2190,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) { @@ -1938,6 +2205,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.
@@ -1949,13 +2218,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.
@@ -1967,16 +2240,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.
@@ -1988,10 +2266,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 { @@ -1999,6 +2280,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.
@@ -2010,13 +2293,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.
@@ -2028,14 +2318,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.
@@ -2047,29 +2344,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); } @@ -2079,12 +2382,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(); } @@ -2093,27 +2396,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; @@ -2128,6 +2431,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 74% 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 00e7e9135..82a2134e2 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -49,11 +75,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.
@@ -65,10 +95,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.
@@ -80,10 +114,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.
@@ -95,11 +133,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.
@@ -111,8 +154,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 caa4a0880..4304317a3 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,43 +32,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();
   }
 
-  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.
    * 
@@ -63,6 +85,8 @@ public java.util.List getMes return messages_; } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -70,11 +94,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.
    * 
@@ -86,6 +112,8 @@ public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -97,6 +125,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) return messages_.get(index); } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -110,6 +140,7 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,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 { for (int i = 0; i < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } @@ -136,8 +166,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; @@ -147,15 +176,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; } @@ -177,98 +206,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:
@@ -280,33 +314,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();
@@ -322,9 +355,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
@@ -343,14 +376,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_);
@@ -370,38 +407,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;
@@ -409,7 +447,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()) {
@@ -428,9 +467,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_);
           }
@@ -462,25 +502,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) {
@@ -490,21 +532,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.
      * 
@@ -519,6 +569,8 @@ public java.util.List getMes } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -533,6 +585,8 @@ public int getMessagesCount() { } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -547,6 +601,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -568,6 +624,8 @@ public Builder setMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -586,6 +644,8 @@ public Builder setMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -606,6 +666,8 @@ public Builder addMessages(com.google.cloud.pubsublite.proto.SequencedMessage va return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -627,6 +689,8 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -645,6 +709,8 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -663,6 +729,8 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -673,8 +741,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); @@ -682,6 +749,8 @@ public Builder addAllMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -699,6 +768,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -716,6 +787,8 @@ public Builder removeMessages(int index) { return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -727,6 +800,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder getMessagesBui return getMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -736,19 +811,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 { @@ -756,6 +834,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -763,10 +843,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.
      * 
@@ -775,37 +857,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); } @@ -815,12 +903,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(); } @@ -829,27 +917,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; @@ -864,6 +952,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..bdd325756 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 9dbcd5dba..0e03c438f 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,32 +44,36 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } - 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 @@ -59,11 +81,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 @@ -71,6 +96,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -85,12 +112,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 @@ -98,12 +128,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 @@ -111,6 +144,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.
@@ -124,9 +159,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:
@@ -134,6 +172,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -142,14 +181,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:
@@ -157,16 +197,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 { @@ -175,14 +214,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 @@ -191,29 +234,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 { @@ -222,6 +265,7 @@ public java.lang.String getVerb() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +277,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()); } @@ -257,12 +300,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_); @@ -278,27 +319,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; } @@ -328,131 +366,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(); @@ -473,9 +515,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 @@ -494,8 +536,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; } @@ -503,14 +548,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_; @@ -524,38 +565,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; @@ -563,7 +605,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()); } @@ -606,36 +649,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) { @@ -645,38 +689,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.
      * 
@@ -697,14 +755,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 { @@ -715,6 +774,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -723,9 +784,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; @@ -738,6 +799,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -755,6 +818,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -767,6 +832,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -777,11 +844,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.
      * 
@@ -789,14 +859,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_; @@ -804,26 +877,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() { @@ -834,6 +916,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -855,6 +939,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.
@@ -862,8 +948,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 {
@@ -874,6 +959,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -883,9 +970,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;
@@ -898,6 +985,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.
@@ -916,6 +1005,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -929,6 +1020,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.
@@ -940,11 +1033,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.
@@ -953,14 +1047,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_;
@@ -968,6 +1065,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:
@@ -975,13 +1074,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; @@ -990,6 +1089,8 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -997,15 +1098,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 { @@ -1013,6 +1113,8 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1020,18 +1122,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:
@@ -1039,6 +1145,7 @@ public Builder setTarget(
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1048,6 +1155,8 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1055,12 +1164,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; @@ -1070,18 +1181,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; @@ -1090,20 +1203,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 { @@ -1111,28 +1225,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() { @@ -1142,26 +1263,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); } @@ -1171,12 +1296,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(); } @@ -1185,27 +1310,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; @@ -1220,6 +1345,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..4aad43491 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 8228c4be5..8b830fc0d 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,81 +29,94 @@
  *
  * 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();
   }
 
-  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; @@ -98,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 { getSerializedSize(); if (getPartitionsList().size() > 0) { output.writeUInt32NoTag(10); @@ -120,14 +149,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; } @@ -139,15 +167,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; } @@ -169,98 +197,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,
@@ -269,33 +303,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();
@@ -305,9 +338,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
@@ -326,14 +359,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);
@@ -349,38 +386,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;
@@ -388,7 +426,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_;
@@ -425,28 +464,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) {
@@ -456,9 +498,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_);
@@ -466,35 +510,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. */ @@ -502,17 +555,19 @@ 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); @@ -520,11 +575,14 @@ public Builder setPartitions( 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. */ @@ -536,28 +594,32 @@ public Builder addPartitions(long value) { 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() { @@ -566,9 +628,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); } @@ -578,12 +640,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(); } @@ -592,27 +654,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; @@ -627,6 +689,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 6ebf9e17c..3cd9239ec 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,39 +31,41 @@
  *
  * 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();
   }
 
-  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;
@@ -58,8 +77,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);
   }
 
@@ -77,12 +95,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;
@@ -101,98 +120,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,
@@ -203,33 +228,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();
@@ -237,9 +261,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
@@ -258,7 +282,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;
     }
@@ -267,38 +292,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;
@@ -306,7 +332,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;
@@ -333,12 +360,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) {
@@ -348,9 +376,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);
     }
 
@@ -360,12 +388,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();
   }
@@ -374,27 +402,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;
@@ -409,6 +437,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..f66713e44
--- /dev/null
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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..d6faa411e 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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 3a1b3585b..8b9a8d420 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,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; + @SuppressWarnings("serial") 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; } @@ -67,30 +89,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 @@ -98,21 +126,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.
    * 
@@ -120,20 +153,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 @@ -141,21 +178,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.
    * 
@@ -165,12 +207,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; @@ -182,10 +225,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_); @@ -200,12 +243,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; @@ -215,22 +260,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: @@ -264,131 +308,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(); @@ -405,13 +454,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(); } @@ -426,26 +476,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(); } } @@ -454,38 +507,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; @@ -493,19 +547,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(); @@ -533,26 +592,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) { @@ -562,12 +620,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() { @@ -580,13 +638,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 @@ -594,11 +658,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 @@ -607,22 +674,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(); @@ -636,6 +708,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssi return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -643,7 +717,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(); @@ -654,18 +729,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; } @@ -681,6 +765,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialPartitionAs return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -704,16 +790,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.
      * 
@@ -721,17 +812,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.
      * 
@@ -739,14 +834,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()); @@ -758,13 +860,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 @@ -772,11 +880,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 @@ -794,6 +905,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { } } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -814,6 +927,8 @@ public Builder setAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck v return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -832,6 +947,8 @@ public Builder setAck( return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -840,10 +957,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; } @@ -859,6 +980,8 @@ public Builder mergeAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -882,6 +1005,8 @@ public Builder clearAck() { return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -892,6 +1017,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder getAckBu return getAckFieldBuilder().getBuilder(); } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -910,6 +1037,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO } } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -917,14 +1046,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()); @@ -934,9 +1068,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); } @@ -946,12 +1080,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(); } @@ -960,27 +1095,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; @@ -995,6 +1130,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 01b7dc6e0..a18af781f 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 006e0663e..6e3194d4e 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,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -60,11 +81,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 @@ -72,18 +96,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.
    * 
@@ -92,10 +123,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; @@ -107,8 +141,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_); } @@ -125,12 +158,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; @@ -140,19 +171,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; @@ -166,8 +196,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(); @@ -178,131 +207,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(); @@ -317,9 +350,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 @@ -338,8 +371,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; } @@ -350,9 +386,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(); } } @@ -360,38 +394,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; @@ -399,7 +434,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()); } @@ -432,24 +468,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) { @@ -459,15 +496,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 @@ -475,11 +516,14 @@ public long getPartition() { return partition_; } /** + * + * *
      * The partition this is for.
      * 
* * int64 partition = 1; + * * @param value The partition to set. * @return This builder for chaining. */ @@ -491,11 +535,14 @@ public Builder setPartition(long value) { return this; } /** + * + * *
      * The partition this is for.
      * 
* * int64 partition = 1; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -507,34 +554,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.
      * 
@@ -555,14 +615,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 { @@ -573,6 +634,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The value of the cursor.
      * 
@@ -581,9 +644,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; @@ -596,6 +659,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The value of the cursor.
      * 
@@ -613,6 +678,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The value of the cursor.
      * 
@@ -625,6 +692,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The value of the cursor.
      * 
@@ -635,11 +704,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.
      * 
@@ -647,21 +719,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); } @@ -671,12 +746,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(); } @@ -685,27 +760,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; @@ -720,6 +795,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..8d9e816ec 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 66% 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 252fb1cfb..9e3f4ca9d 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,39 +44,41 @@ private PubSubMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PubSubMessage(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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
@@ -66,6 +86,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * bytes key = 1; + * * @return The key. */ @java.lang.Override @@ -76,11 +97,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 @@ -89,32 +113,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.
    * 
@@ -122,20 +156,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.
    * 
@@ -143,10 +179,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.
    * 
@@ -154,17 +193,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.
    * 
@@ -174,7 +216,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)) { @@ -186,11 +230,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 @@ -198,11 +245,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 @@ -210,6 +260,8 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
    * An optional, user-specified event time.
    * 
@@ -222,6 +274,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,20 +286,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()); } @@ -260,26 +308,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; @@ -289,23 +336,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; @@ -335,154 +379,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(); @@ -499,9 +545,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 @@ -520,8 +566,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; } @@ -539,9 +588,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(); } } @@ -549,38 +596,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; @@ -588,15 +636,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()); @@ -627,38 +675,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) { @@ -668,10 +723,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
@@ -679,6 +737,7 @@ public Builder mergeFrom(
      * 
* * bytes key = 1; + * * @return The key. */ @java.lang.Override @@ -686,6 +745,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
@@ -693,17 +754,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
@@ -711,6 +777,7 @@ public Builder setKey(com.google.protobuf.ByteString value) {
      * 
* * bytes key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { @@ -722,11 +789,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 @@ -734,27 +804,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() { @@ -765,8 +843,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( @@ -774,11 +855,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(); @@ -787,10 +870,13 @@ public Builder clearData() { onChanged(); return attributes_; } + public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -798,20 +884,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.
      * 
@@ -819,10 +907,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.
      * 
@@ -830,17 +921,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.
      * 
@@ -850,7 +944,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)) { @@ -858,29 +954,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() { @@ -888,6 +984,8 @@ public Builder removeAttributes( return internalGetMutableAttributes().getMutableMap(); } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -895,16 +993,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.
      * 
@@ -913,32 +1015,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() { @@ -949,6 +1059,8 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -969,14 +1081,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 { @@ -987,6 +1100,8 @@ public Builder setEventTime( return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -995,9 +1110,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; @@ -1010,6 +1125,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1027,6 +1144,8 @@ public Builder clearEventTime() { return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1039,6 +1158,8 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1049,11 +1170,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.
      * 
@@ -1061,21 +1183,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); } @@ -1085,12 +1210,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(); } @@ -1099,27 +1224,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; @@ -1134,6 +1259,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..827542aaf 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 21b8bbde0..3d02526a2 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,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; + @SuppressWarnings("serial") 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; } @@ -67,30 +89,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 @@ -98,21 +126,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.
    * 
@@ -120,20 +153,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 @@ -141,21 +178,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.
    * 
@@ -163,14 +205,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; @@ -182,13 +226,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); } @@ -200,12 +245,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; @@ -215,22 +262,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: @@ -263,132 +309,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(); @@ -405,9 +455,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 @@ -426,8 +476,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; @@ -440,12 +493,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(); } } @@ -454,38 +505,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; @@ -493,19 +545,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(); @@ -533,26 +589,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) { @@ -562,12 +618,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() { @@ -580,13 +636,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 @@ -594,11 +656,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 @@ -616,13 +681,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(); @@ -636,6 +704,8 @@ public Builder setInitialRequest(com.google.cloud.pubsublite.proto.InitialPublis return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -654,18 +724,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; } @@ -681,6 +758,8 @@ public Builder mergeInitialRequest(com.google.cloud.pubsublite.proto.InitialPubl return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -704,16 +783,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.
      * 
@@ -721,7 +805,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 { @@ -732,6 +817,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getIniti } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -739,14 +826,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()); @@ -758,13 +851,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 @@ -772,11 +871,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 @@ -794,13 +896,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(); @@ -814,6 +919,8 @@ public Builder setMessagePublishRequest(com.google.cloud.pubsublite.proto.Messag return this; } /** + * + * *
      * Request to publish messages.
      * 
@@ -832,18 +939,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; } @@ -859,6 +973,8 @@ public Builder mergeMessagePublishRequest(com.google.cloud.pubsublite.proto.Mess return this; } /** + * + * *
      * Request to publish messages.
      * 
@@ -882,16 +998,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.
      * 
@@ -899,7 +1020,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 { @@ -910,6 +1032,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessa } } /** + * + * *
      * Request to publish messages.
      * 
@@ -917,14 +1041,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()); @@ -934,9 +1064,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); } @@ -946,12 +1076,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(); } @@ -960,27 +1090,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; @@ -995,6 +1125,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 833816496..9e45162b2 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); 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 f5a0cc318..bd1d0751f 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,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; + @SuppressWarnings("serial") 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; } @@ -67,30 +89,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 @@ -98,21 +126,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.
    * 
@@ -120,20 +153,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 @@ -141,21 +178,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.
    * 
@@ -163,14 +205,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; @@ -182,13 +226,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); } @@ -200,12 +245,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; @@ -215,22 +262,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: @@ -264,131 +310,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(); @@ -405,9 +455,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 @@ -426,8 +476,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; @@ -440,12 +493,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(); } } @@ -454,38 +505,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; @@ -493,19 +545,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(); @@ -533,26 +589,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) { @@ -562,12 +617,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() { @@ -580,13 +635,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 @@ -594,11 +655,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 @@ -616,13 +680,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(); @@ -636,6 +703,8 @@ public Builder setInitialResponse(com.google.cloud.pubsublite.proto.InitialPubli return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -654,18 +723,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; } @@ -681,6 +757,8 @@ public Builder mergeInitialResponse(com.google.cloud.pubsublite.proto.InitialPub return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -704,16 +782,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.
      * 
@@ -721,7 +804,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 { @@ -732,6 +816,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInit } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -739,14 +825,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()); @@ -758,13 +850,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 @@ -772,11 +870,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 @@ -794,13 +895,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(); @@ -814,6 +918,8 @@ public Builder setMessageResponse(com.google.cloud.pubsublite.proto.MessagePubli return this; } /** + * + * *
      * Response to publishing messages.
      * 
@@ -832,18 +938,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; } @@ -859,6 +972,8 @@ public Builder mergeMessageResponse(com.google.cloud.pubsublite.proto.MessagePub return this; } /** + * + * *
      * Response to publishing messages.
      * 
@@ -882,16 +997,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.
      * 
@@ -899,7 +1019,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 { @@ -910,6 +1031,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMess } } /** + * + * *
      * Response to publishing messages.
      * 
@@ -917,14 +1040,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()); @@ -934,9 +1063,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); } @@ -946,12 +1075,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(); } @@ -960,27 +1089,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; @@ -995,6 +1124,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 e2584e146..bf8b8f3dd 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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..b8067d9a3 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java @@ -0,0 +1,182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 69% 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 69a605c79..70c178dc2 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,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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:
@@ -54,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -62,14 +85,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:
@@ -77,16 +101,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 { @@ -97,6 +120,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
@@ -108,6 +133,7 @@ public java.lang.String getName() {
    * 
* * int64 throughput_capacity = 2; + * * @return The throughputCapacity. */ @java.lang.Override @@ -116,6 +142,7 @@ public long getThroughputCapacity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,8 +154,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_); } @@ -148,8 +174,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; @@ -159,17 +184,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; } @@ -184,139 +208,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(); @@ -327,9 +354,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 @@ -348,8 +375,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; } @@ -368,38 +398,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; @@ -442,22 +473,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) { @@ -467,10 +501,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -478,13 +515,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; @@ -493,6 +530,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -500,15 +539,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 { @@ -516,6 +554,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -523,18 +563,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:
@@ -542,6 +586,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -551,6 +596,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -558,12 +605,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; @@ -571,8 +620,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
@@ -584,6 +635,7 @@ public Builder setNameBytes(
      * 
* * int64 throughput_capacity = 2; + * * @return The throughputCapacity. */ @java.lang.Override @@ -591,6 +643,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,6 +656,7 @@ public long getThroughputCapacity() {
      * 
* * int64 throughput_capacity = 2; + * * @param value The throughputCapacity to set. * @return This builder for chaining. */ @@ -613,6 +668,8 @@ public Builder setThroughputCapacity(long value) { 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
@@ -624,6 +681,7 @@ public Builder setThroughputCapacity(long value) {
      * 
* * int64 throughput_capacity = 2; + * * @return This builder for chaining. */ public Builder clearThroughputCapacity() { @@ -632,9 +690,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); } @@ -644,12 +702,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(); } @@ -658,27 +716,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; @@ -693,6 +751,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 e8bd1f25c..8234e3898 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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
@@ -43,6 +66,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 71% 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 9d1c86e26..ac3befafe 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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
@@ -15,48 +32,52 @@
  *
  * 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();
   }
 
-  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.
      * 
@@ -65,6 +86,8 @@ public enum NamedTarget */ NAMED_TARGET_UNSPECIFIED(0), /** + * + * *
      * A target corresponding to the most recently published message in the
      * partition.
@@ -74,6 +97,8 @@ public enum NamedTarget
      */
     HEAD(1),
     /**
+     *
+     *
      * 
      * A target corresponding to the committed cursor for the given subscription
      * and topic partition.
@@ -86,6 +111,8 @@ public enum NamedTarget
     ;
 
     /**
+     *
+     *
      * 
      * Default value. This value is unused.
      * 
@@ -94,6 +121,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.
@@ -103,6 +132,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.
@@ -112,7 +143,6 @@ public enum NamedTarget
      */
     public static final int COMMITTED_CURSOR_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -137,49 +167,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;
@@ -197,15 +227,19 @@ private NamedTarget(int value) {
   }
 
   private int targetCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object target_;
+
   public enum TargetCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NAMED_TARGET(1),
     CURSOR(2),
     TARGET_NOT_SET(0);
     private final int value;
+
     private TargetCase(int value) {
       this.value = value;
     }
@@ -221,41 +255,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() { @@ -265,30 +308,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 @@ -296,22 +348,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.
@@ -322,12 +379,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;
@@ -339,8 +397,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_));
     }
@@ -357,12 +414,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;
@@ -372,22 +430,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:
@@ -420,99 +477,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 +586,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 +625,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 +646,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 +663,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 +672,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 +714,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 +755,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 +784,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 +802,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 +817,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 +835,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 +853,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 +897,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 +917,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 +938,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 +964,8 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { } } /** + * + * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -887,6 +987,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 +996,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 +1007,8 @@ public Builder setCursor(
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -915,10 +1018,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 +1040,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 +1066,8 @@ public Builder clearCursor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -969,6 +1079,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 +1100,8 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -996,14 +1110,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 +1132,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 +1144,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 +1158,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 +1193,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 c65b790a7..052262fbd 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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 09894a334..72e4edf33 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,55 +1,76 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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(); } - 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 @@ -57,18 +78,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.
    * 
@@ -77,10 +105,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; @@ -92,8 +123,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()); } @@ -107,8 +137,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; @@ -118,17 +147,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; @@ -150,132 +179,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(); @@ -289,9 +322,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 @@ -310,8 +343,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; } @@ -319,9 +355,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(); } } @@ -329,38 +363,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; @@ -398,19 +433,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) { @@ -420,38 +455,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.
      * 
@@ -472,14 +521,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 { @@ -490,6 +540,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -498,9 +550,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; @@ -513,6 +565,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -530,6 +584,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -542,6 +598,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -552,11 +610,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.
      * 
@@ -564,21 +625,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); } @@ -588,12 +652,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(); } @@ -602,27 +666,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; @@ -637,6 +701,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..64e65c4fd 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 69% 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 58d827dbd..aadb1cab7 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,58 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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.
      * 
@@ -61,6 +83,8 @@ public enum NamedTarget */ NAMED_TARGET_UNSPECIFIED(0), /** + * + * *
      * Seek to the oldest retained message.
      * 
@@ -69,6 +93,8 @@ public enum NamedTarget */ TAIL(1), /** + * + * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -81,6 +107,8 @@ public enum NamedTarget
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified named target. Do not use.
      * 
@@ -89,6 +117,8 @@ public enum NamedTarget */ public static final int NAMED_TARGET_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Seek to the oldest retained message.
      * 
@@ -97,6 +127,8 @@ public enum NamedTarget */ public static final int TAIL_VALUE = 1; /** + * + * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -106,7 +138,6 @@ public enum NamedTarget
      */
     public static final int HEAD_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -131,49 +162,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;
@@ -191,15 +224,19 @@ private NamedTarget(int value) {
   }
 
   private int targetCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object target_;
+
   public enum TargetCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NAMED_TARGET(2),
     TIME_TARGET(3),
     TARGET_NOT_SET(0);
     private final int value;
+
     private TargetCase(int value) {
       this.value = value;
     }
@@ -215,32 +252,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 @@ -249,29 +295,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 { @@ -281,22 +329,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() { @@ -306,24 +360,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,
@@ -331,6 +394,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 @@ -338,6 +402,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,
@@ -345,16 +411,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,
@@ -366,12 +435,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;
@@ -383,8 +453,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_);
     }
@@ -407,12 +476,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;
@@ -422,24 +492,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:
@@ -475,131 +543,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(); @@ -614,9 +687,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 @@ -635,8 +708,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; @@ -649,11 +725,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(); } } @@ -662,38 +738,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; @@ -701,24 +778,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(); @@ -746,30 +827,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) { @@ -779,12 +862,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() { @@ -798,18 +881,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; @@ -818,20 +905,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 { @@ -839,28 +929,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() { @@ -870,17 +971,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; @@ -889,11 +996,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 @@ -901,11 +1012,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 @@ -916,11 +1031,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. */ @@ -931,32 +1050,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(); } @@ -966,11 +1098,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() { @@ -983,8 +1119,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,
@@ -992,6 +1133,7 @@ public Builder clearNamedTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return Whether the timeTarget field is set. */ @java.lang.Override @@ -999,6 +1141,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,
@@ -1006,6 +1150,7 @@ public boolean hasTimeTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return The timeTarget. */ @java.lang.Override @@ -1023,6 +1168,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,
@@ -1045,6 +1192,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,
@@ -1065,6 +1214,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,
@@ -1075,10 +1226,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;
         }
@@ -1094,6 +1248,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,
@@ -1119,6 +1275,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,
@@ -1131,6 +1289,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,
@@ -1151,6 +1311,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,
@@ -1160,14 +1322,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());
@@ -1177,9 +1344,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);
     }
 
@@ -1189,12 +1356,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();
   }
@@ -1203,27 +1370,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;
@@ -1238,6 +1405,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 71%
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 447640b33..74c50646a 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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 ffc2d95d9..0711c000d 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,48 +1,67 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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(); } - 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; @@ -54,8 +73,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); } @@ -73,12 +91,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; @@ -97,131 +116,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(); @@ -229,9 +253,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 @@ -250,7 +274,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; } @@ -259,38 +284,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; @@ -298,7 +324,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; @@ -325,12 +352,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) { @@ -340,9 +368,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); } @@ -352,12 +380,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(); } @@ -366,27 +394,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; @@ -401,6 +429,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..b31cef860 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 63% 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 28ef008c3..b5c7b075b 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,46 +28,50 @@
  *
  * 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();
   }
 
-  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 @@ -58,18 +79,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.
    * 
@@ -78,10 +106,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; @@ -93,8 +124,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()); } @@ -108,8 +138,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; @@ -119,17 +148,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; @@ -152,98 +181,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.
@@ -251,33 +286,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();
@@ -291,13 +325,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();
     }
 
@@ -312,18 +347,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();
       }
     }
 
@@ -331,38 +368,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;
@@ -370,7 +408,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());
       }
@@ -400,19 +440,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) {
@@ -422,38 +462,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.
      * 
@@ -474,14 +528,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 { @@ -492,6 +547,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -500,9 +557,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; @@ -515,6 +572,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -532,6 +591,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -544,6 +605,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -554,11 +617,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.
      * 
@@ -566,21 +632,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); } @@ -590,41 +659,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; @@ -636,9 +707,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..d06ce6137 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 62% 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 c471cd350..8d0311486 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,50 +1,70 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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
@@ -52,6 +72,7 @@ protected java.lang.Object newInstance(
    * 
* * int64 acknowledged_commits = 1; + * * @return The acknowledgedCommits. */ @java.lang.Override @@ -60,6 +81,7 @@ public long getAcknowledgedCommits() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -71,8 +93,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_); } @@ -86,8 +107,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; @@ -97,15 +117,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; } @@ -118,139 +138,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(); @@ -260,13 +284,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(); } @@ -281,13 +306,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_; @@ -298,46 +327,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()); } @@ -367,17 +400,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) { @@ -387,10 +422,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
@@ -398,6 +436,7 @@ public Builder mergeFrom(
      * 
* * int64 acknowledged_commits = 1; + * * @return The acknowledgedCommits. */ @java.lang.Override @@ -405,6 +444,8 @@ public long getAcknowledgedCommits() { return acknowledgedCommits_; } /** + * + * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -412,6 +453,7 @@ public long getAcknowledgedCommits() {
      * 
* * int64 acknowledged_commits = 1; + * * @param value The acknowledgedCommits to set. * @return This builder for chaining. */ @@ -423,6 +465,8 @@ public Builder setAcknowledgedCommits(long value) { return this; } /** + * + * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -430,6 +474,7 @@ public Builder setAcknowledgedCommits(long value) {
      * 
* * int64 acknowledged_commits = 1; + * * @return This builder for chaining. */ public Builder clearAcknowledgedCommits() { @@ -438,9 +483,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); } @@ -450,41 +495,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; @@ -496,9 +543,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..ebc68fa4f --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java @@ -0,0 +1,40 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 31defbe04..6de8e1daf 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,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -57,18 +78,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.
    * 
@@ -77,18 +105,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 @@ -96,12 +129,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 @@ -109,6 +145,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.
@@ -124,11 +162,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 @@ -136,18 +177,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.
    * 
@@ -156,17 +204,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 @@ -175,6 +228,7 @@ public long getSizeBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +240,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()); } @@ -210,20 +263,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; @@ -233,30 +282,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; } @@ -281,139 +327,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(); @@ -438,9 +487,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 @@ -459,8 +508,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; } @@ -468,19 +520,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_; @@ -491,38 +538,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; @@ -530,7 +578,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()); } @@ -569,38 +618,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) { @@ -610,38 +658,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.
      * 
@@ -662,14 +724,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 { @@ -680,6 +743,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -688,9 +753,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; @@ -703,6 +768,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.
      * 
@@ -720,6 +787,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -732,6 +801,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.
      * 
@@ -742,11 +813,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.
      * 
@@ -754,14 +828,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_; @@ -769,36 +846,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.
@@ -820,6 +910,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.
@@ -827,8 +919,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 {
@@ -839,6 +930,8 @@ public Builder setPublishTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -848,9 +941,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;
@@ -863,6 +956,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.
@@ -881,6 +976,8 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -894,6 +991,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.
@@ -905,11 +1004,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.
@@ -918,14 +1020,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_;
@@ -933,34 +1038,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.
      * 
@@ -981,6 +1099,8 @@ public Builder setMessage(com.google.cloud.pubsublite.proto.PubSubMessage value) return this; } /** + * + * *
      * The user message.
      * 
@@ -999,6 +1119,8 @@ public Builder setMessage( return this; } /** + * + * *
      * The user message.
      * 
@@ -1007,9 +1129,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; @@ -1022,6 +1144,8 @@ public Builder mergeMessage(com.google.cloud.pubsublite.proto.PubSubMessage valu return this; } /** + * + * *
      * The user message.
      * 
@@ -1039,6 +1163,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * The user message.
      * 
@@ -1051,6 +1177,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessageBuilder return getMessageFieldBuilder().getBuilder(); } /** + * + * *
      * The user message.
      * 
@@ -1061,11 +1189,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.
      * 
@@ -1073,26 +1204,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 @@ -1100,11 +1237,14 @@ 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. */ @@ -1116,11 +1256,14 @@ public Builder setSizeBytes(long value) { 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() { @@ -1129,9 +1272,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); } @@ -1141,12 +1284,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(); } @@ -1155,27 +1298,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; @@ -1190,6 +1333,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..b1fdf720b 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 8df2fb301..24dfecc84 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,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; + @SuppressWarnings("serial") 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; } @@ -67,30 +89,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 @@ -98,21 +126,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.
    * 
@@ -120,20 +153,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 @@ -141,21 +178,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.
    * 
@@ -163,14 +205,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; @@ -182,13 +226,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); } @@ -200,12 +245,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; @@ -215,22 +262,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: @@ -264,131 +310,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(); @@ -405,13 +456,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(); } @@ -426,26 +478,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(); } } @@ -454,38 +509,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; @@ -493,19 +549,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(); @@ -533,26 +594,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) { @@ -562,12 +622,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() { @@ -580,13 +640,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 @@ -594,11 +660,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 @@ -616,6 +685,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -636,6 +707,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -654,18 +727,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; } @@ -681,6 +762,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCurso return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -704,16 +787,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.
      * 
@@ -721,7 +809,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 { @@ -732,6 +821,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder get } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -739,14 +830,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()); @@ -758,13 +855,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 @@ -772,11 +875,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 @@ -794,6 +900,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit( } } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -814,6 +922,8 @@ public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursor return this; } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -832,18 +942,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; } @@ -859,6 +977,8 @@ public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCurs return this; } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -882,16 +1002,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.
      * 
@@ -899,7 +1024,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 { @@ -910,6 +1036,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder g } } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -917,14 +1045,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()); @@ -934,9 +1068,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); } @@ -946,41 +1080,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; @@ -992,9 +1128,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 72% 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 52c088618..799c1ded6 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
    * 
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 47c84c7fd..0fb8bf0a6 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,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; + @SuppressWarnings("serial") 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; } @@ -67,30 +89,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 @@ -98,21 +126,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.
    * 
@@ -120,20 +153,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 @@ -141,21 +178,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.
    * 
@@ -163,14 +205,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; @@ -182,13 +226,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); } @@ -200,12 +245,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; @@ -215,22 +262,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: @@ -264,131 +310,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(); @@ -405,13 +456,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(); } @@ -426,26 +478,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(); } } @@ -454,58 +509,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(); @@ -533,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( - 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) { @@ -562,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() { @@ -580,13 +641,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 @@ -594,11 +661,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 @@ -616,6 +686,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial( } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -636,6 +708,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -654,18 +728,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; } @@ -681,6 +763,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCurso return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -704,16 +788,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.
      * 
@@ -721,7 +810,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 { @@ -732,6 +822,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder ge } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -739,14 +831,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()); @@ -758,13 +856,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 @@ -772,11 +876,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 @@ -794,13 +901,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(); @@ -814,6 +924,8 @@ public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursor return this; } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -832,18 +944,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; } @@ -859,6 +979,8 @@ public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCurs return this; } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -882,16 +1004,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.
      * 
@@ -899,7 +1026,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 { @@ -910,6 +1038,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder } } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -917,14 +1047,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()); @@ -934,9 +1070,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); } @@ -946,41 +1082,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; @@ -992,9 +1130,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 72% 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 2f178dad0..71b1f41e0 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
    * 
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 53dd6a177..ec944f25b 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,58 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; + @SuppressWarnings("serial") 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; } @@ -68,31 +90,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 @@ -100,21 +129,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.
    * 
@@ -124,18 +158,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 @@ -143,21 +180,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.
    * 
@@ -167,18 +209,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 @@ -186,21 +231,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,
    * 
@@ -210,12 +260,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; @@ -227,8 +278,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_); } @@ -248,16 +298,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; @@ -267,26 +320,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: @@ -324,131 +375,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(); @@ -468,9 +523,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 @@ -489,8 +544,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; @@ -503,16 +561,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(); } } @@ -521,38 +576,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; @@ -560,23 +616,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(); @@ -604,33 +665,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) { @@ -640,12 +699,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() { @@ -658,13 +717,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 @@ -672,11 +737,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 @@ -694,6 +762,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -714,6 +784,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRequ return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -732,6 +804,8 @@ public Builder setInitial( return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -740,10 +814,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; } @@ -759,6 +837,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -782,6 +862,8 @@ public Builder clearInitial() { return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -792,6 +874,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit return getInitialFieldBuilder().getBuilder(); } /** + * + * *
      * Initial request on the stream.
      * 
@@ -799,7 +883,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 { @@ -810,6 +895,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getIni } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -817,14 +904,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()); @@ -836,13 +928,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 @@ -850,11 +948,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 @@ -872,6 +973,8 @@ public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { } } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -892,14 +995,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(); @@ -910,6 +1014,8 @@ public Builder setSeek( return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -918,10 +1024,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; } @@ -937,6 +1046,8 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -960,6 +1071,8 @@ public Builder clearSeek() { return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -970,6 +1083,8 @@ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -988,6 +1103,8 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() } } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -995,14 +1112,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()); @@ -1014,13 +1136,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 @@ -1028,11 +1156,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 @@ -1050,6 +1181,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { } } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1070,6 +1203,8 @@ public Builder setFlowControl(com.google.cloud.pubsublite.proto.FlowControlReque return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1088,6 +1223,8 @@ public Builder setFlowControl( return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1096,10 +1233,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; } @@ -1115,6 +1256,8 @@ public Builder mergeFlowControl(com.google.cloud.pubsublite.proto.FlowControlReq return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1138,6 +1281,8 @@ public Builder clearFlowControl() { return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1148,6 +1293,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest.Builder getFlowContr return getFlowControlFieldBuilder().getBuilder(); } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1166,6 +1313,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont } } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1173,14 +1322,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()); @@ -1190,9 +1344,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); } @@ -1202,12 +1356,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(); } @@ -1216,27 +1370,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; @@ -1251,6 +1405,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 085caeeed..8e973c758 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 4c246ceeb..919140843 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,58 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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; + @SuppressWarnings("serial") 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; } @@ -68,31 +90,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 @@ -100,21 +129,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.
    * 
@@ -124,18 +158,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 @@ -143,21 +180,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.
    * 
@@ -167,18 +209,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 @@ -186,21 +231,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.
    * 
@@ -210,12 +260,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; @@ -227,10 +278,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_); @@ -248,16 +299,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; @@ -267,26 +321,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: @@ -324,131 +376,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(); @@ -468,9 +524,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 @@ -489,8 +545,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; @@ -503,16 +562,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(); } } @@ -521,38 +577,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; @@ -560,23 +617,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(); @@ -604,33 +666,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) { @@ -640,12 +700,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() { @@ -658,13 +718,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 @@ -672,11 +738,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 @@ -694,6 +763,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -714,6 +785,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeResp return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -732,6 +805,8 @@ public Builder setInitial( return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -740,10 +815,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; } @@ -759,6 +839,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -782,6 +864,8 @@ public Builder clearInitial() { return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -792,6 +876,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni return getInitialFieldBuilder().getBuilder(); } /** + * + * *
      * Initial response on the stream.
      * 
@@ -799,7 +885,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 { @@ -810,6 +897,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getIn } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -817,14 +906,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()); @@ -836,13 +931,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 @@ -850,11 +951,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 @@ -872,6 +976,8 @@ public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { } } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -892,14 +998,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(); @@ -910,6 +1017,8 @@ public Builder setSeek( return this; } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -918,10 +1027,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; } @@ -937,6 +1049,8 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { return this; } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -960,6 +1074,8 @@ public Builder clearSeek() { return this; } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -970,6 +1086,8 @@ public com.google.cloud.pubsublite.proto.SeekResponse.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -988,6 +1106,8 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( } } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -995,14 +1115,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()); @@ -1014,13 +1139,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 @@ -1028,11 +1159,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 @@ -1050,6 +1184,8 @@ public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { } } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1070,6 +1206,8 @@ public Builder setMessages(com.google.cloud.pubsublite.proto.MessageResponse val return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1088,6 +1226,8 @@ public Builder setMessages( return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1096,10 +1236,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; } @@ -1115,6 +1259,8 @@ public Builder mergeMessages(com.google.cloud.pubsublite.proto.MessageResponse v return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1138,6 +1284,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1148,6 +1296,8 @@ public com.google.cloud.pubsublite.proto.MessageResponse.Builder getMessagesBuil return getMessagesFieldBuilder().getBuilder(); } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1166,6 +1316,8 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB } } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1173,14 +1325,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()); @@ -1190,9 +1347,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); } @@ -1202,12 +1359,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(); } @@ -1216,27 +1373,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; @@ -1251,6 +1408,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 76% 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 418241fd3..1f4280f0a 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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..5f3bf980f --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java @@ -0,0 +1,264 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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\"\213\001\n\027InitialSubscribeRequest\022\024\n\014subscr" + + "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022G\n\020initi" + + "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" + + "ite.v1.SeekRequestB\004\342A\001\001\"N\n\030InitialSubsc" + + "ribeResponse\0222\n\006cursor\030\001 \001(\0132\".google.cl" + + "oud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest" + + "\022K\n\014named_target\030\001 \001(\01623.google.cloud.pu" + + "bsublite.v1.SeekRequest.NamedTargetH\000\0224\n" + + "\006cursor\030\002 \001(\0132\".google.cloud.pubsublite." + + "v1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARG" + + "ET_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_" + + "CURSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cu" + + "rsor\030\001 \001(\0132\".google.cloud.pubsublite.v1." + + "Cursor\"E\n\022FlowControlRequest\022\030\n\020allowed_" + + "messages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001" + + "\n\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.go" + + "ogle.cloud.pubsublite.v1.InitialSubscrib" + + "eRequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud." + + "pubsublite.v1.SeekRequestH\000\022F\n\014flow_cont" + + "rol\030\003 \001(\0132..google.cloud.pubsublite.v1.F" + + "lowControlRequestH\000B\t\n\007request\"Q\n\017Messag" + + "eResponse\022>\n\010messages\030\001 \003(\0132,.google.clo" + + "ud.pubsublite.v1.SequencedMessage\"\343\001\n\021Su" + + "bscribeResponse\022G\n\007initial\030\001 \001(\01324.googl" + + "e.cloud.pubsublite.v1.InitialSubscribeRe" + + "sponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pu" + + "bsublite.v1.SeekResponseH\000\022?\n\010messages\030\003" + + " \001(\0132+.google.cloud.pubsublite.v1.Messag" + + "eResponseH\000B\n\n\010response\"L\n!InitialPartit" + + "ionAssignmentRequest\022\024\n\014subscription\030\001 \001" + + "(\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssign" + + "ment\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAss" + + "ignmentAck\"\274\001\n\032PartitionAssignmentReques" + + "t\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsub" + + "lite.v1.InitialPartitionAssignmentReques" + + "tH\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsubli" + + "te.v1.PartitionAssignmentAckH\000B\t\n\007reques" + + "t2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.g" + + "oogle.cloud.pubsublite.v1.SubscribeReque" + + "st\032-.google.cloud.pubsublite.v1.Subscrib" + + "eResponse\"\000(\0010\001\032M\312A\031pubsublite.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/" + + "cloud-platform2\357\001\n\032PartitionAssignmentSe" + + "rvice\022\201\001\n\020AssignPartitions\0226.google.clou" + + "d.pubsublite.v1.PartitionAssignmentReque" + + "st\032/.google.cloud.pubsublite.v1.Partitio" + + "nAssignment\"\000(\0010\001\032M\312A\031pubsublite.googlea" + + "pis.com\322A.https://www.googleapis.com/aut" + + "h/cloud-platformB\323\001\n!com.google.cloud.pu" + + "bsublite.protoB\017SubscriberProtoP\001Z>cloud" + + ".google.com/go/pubsublite/apiv1/pubsubli" + + "tepb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubS" + + "ubLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002" + + "\035Google::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 4efe876fa..09b761aa8 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,99 +44,120 @@ private Subscription() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Subscription(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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(); } - 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.
        * 
@@ -127,6 +166,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.
@@ -136,6 +177,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
@@ -149,6 +192,8 @@ public enum DeliveryRequirement
       ;
 
       /**
+       *
+       *
        * 
        * Default value. This value is unused.
        * 
@@ -157,6 +202,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.
@@ -166,6 +213,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
@@ -176,7 +225,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(
@@ -201,10 +249,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;
         }
       }
 
@@ -212,29 +264,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();
@@ -242,8 +296,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;
@@ -263,30 +316,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; @@ -298,9 +370,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); @@ -312,9 +386,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; @@ -324,12 +400,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; @@ -351,89 +428,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 @@ -443,39 +525,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(); @@ -485,13 +569,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(); } @@ -506,13 +591,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_; @@ -523,46 +612,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()); } @@ -592,17 +687,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) { @@ -612,26 +709,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. */ @@ -642,28 +751,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(); } @@ -673,11 +799,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() { @@ -686,6 +817,7 @@ public Builder clearDeliveryRequirement() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -698,41 +830,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; @@ -744,16 +879,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:
@@ -761,6 +899,7 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultI
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -769,14 +908,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:
@@ -784,16 +924,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 { @@ -802,9 +941,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:
@@ -812,6 +954,7 @@ public java.lang.String getName() {
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return The topic. */ @java.lang.Override @@ -820,14 +963,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:
@@ -835,16 +979,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 { @@ -855,11 +998,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 @@ -867,18 +1013,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.
    * 
@@ -886,19 +1039,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 @@ -906,19 +1065,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.
@@ -928,10 +1094,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;
@@ -943,8 +1112,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_);
     }
@@ -973,12 +1141,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;
@@ -988,26 +1154,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;
@@ -1037,132 +1200,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(); @@ -1183,9 +1350,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 @@ -1204,8 +1371,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; } @@ -1219,14 +1389,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(); } } @@ -1234,38 +1402,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; @@ -1316,36 +1485,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) { @@ -1355,10 +1525,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1366,13 +1539,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; @@ -1381,6 +1554,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1388,15 +1563,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 { @@ -1404,6 +1578,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1411,18 +1587,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:
@@ -1430,6 +1610,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1439,6 +1620,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1446,12 +1629,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; @@ -1461,6 +1646,8 @@ public Builder setNameBytes( private java.lang.Object topic_ = ""; /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1468,13 +1655,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; @@ -1483,6 +1670,8 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1490,15 +1679,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 { @@ -1506,6 +1694,8 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1513,18 +1703,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:
@@ -1532,6 +1726,7 @@ public Builder setTopic(
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1541,6 +1736,8 @@ public Builder clearTopic() { return this; } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1548,12 +1745,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; @@ -1563,41 +1762,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(); @@ -1611,6 +1824,8 @@ public Builder setDeliveryConfig(com.google.cloud.pubsublite.proto.Subscription. return this; } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
@@ -1629,17 +1844,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; @@ -1652,6 +1872,8 @@ public Builder mergeDeliveryConfig(com.google.cloud.pubsublite.proto.Subscriptio return this; } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
@@ -1669,33 +1891,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.
      * 
@@ -1703,14 +1934,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_; @@ -1718,36 +1952,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.
@@ -1769,6 +2016,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.
@@ -1788,6 +2037,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.
@@ -1797,9 +2048,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;
@@ -1812,6 +2064,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.
@@ -1830,6 +2084,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.
@@ -1843,6 +2099,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.
@@ -1854,11 +2112,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.
@@ -1867,21 +2128,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);
     }
 
@@ -1891,12 +2155,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();
   }
@@ -1905,27 +2169,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;
@@ -1940,6 +2204,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..8ec416344 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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 0c7b02378..66cbd2339 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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,48 +28,53 @@
  *
  * 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();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   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;
     }
@@ -68,25 +90,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
@@ -94,6 +121,7 @@ public int getNumber() {
    * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -101,6 +129,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
@@ -108,16 +138,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
@@ -129,13 +162,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
@@ -145,6 +180,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -152,6 +188,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
@@ -161,16 +199,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
@@ -184,12 +225,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;
@@ -201,8 +243,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_);
     }
@@ -219,12 +260,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;
@@ -234,22 +277,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:
@@ -282,99 +324,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.
@@ -382,33 +429,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();
@@ -425,9 +471,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
@@ -446,8 +492,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;
@@ -460,12 +509,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();
       }
     }
@@ -474,38 +521,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;
@@ -515,17 +563,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();
@@ -553,26 +604,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) {
@@ -582,12 +632,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() {
@@ -600,8 +650,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
@@ -609,6 +664,7 @@ public Builder clearTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -616,6 +672,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
@@ -623,6 +681,7 @@ public boolean hasPublishTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return The publishTime. */ @java.lang.Override @@ -640,6 +699,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
@@ -662,6 +723,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
@@ -670,8 +733,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();
@@ -682,6 +744,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
@@ -692,10 +756,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;
         }
@@ -711,6 +776,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
@@ -736,6 +803,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
@@ -748,6 +817,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
@@ -768,6 +839,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
@@ -777,17 +850,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;
@@ -796,8 +872,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
@@ -807,6 +888,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -814,6 +896,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
@@ -823,6 +907,7 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return The eventTime. */ @java.lang.Override @@ -840,6 +925,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
@@ -864,6 +951,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
@@ -874,8 +963,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();
@@ -886,6 +974,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
@@ -898,10 +988,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;
         }
@@ -917,6 +1008,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
@@ -944,6 +1037,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
@@ -958,6 +1053,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
@@ -980,6 +1077,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
@@ -991,26 +1090,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);
     }
 
@@ -1020,12 +1122,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();
   }
@@ -1034,27 +1136,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;
@@ -1069,6 +1171,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 81343ab5b..bc0913592 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 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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 5aca8a551..7089e3f63 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,53 +1,75 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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(); } - 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.
      *
@@ -58,11 +80,14 @@ public interface PartitionConfigOrBuilder extends
      * 
* * int64 count = 1; + * * @return The count. */ long getCount(); /** + * + * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -75,12 +100,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.
@@ -93,154 +122,181 @@ 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(); 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(); } - 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(); } - 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 @@ -251,12 +307,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 @@ -265,6 +324,7 @@ public int getSubscribeMibPerSec() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,8 +336,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_); } @@ -294,12 +353,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; @@ -309,17 +366,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; } @@ -341,89 +397,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 @@ -433,39 +496,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(); @@ -476,14 +542,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 @@ -497,13 +565,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_; @@ -517,46 +589,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()); } @@ -589,22 +668,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) { @@ -614,16 +696,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 @@ -631,12 +717,15 @@ 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. */ @@ -648,12 +737,15 @@ public Builder setPublishMibPerSec(int value) { 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() { @@ -663,14 +755,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 @@ -678,12 +773,15 @@ 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. */ @@ -695,12 +793,15 @@ public Builder setSubscribeMibPerSec(int value) { 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() { @@ -709,6 +810,7 @@ public Builder clearSubscribeMibPerSec() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -721,41 +823,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; @@ -767,22 +872,27 @@ 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; + @SuppressWarnings("serial") 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; } @@ -798,26 +908,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.
      *
@@ -828,6 +943,7 @@ public int getNumber() {
      * 
* * int64 count = 1; + * * @return The count. */ @java.lang.Override @@ -837,6 +953,8 @@ public long getCount() { public static final int SCALE_FIELD_NUMBER = 2; /** + * + * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -849,15 +967,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.
@@ -870,12 +992,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_; } @@ -884,11 +1008,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 @@ -896,21 +1023,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.
      * 
@@ -918,14 +1050,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; @@ -937,17 +1071,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); } @@ -959,17 +1092,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; @@ -979,24 +1112,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: @@ -1013,8 +1144,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; @@ -1033,89 +1163,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 @@ -1125,39 +1260,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(); @@ -1172,9 +1309,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 @@ -1193,8 +1330,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; @@ -1207,11 +1347,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(); } } @@ -1220,38 +1360,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; @@ -1259,22 +1402,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(); @@ -1302,29 +1449,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) { @@ -1334,12 +1483,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() { @@ -1351,8 +1500,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.
        *
@@ -1363,6 +1514,7 @@ public Builder clearDimension() {
        * 
* * int64 count = 1; + * * @return The count. */ @java.lang.Override @@ -1370,6 +1522,8 @@ public long getCount() { return count_; } /** + * + * *
        * The number of partitions in the topic. Must be at least 1.
        *
@@ -1380,6 +1534,7 @@ public long getCount() {
        * 
* * int64 count = 1; + * * @param value The count to set. * @return This builder for chaining. */ @@ -1391,6 +1546,8 @@ public Builder setCount(long value) { return this; } /** + * + * *
        * The number of partitions in the topic. Must be at least 1.
        *
@@ -1401,6 +1558,7 @@ public Builder setCount(long value) {
        * 
* * int64 count = 1; + * * @return This builder for chaining. */ public Builder clearCount() { @@ -1411,6 +1569,8 @@ public Builder clearCount() { } /** + * + * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1423,14 +1583,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.
@@ -1443,17 +1607,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.
@@ -1466,12 +1634,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 * @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; @@ -1479,6 +1649,8 @@ public Builder clearCount() { return this; } /** + * + * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1491,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; @@ -1505,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 @@ -1519,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 @@ -1532,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(); @@ -1561,6 +1749,8 @@ public Builder setCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConf return this; } /** + * + * *
        * The capacity configuration.
        * 
@@ -1568,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(); @@ -1579,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; } @@ -1606,6 +1806,8 @@ public Builder mergeCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionCo return this; } /** + * + * *
        * The capacity configuration.
        * 
@@ -1629,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.
        * 
@@ -1646,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.
        * 
@@ -1664,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()); @@ -1681,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) { @@ -1693,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(); } @@ -1707,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; @@ -1742,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
@@ -1758,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
@@ -1770,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
@@ -1781,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
@@ -1796,47 +2027,52 @@ 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(); } - 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
@@ -1845,6 +2081,7 @@ protected java.lang.Object newInstance(
      * 
* * int64 per_partition_bytes = 1; + * * @return The perPartitionBytes. */ @java.lang.Override @@ -1855,6 +2092,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
@@ -1862,6 +2101,7 @@ public long getPerPartitionBytes() {
      * 
* * .google.protobuf.Duration period = 2; + * * @return Whether the period field is set. */ @java.lang.Override @@ -1869,6 +2109,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
@@ -1876,6 +2118,7 @@ public boolean hasPeriod() {
      * 
* * .google.protobuf.Duration period = 2; + * * @return The period. */ @java.lang.Override @@ -1883,6 +2126,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
@@ -1897,6 +2142,7 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1908,8 +2154,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_);
       }
@@ -1926,12 +2171,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;
@@ -1941,19 +2184,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;
@@ -1967,8 +2209,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();
@@ -1979,89 +2220,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 +2317,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 +2366,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 +2387,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 +2402,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 +2410,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 +2452,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 +2486,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 +2514,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 +2529,7 @@ public Builder mergeFrom(
        * 
* * int64 per_partition_bytes = 1; + * * @return The perPartitionBytes. */ @java.lang.Override @@ -2279,6 +2537,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,6 +2547,7 @@ public long getPerPartitionBytes() {
        * 
* * int64 per_partition_bytes = 1; + * * @param value The perPartitionBytes to set. * @return This builder for chaining. */ @@ -2298,6 +2559,8 @@ public Builder setPerPartitionBytes(long value) { 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 +2569,7 @@ public Builder setPerPartitionBytes(long value) {
        * 
* * int64 per_partition_bytes = 1; + * * @return This builder for chaining. */ public Builder clearPerPartitionBytes() { @@ -2317,8 +2581,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 +2595,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 +2611,7 @@ public boolean hasPeriod() {
        * 
* * .google.protobuf.Duration period = 2; + * * @return The period. */ public com.google.protobuf.Duration getPeriod() { @@ -2349,6 +2622,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 +2646,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 +2656,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 +2667,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 +2679,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 +2694,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 +2715,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 +2731,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 +2745,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 +2760,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 +2788,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 +2802,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 +2838,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 +2855,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,55 +2869,62 @@ 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(); } - 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:
@@ -2630,6 +2932,7 @@ protected java.lang.Object newInstance(
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return The throughputReservation. */ @java.lang.Override @@ -2638,14 +2941,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:
@@ -2653,16 +2957,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 { @@ -2671,6 +2974,7 @@ public java.lang.String getThroughputReservation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2682,8 +2986,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_); } @@ -2707,15 +3010,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; } @@ -2735,89 +3038,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 @@ -2827,39 +3135,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(); @@ -2869,9 +3179,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 @@ -2890,8 +3200,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; } @@ -2907,38 +3220,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) { + 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.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; @@ -2946,7 +3262,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; @@ -2978,17 +3295,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) { @@ -2998,10 +3317,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:
@@ -3009,13 +3331,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; @@ -3024,6 +3346,8 @@ public java.lang.String getThroughputReservation() { } } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3031,15 +3355,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 { @@ -3047,6 +3370,8 @@ public java.lang.String getThroughputReservation() { } } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3054,18 +3379,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:
@@ -3073,6 +3402,7 @@ public Builder setThroughputReservation(
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearThroughputReservation() { @@ -3082,6 +3412,8 @@ public Builder clearThroughputReservation() { return this; } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3089,18 +3421,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) { @@ -3113,12 +3448,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(); } @@ -3127,27 +3462,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; @@ -3162,13 +3498,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:
@@ -3176,6 +3514,7 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInsta
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -3184,14 +3523,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:
@@ -3199,16 +3539,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 { @@ -3219,11 +3558,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 @@ -3231,18 +3573,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.
    * 
@@ -3250,18 +3599,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 @@ -3269,18 +3624,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.
    * 
@@ -3288,18 +3650,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 @@ -3307,18 +3675,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.
    * 
@@ -3326,11 +3701,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; @@ -3342,8 +3721,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_); } @@ -3369,16 +3747,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; @@ -3388,29 +3763,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; @@ -3442,132 +3813,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(); @@ -3592,9 +3967,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 @@ -3613,8 +3988,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; } @@ -3625,19 +4003,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(); } } @@ -3645,38 +4022,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; @@ -3725,38 +4103,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) { @@ -3766,10 +4144,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3777,13 +4158,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; @@ -3792,6 +4173,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3799,15 +4182,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 { @@ -3815,6 +4197,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3822,18 +4206,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:
@@ -3841,6 +4229,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3850,6 +4239,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3857,12 +4248,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; @@ -3872,41 +4265,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(); @@ -3920,6 +4327,8 @@ public Builder setPartitionConfig(com.google.cloud.pubsublite.proto.Topic.Partit return this; } /** + * + * *
      * The settings for this topic's partitions.
      * 
@@ -3938,17 +4347,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; @@ -3961,6 +4374,8 @@ public Builder mergePartitionConfig(com.google.cloud.pubsublite.proto.Topic.Part return this; } /** + * + * *
      * The settings for this topic's partitions.
      * 
@@ -3978,33 +4393,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.
      * 
@@ -4012,14 +4436,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_; @@ -4027,41 +4454,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(); @@ -4075,6 +4516,8 @@ public Builder setRetentionConfig(com.google.cloud.pubsublite.proto.Topic.Retent return this; } /** + * + * *
      * The settings for this topic's message retention.
      * 
@@ -4093,17 +4536,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; @@ -4116,6 +4563,8 @@ public Builder mergeRetentionConfig(com.google.cloud.pubsublite.proto.Topic.Rete return this; } /** + * + * *
      * The settings for this topic's message retention.
      * 
@@ -4133,33 +4582,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.
      * 
@@ -4167,14 +4625,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_; @@ -4182,41 +4643,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(); @@ -4230,6 +4705,8 @@ public Builder setReservationConfig(com.google.cloud.pubsublite.proto.Topic.Rese return this; } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4248,17 +4725,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; @@ -4271,6 +4752,8 @@ public Builder mergeReservationConfig(com.google.cloud.pubsublite.proto.Topic.Re return this; } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4288,33 +4771,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.
      * 
@@ -4322,21 +4814,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); } @@ -4346,12 +4841,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(); } @@ -4360,27 +4855,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; @@ -4395,6 +4890,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..a3c120b03 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 64% 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 6907dfc52..66fd8f912 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,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -58,6 +79,7 @@ public long getPartitionCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -69,8 +91,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_); } @@ -84,8 +105,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; @@ -95,15 +115,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; } @@ -116,139 +136,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(); @@ -258,9 +281,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 @@ -279,8 +302,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; } @@ -296,38 +322,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; @@ -335,7 +362,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()); } @@ -365,17 +393,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) { @@ -385,15 +415,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 @@ -401,11 +435,14 @@ 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. */ @@ -417,11 +454,14 @@ public Builder setPartitionCount(long value) { return this; } /** + * + * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; + * * @return This builder for chaining. */ public Builder clearPartitionCount() { @@ -430,9 +470,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); } @@ -442,12 +482,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(); } @@ -456,27 +496,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; @@ -491,6 +531,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..7c1abfd90 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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..9842a109f --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java @@ -0,0 +1,194 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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\"\340\001\n\032ComputeMessa" + + "geStatsRequest\0227\n\005topic\030\001 \001(\tB(\342A\001\002\372A!\n\037" + + "pubsublite.googleapis.com/Topic\022\027\n\tparti" + + "tion\030\002 \001(\003B\004\342A\001\002\0228\n\014start_cursor\030\003 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\0226\n\nen" + + "d_cursor\030\004 \001(\0132\".google.cloud.pubsublite" + + ".v1.Cursor\"\275\001\n\033ComputeMessageStatsRespon" + + "se\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_byt" + + "es\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032" + + ".google.protobuf.Timestamp\0226\n\022minimum_ev" + + "ent_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mp\"l\n\030ComputeHeadCursorRequest\0227\n\005topic\030" + + "\001 \001(\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.co" + + "m/Topic\022\027\n\tpartition\030\002 \001(\003B\004\342A\001\002\"T\n\031Comp" + + "uteHeadCursorResponse\0227\n\013head_cursor\030\001 \001" + + "(\0132\".google.cloud.pubsublite.v1.Cursor\"\252" + + "\001\n\030ComputeTimeCursorRequest\0227\n\005topic\030\001 \001" + + "(\tB(\342A\001\002\372A!\n\037pubsublite.googleapis.com/T" + + "opic\022\027\n\tpartition\030\002 \001(\003B\004\342A\001\002\022<\n\006target\030" + + "\003 \001(\0132&.google.cloud.pubsublite.v1.TimeT" + + "argetB\004\342A\001\002\"O\n\031ComputeTimeCursorResponse" + + "\0222\n\006cursor\030\001 \001(\0132\".google.cloud.pubsubli" + + "te.v1.Cursor2\362\005\n\021TopicStatsService\022\335\001\n\023C" + + "omputeMessageStats\0226.google.cloud.pubsub" + + "lite.v1.ComputeMessageStatsRequest\0327.goo" + + "gle.cloud.pubsublite.v1.ComputeMessageSt" + + "atsResponse\"U\202\323\344\223\002O\"J/v1/topicStats/{top" + + "ic=projects/*/locations/*/topics/*}:comp" + + "uteMessageStats:\001*\022\325\001\n\021ComputeHeadCursor" + + "\0224.google.cloud.pubsublite.v1.ComputeHea" + + "dCursorRequest\0325.google.cloud.pubsublite" + + ".v1.ComputeHeadCursorResponse\"S\202\323\344\223\002M\"H/" + + "v1/topicStats/{topic=projects/*/location" + + "s/*/topics/*}:computeHeadCursor:\001*\022\325\001\n\021C" + + "omputeTimeCursor\0224.google.cloud.pubsubli" + + "te.v1.ComputeTimeCursorRequest\0325.google." + + "cloud.pubsublite.v1.ComputeTimeCursorRes" + + "ponse\"S\202\323\344\223\002M\"H/v1/topicStats/{topic=pro" + + "jects/*/locations/*/topics/*}:computeTim" + + "eCursor:\001*\032M\312A\031pubsublite.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\320\001\n!com.google.cloud.pubsublit" + + "e.protoB\017TopicStatsProtoP\001Z>cloud.google" + + ".com/go/pubsublite/apiv1/pubsublitepb;pu" + + "bsublitepb\252\002\032Google.Cloud.PubSubLite.V1\312" + + "\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035Google::C" + + "loud::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.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 15dd4098c..481821cde 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,55 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -57,37 +80,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 @@ -95,11 +135,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 @@ -107,11 +151,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() { @@ -119,6 +166,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,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 { if (reservation_ != null) { output.writeMessage(1, getReservation()); } @@ -148,12 +195,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; @@ -163,22 +208,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; @@ -205,131 +249,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(); @@ -348,9 +397,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 @@ -369,8 +418,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; } @@ -378,14 +430,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(); } } @@ -393,38 +442,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; @@ -432,7 +482,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()); } @@ -465,26 +516,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) { @@ -494,43 +544,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) { @@ -546,11 +616,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) { @@ -564,17 +638,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; @@ -587,11 +665,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); @@ -604,11 +686,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; @@ -616,36 +702,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_; @@ -653,39 +751,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) { @@ -701,14 +815,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 { @@ -719,17 +835,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; @@ -742,11 +861,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); @@ -759,11 +881,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; @@ -771,43 +896,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); } @@ -817,12 +952,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(); } @@ -831,27 +966,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; @@ -866,6 +1001,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..0a09894d0 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 161fbee8a..946b8b313 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,56 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -58,39 +81,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 @@ -98,11 +138,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 @@ -110,11 +154,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() { @@ -122,6 +169,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subscription_ != null) { output.writeMessage(1, getSubscription()); } @@ -151,12 +198,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; @@ -166,22 +211,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; @@ -208,131 +252,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(); @@ -351,9 +400,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 @@ -372,8 +421,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; } @@ -381,14 +433,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(); } } @@ -396,38 +445,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; @@ -435,7 +485,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()); } @@ -468,26 +519,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) { @@ -497,46 +547,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) { @@ -552,12 +622,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) { @@ -571,18 +645,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; @@ -595,12 +674,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); @@ -613,12 +696,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; @@ -626,38 +713,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_; @@ -665,39 +764,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) { @@ -713,14 +828,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 { @@ -731,17 +848,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; @@ -754,11 +874,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); @@ -771,11 +894,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; @@ -783,43 +909,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); } @@ -829,12 +965,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(); } @@ -843,27 +979,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; @@ -878,6 +1014,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..e81d179e9 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 351e63941..e8155055e 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,55 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } - 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 @@ -57,11 +79,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 @@ -69,11 +95,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() { @@ -83,11 +112,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 @@ -95,11 +128,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 @@ -107,11 +144,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() { @@ -119,6 +159,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,8 +171,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()); } @@ -148,12 +188,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; @@ -163,22 +201,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; @@ -205,131 +242,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(); @@ -348,9 +389,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 @@ -369,8 +410,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; } @@ -378,14 +422,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(); } } @@ -393,38 +433,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; @@ -432,7 +473,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()); } @@ -465,26 +507,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) { @@ -494,43 +535,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) { @@ -546,14 +604,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 { @@ -564,17 +624,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; @@ -587,11 +650,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); @@ -604,11 +670,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; @@ -616,36 +685,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_; @@ -653,39 +732,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) { @@ -701,14 +796,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 { @@ -719,17 +816,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; @@ -742,11 +842,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); @@ -759,11 +862,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; @@ -771,43 +877,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); } @@ -817,12 +933,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(); } @@ -831,27 +947,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; @@ -866,6 +982,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..0a1c04739 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 From 170a42b04eab4f11228031fe436dc4d2143cfd11 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit <90280028+ddixit14@users.noreply.github.com> Date: Wed, 10 Jan 2024 12:31:03 -0500 Subject: [PATCH 3/5] chore: empty commit to trigger tests --- .../com/google/cloud/pubsublite/v1/CursorServiceClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/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 index 79b5cbd32..773026da6 100644 --- a/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 @@ -65,7 +65,7 @@ * .build(); * CommitCursorResponse response = cursorServiceClient.commitCursor(request); * } - * }
+ * }
* *

Note: close() needs to be called on the CursorServiceClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). From 2667a5f119c3af9c36c49517836bd1bd503a415b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 10 Jan 2024 17:32:52 +0000 Subject: [PATCH 4/5] =?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 --- .../com/google/cloud/pubsublite/v1/CursorServiceClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/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 index 773026da6..79b5cbd32 100644 --- a/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 @@ -65,7 +65,7 @@ * .build(); * CommitCursorResponse response = cursorServiceClient.commitCursor(request); * } - * }

+ * }
* *

Note: close() needs to be called on the CursorServiceClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). From 54f768770b735ad9849e6bebf86ef4be6658dde9 Mon Sep 17 00:00:00 2001 From: Alice Li Date: Wed, 10 Jan 2024 13:14:00 -0500 Subject: [PATCH 5/5] fix javadoc html manually --- .../com/google/cloud/pubsublite/v1/AdminServiceClient.java | 3 ++- .../com/google/cloud/pubsublite/v1/CursorServiceClient.java | 3 ++- .../cloud/pubsublite/v1/PartitionAssignmentServiceClient.java | 3 ++- .../com/google/cloud/pubsublite/v1/PublisherServiceClient.java | 3 ++- .../google/cloud/pubsublite/v1/SubscriberServiceClient.java | 3 ++- .../google/cloud/pubsublite/v1/TopicStatsServiceClient.java | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/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 index c5797dada..be3b63640 100644 --- a/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 @@ -98,10 +98,12 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * * * @@ -464,7 +466,6 @@ * * * - * *
Methods
MethodDescriptionMethod Variants
CreateTopic

Creates a new topic.

* *

See the individual methods for example code. diff --git a/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 index 79b5cbd32..d91989490 100644 --- a/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 @@ -71,10 +71,12 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * * * @@ -119,7 +121,6 @@ * * * - * *
Methods
MethodDescriptionMethod Variants
StreamingCommitCursor

Establishes a stream with the server for managing committed cursors.

* *

See the individual methods for example code. diff --git a/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 index 51f57fb04..a567d1ab1 100644 --- a/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 @@ -57,10 +57,12 @@ * calls close(). * * + * * * * * + * * * * * - * *
Methods
MethodDescriptionMethod Variants
AssignPartitions

Assign partitions for this client to handle for the specified subscription. @@ -72,7 +74,6 @@ * *

* *

See the individual methods for example code. diff --git a/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 index f4ba6e313..d3cd3ec59 100644 --- a/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 @@ -58,10 +58,12 @@ * close(). * * + * * * * * + * * * * @@ -72,7 +74,6 @@ * * * - * *
Methods
MethodDescriptionMethod Variants
Publish

Establishes a stream with the server for publishing messages. Once the stream is initialized, the client publishes messages by sending publish requests on the stream. The server responds with a PublishResponse for each PublishRequest sent by the client, in the same order that the requests 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.

* *

See the individual methods for example code. diff --git a/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 index 9d58df753..8444b29db 100644 --- a/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 @@ -56,10 +56,12 @@ * close(). * * + * * * * * + * * * * @@ -70,7 +72,6 @@ * * * - * *
Methods
MethodDescriptionMethod Variants
Subscribe

Establishes a stream with the server for receiving messages.

* *

See the individual methods for example code. diff --git a/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 index 6cd455a72..eefd7d6e5 100644 --- a/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 @@ -60,10 +60,12 @@ * close(). * * + * * * * * + * * * * @@ -106,7 +108,6 @@ * * * - * *
Methods
MethodDescriptionMethod Variants
ComputeMessageStats

Compute statistics about a range of messages in a given topic and partition.

* *

See the individual methods for example code.