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 369b6fce0..bd1e58a5f 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 @@ -31,7 +31,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 6d6516eb6..2e144837e 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 @@ -27,7 +27,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 8662ed4ea..c704f9ede 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 @@ -24,7 +24,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 b38b2ba4a..910857dd3 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 @@ -24,7 +24,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 1dcc94b63..0cd4da4c3 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 @@ -24,7 +24,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 a42504933..9a8542826 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 @@ -23,7 +23,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 e69b97b48..ca5abf08e 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 03b7ef67c..fbbd8becf 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 bb442610c..b013386e3 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/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java index a935e9f7d..41b943385 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java index 373322bd1..8d718bada 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java index c8d6c9197..157cd721e 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java index 2e961a394..f457d041f 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java index 09c50710b..98d09b1d0 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java index ffe707c6c..01ac92b09 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java index 9b1f0f28d..027bcb54e 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java index b114e4449..3d57a7b93 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java index 44584818c..e5797d937 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java index 033899f44..57d9ca3bc 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java index 6e257279b..e83e2e2f4 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java index 73a733441..a9f542e46 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java index c05dd702f..f8f8b04cb 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java index d5836a2c3..91f0fb818 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java index df1bd2e08..860e833d2 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java index 8848b4749..7d004ee99 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java index ad1476de4..b42273693 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java index df34ca094..5c0c39bb5 100644 --- a/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java +++ b/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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..2b025f822 --- /dev/null +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java @@ -0,0 +1,2582 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.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..ca61fa9c6 --- /dev/null +++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java @@ -0,0 +1,615 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.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..48700bb5b 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 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.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..3ffb3e872 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 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.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..f4fe804a3 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 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.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..b815dae9e
--- /dev/null
+++ b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java
@@ -0,0 +1,659 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.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 8a90e4173..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,2801 +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$Edition", - "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$FeatureSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", - "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$EditionDefault", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", - "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 41b943385..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 8d718bada..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 157cd721e..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 f457d041f..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 98d09b1d0..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 01ac92b09..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 027bcb54e..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 3d57a7b93..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 e5797d937..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 57d9ca3bc..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 e83e2e2f4..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 a9f542e46..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 f8f8b04cb..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 91f0fb818..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 860e833d2..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 7d004ee99..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 b42273693..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 5c0c39bb5..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 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 b42c98ddb..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 - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class AdminProto { - private AdminProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/pubsublite/v1/admin.proto" + - "\022\032google.cloud.pubsublite.v1\032\034google/api" + - "/annotations.proto\032\027google/api/client.pr" + - "oto\032\037google/api/field_behavior.proto\032\031go" + - "ogle/api/resource.proto\032\'google/cloud/pu" + - "bsublite/v1/common.proto\032#google/longrun" + - "ning/operations.proto\032\033google/protobuf/e" + - "mpty.proto\032 google/protobuf/field_mask.p" + - "roto\032\037google/protobuf/timestamp.proto\"\235\001" + - "\n\022CreateTopicRequest\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "5\n\005topic\030\002 \001(\0132!.google.cloud.pubsublite" + - ".v1.TopicB\003\340A\002\022\025\n\010topic_id\030\003 \001(\tB\003\340A\002\"H\n" + - "\017GetTopicRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" + - "pubsublite.googleapis.com/Topic\"R\n\031GetTo" + - "picPartitionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" + - "A!\n\037pubsublite.googleapis.com/Topic\"*\n\017T" + - "opicPartitions\022\027\n\017partition_count\030\001 \001(\003\"" + - "u\n\021ListTopicsRequest\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"`" + - "\n\022ListTopicsResponse\0221\n\006topics\030\001 \003(\0132!.g" + - "oogle.cloud.pubsublite.v1.Topic\022\027\n\017next_" + - "page_token\030\002 \001(\t\"\201\001\n\022UpdateTopicRequest\022" + - "5\n\005topic\030\001 \001(\0132!.google.cloud.pubsublite" + - ".v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + - "ogle.protobuf.FieldMaskB\003\340A\002\"K\n\022DeleteTo" + - "picRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037pubsub" + - "lite.googleapis.com/Topic\"}\n\035ListTopicSu" + - "bscriptionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" + - "\n\037pubsublite.googleapis.com/Topic\022\021\n\tpag" + - "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036List" + - "TopicSubscriptionsResponse\022\025\n\rsubscripti" + - "ons\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\317\001\n\031C" + - "reateSubscriptionRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022C\n\014subscription\030\002 \001(\0132(.google.cloud" + - ".pubsublite.v1.SubscriptionB\003\340A\002\022\034\n\017subs" + - "cription_id\030\003 \001(\tB\003\340A\002\022\024\n\014skip_backlog\030\004" + - " \001(\010\"V\n\026GetSubscriptionRequest\022<\n\004name\030\001" + - " \001(\tB.\340A\002\372A(\n&pubsublite.googleapis.com/" + - "Subscription\"|\n\030ListSubscriptionsRequest" + - "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + - "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + - "\n\npage_token\030\003 \001(\t\"u\n\031ListSubscriptionsR" + - "esponse\022?\n\rsubscriptions\030\001 \003(\0132(.google." + - "cloud.pubsublite.v1.Subscription\022\027\n\017next" + - "_page_token\030\002 \001(\t\"\226\001\n\031UpdateSubscription" + - "Request\022C\n\014subscription\030\001 \001(\0132(.google.c" + - "loud.pubsublite.v1.SubscriptionB\003\340A\002\0224\n\013" + - "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + - "dMaskB\003\340A\002\"Y\n\031DeleteSubscriptionRequest\022" + - "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.google" + - "apis.com/Subscription\"\272\002\n\027SeekSubscripti" + - "onRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsubl" + - "ite.googleapis.com/Subscription\022W\n\014named" + - "_target\030\002 \001(\0162?.google.cloud.pubsublite." + - "v1.SeekSubscriptionRequest.NamedTargetH\000" + - "\022=\n\013time_target\030\003 \001(\0132&.google.cloud.pub" + - "sublite.v1.TimeTargetH\000\"?\n\013NamedTarget\022\034" + - "\n\030NAMED_TARGET_UNSPECIFIED\020\000\022\010\n\004TAIL\020\001\022\010" + - "\n\004HEAD\020\002B\010\n\006target\"\032\n\030SeekSubscriptionRe" + - "sponse\"\220\001\n\021OperationMetadata\022/\n\013create_t" + - "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + - "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + - "amp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\"\265\001\n\030Cr" + - "eateReservationRequest\0229\n\006parent\030\001 \001(\tB)" + - "\340A\002\372A#\n!locations.googleapis.com/Locatio" + - "n\022A\n\013reservation\030\002 \001(\0132\'.google.cloud.pu" + - "bsublite.v1.ReservationB\003\340A\002\022\033\n\016reservat" + - "ion_id\030\003 \001(\tB\003\340A\002\"T\n\025GetReservationReque" + - "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + - "gleapis.com/Reservation\"{\n\027ListReservati" + - "onsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + - "tions.googleapis.com/Location\022\021\n\tpage_si" + - "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n\030ListRese" + - "rvationsResponse\022=\n\014reservations\030\001 \003(\0132\'" + - ".google.cloud.pubsublite.v1.Reservation\022" + - "\027\n\017next_page_token\030\002 \001(\t\"\223\001\n\030UpdateReser" + - "vationRequest\022A\n\013reservation\030\001 \001(\0132\'.goo" + - "gle.cloud.pubsublite.v1.ReservationB\003\340A\002" + - "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + - "FieldMaskB\003\340A\002\"W\n\030DeleteReservationReque" + - "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + - "gleapis.com/Reservation\"\202\001\n\034ListReservat" + - "ionTopicsRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + - "pubsublite.googleapis.com/Reservation\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035" + - "ListReservationTopicsResponse\022\016\n\006topics\030" + - "\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\257\036\n\014Admin" + - "Service\022\271\001\n\013CreateTopic\022..google.cloud.p" + - "ubsublite.v1.CreateTopicRequest\032!.google" + - ".cloud.pubsublite.v1.Topic\"W\332A\025parent,to" + - "pic,topic_id\202\323\344\223\0029\"0/v1/admin/{parent=pr" + - "ojects/*/locations/*}/topics:\005topic\022\233\001\n\010" + - "GetTopic\022+.google.cloud.pubsublite.v1.Ge" + - "tTopicRequest\032!.google.cloud.pubsublite." + - "v1.Topic\"?\332A\004name\202\323\344\223\0022\0220/v1/admin/{name" + - "=projects/*/locations/*/topics/*}\022\304\001\n\022Ge" + - "tTopicPartitions\0225.google.cloud.pubsubli" + - "te.v1.GetTopicPartitionsRequest\032+.google" + - ".cloud.pubsublite.v1.TopicPartitions\"J\332A" + - "\004name\202\323\344\223\002=\022;/v1/admin/{name=projects/*/" + - "locations/*/topics/*}/partitions\022\256\001\n\nLis" + - "tTopics\022-.google.cloud.pubsublite.v1.Lis" + - "tTopicsRequest\032..google.cloud.pubsublite" + - ".v1.ListTopicsResponse\"A\332A\006parent\202\323\344\223\0022\022" + - "0/v1/admin/{parent=projects/*/locations/" + - "*}/topics\022\273\001\n\013UpdateTopic\022..google.cloud" + - ".pubsublite.v1.UpdateTopicRequest\032!.goog" + - "le.cloud.pubsublite.v1.Topic\"Y\332A\021topic,u" + - "pdate_mask\202\323\344\223\002?26/v1/admin/{topic.name=" + - "projects/*/locations/*/topics/*}:\005topic\022" + - "\226\001\n\013DeleteTopic\022..google.cloud.pubsublit" + - "e.v1.DeleteTopicRequest\032\026.google.protobu" + - "f.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/admin/{name=" + - "projects/*/locations/*/topics/*}\022\336\001\n\026Lis" + - "tTopicSubscriptions\0229.google.cloud.pubsu" + - "blite.v1.ListTopicSubscriptionsRequest\032:" + - ".google.cloud.pubsublite.v1.ListTopicSub" + - "scriptionsResponse\"M\332A\004name\202\323\344\223\002@\022>/v1/a" + - "dmin/{name=projects/*/locations/*/topics" + - "/*}/subscriptions\022\352\001\n\022CreateSubscription" + - "\0225.google.cloud.pubsublite.v1.CreateSubs" + - "criptionRequest\032(.google.cloud.pubsublit" + - "e.v1.Subscription\"s\332A#parent,subscriptio" + - "n,subscription_id\202\323\344\223\002G\"7/v1/admin/{pare" + - "nt=projects/*/locations/*}/subscriptions" + - ":\014subscription\022\267\001\n\017GetSubscription\0222.goo" + - "gle.cloud.pubsublite.v1.GetSubscriptionR" + - "equest\032(.google.cloud.pubsublite.v1.Subs" + - "cription\"F\332A\004name\202\323\344\223\0029\0227/v1/admin/{name" + - "=projects/*/locations/*/subscriptions/*}" + - "\022\312\001\n\021ListSubscriptions\0224.google.cloud.pu" + - "bsublite.v1.ListSubscriptionsRequest\0325.g" + - "oogle.cloud.pubsublite.v1.ListSubscripti" + - "onsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/admin/" + - "{parent=projects/*/locations/*}/subscrip" + - "tions\022\354\001\n\022UpdateSubscription\0225.google.cl" + - "oud.pubsublite.v1.UpdateSubscriptionRequ" + - "est\032(.google.cloud.pubsublite.v1.Subscri" + - "ption\"u\332A\030subscription,update_mask\202\323\344\223\002T" + - "2D/v1/admin/{subscription.name=projects/" + - "*/locations/*/subscriptions/*}:\014subscrip" + - "tion\022\253\001\n\022DeleteSubscription\0225.google.clo" + - "ud.pubsublite.v1.DeleteSubscriptionReque" + - "st\032\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\002" + - "9*7/v1/admin/{name=projects/*/locations/" + - "*/subscriptions/*}\022\337\001\n\020SeekSubscription\022" + - "3.google.cloud.pubsublite.v1.SeekSubscri" + - "ptionRequest\032\035.google.longrunning.Operat" + - "ion\"w\312A-\n\030SeekSubscriptionResponse\022\021Oper" + - "ationMetadata\202\323\344\223\002A\"cloud.google.com/go/pubsub" + - "lite/apiv1/pubsublitepb;pubsublitepb\252\002\032G" + - "oogle.Cloud.PubSubLite.V1\312\002\032Google\\Cloud" + - "\\PubSubLite\\V1\352\002\035Google::Cloud::PubSubLi" + - "te::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor, - new java.lang.String[] { "Parent", "Topic", "TopicId", }); - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor, - new java.lang.String[] { "PartitionCount", }); - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor, - new java.lang.String[] { "Topics", "NextPageToken", }); - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor, - new java.lang.String[] { "Topic", "UpdateMask", }); - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor, - new java.lang.String[] { "Name", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor, - new java.lang.String[] { "Subscriptions", "NextPageToken", }); - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor, - new java.lang.String[] { "Parent", "Subscription", "SubscriptionId", "SkipBacklog", }); - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor, - new java.lang.String[] { "Subscriptions", "NextPageToken", }); - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor, - new java.lang.String[] { "Subscription", "UpdateMask", }); - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor, - new java.lang.String[] { "Name", "NamedTarget", "TimeTarget", "Target", }); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", }); - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor, - new java.lang.String[] { "Parent", "Reservation", "ReservationId", }); - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor, - new java.lang.String[] { "Reservations", "NextPageToken", }); - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor, - new java.lang.String[] { "Reservation", "UpdateMask", }); - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor, - new java.lang.String[] { "Name", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor, - new java.lang.String[] { "Topics", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java deleted file mode 100644 index 6cf961d66..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -// Protobuf Java Version: 3.25.2 -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 8e7961c8f..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java +++ /dev/null @@ -1,302 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/common.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class CommonProto { - private CommonProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/pubsublite/v1/common.prot" + - "o\022\032google.cloud.pubsublite.v1\032\037google/ap" + - "i/field_behavior.proto\032\031google/api/resou" + - "rce.proto\032\036google/protobuf/duration.prot" + - "o\032\037google/protobuf/timestamp.proto\"!\n\017At" + - "tributeValues\022\016\n\006values\030\001 \003(\014\"\211\002\n\rPubSub" + - "Message\022\013\n\003key\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022M\n\nat" + - "tributes\030\003 \003(\01329.google.cloud.pubsublite" + - ".v1.PubSubMessage.AttributesEntry\022.\n\neve" + - "nt_time\030\004 \001(\0132\032.google.protobuf.Timestam" + - "p\032^\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005val" + - "ue\030\002 \001(\0132+.google.cloud.pubsublite.v1.At" + - "tributeValues:\0028\001\"\030\n\006Cursor\022\016\n\006offset\030\001 " + - "\001(\003\"\310\001\n\020SequencedMessage\0222\n\006cursor\030\001 \001(\013" + - "2\".google.cloud.pubsublite.v1.Cursor\0220\n\014" + - "publish_time\030\002 \001(\0132\032.google.protobuf.Tim" + - "estamp\022:\n\007message\030\003 \001(\0132).google.cloud.p" + - "ubsublite.v1.PubSubMessage\022\022\n\nsize_bytes" + - "\030\004 \001(\003\"\250\001\n\013Reservation\022\014\n\004name\030\001 \001(\t\022\033\n\023" + - "throughput_capacity\030\002 \001(\003:n\352Ak\n%pubsubli" + - "te.googleapis.com/Reservation\022Bprojects/" + - "{project}/locations/{location}/reservati" + - "ons/{reservation}\"\367\005\n\005Topic\022\014\n\004name\030\001 \001(" + - "\t\022K\n\020partition_config\030\002 \001(\01321.google.clo" + - "ud.pubsublite.v1.Topic.PartitionConfig\022K" + - "\n\020retention_config\030\003 \001(\01321.google.cloud." + - "pubsublite.v1.Topic.RetentionConfig\022O\n\022r" + - "eservation_config\030\004 \001(\01323.google.cloud.p" + - "ubsublite.v1.Topic.ReservationConfig\032\332\001\n" + - "\017PartitionConfig\022\r\n\005count\030\001 \001(\003\022\023\n\005scale" + - "\030\002 \001(\005B\002\030\001H\000\022N\n\010capacity\030\003 \001(\0132:.google." + - "cloud.pubsublite.v1.Topic.PartitionConfi" + - "g.CapacityH\000\032F\n\010Capacity\022\033\n\023publish_mib_" + - "per_sec\030\001 \001(\005\022\035\n\025subscribe_mib_per_sec\030\002" + - " \001(\005B\013\n\tdimension\032Y\n\017RetentionConfig\022\033\n\023" + - "per_partition_bytes\030\001 \001(\003\022)\n\006period\030\002 \001(" + - "\0132\031.google.protobuf.Duration\032_\n\021Reservat" + - "ionConfig\022J\n\026throughput_reservation\030\001 \001(" + - "\tB*\372A\'\n%pubsublite.googleapis.com/Reserv" + - "ation:\\\352AY\n\037pubsublite.googleapis.com/To" + - "pic\0226projects/{project}/locations/{locat" + - "ion}/topics/{topic}\"\305\004\n\014Subscription\022\014\n\004" + - "name\030\001 \001(\t\0223\n\005topic\030\002 \001(\tB$\372A!\n\037pubsubli" + - "te.googleapis.com/Topic\022P\n\017delivery_conf" + - "ig\030\003 \001(\01327.google.cloud.pubsublite.v1.Su" + - "bscription.DeliveryConfig\022?\n\rexport_conf" + - "ig\030\004 \001(\0132(.google.cloud.pubsublite.v1.Ex" + - "portConfig\032\353\001\n\016DeliveryConfig\022i\n\024deliver" + - "y_requirement\030\003 \001(\0162K.google.cloud.pubsu" + - "blite.v1.Subscription.DeliveryConfig.Del" + - "iveryRequirement\"n\n\023DeliveryRequirement\022" + - "$\n DELIVERY_REQUIREMENT_UNSPECIFIED\020\000\022\027\n" + - "\023DELIVER_IMMEDIATELY\020\001\022\030\n\024DELIVER_AFTER_" + - "STORED\020\002:q\352An\n&pubsublite.googleapis.com" + - "/Subscription\022Dprojects/{project}/locati" + - "ons/{location}/subscriptions/{subscripti" + - "on}\"\301\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " + - "\001(\0162..google.cloud.pubsublite.v1.ExportC" + - "onfig.State\022J\n\rcurrent_state\030\006 \001(\0162..goo" + - "gle.cloud.pubsublite.v1.ExportConfig.Sta" + - "teB\003\340A\003\022B\n\021dead_letter_topic\030\005 \001(\tB\'\340A\001\372" + - "A!\n\037pubsublite.googleapis.com/Topic\022N\n\rp" + - "ubsub_config\030\003 \001(\01325.google.cloud.pubsub" + - "lite.v1.ExportConfig.PubSubConfigH\000\032\035\n\014P" + - "ubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n\021S" + - "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUSED" + - "\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND\020\004" + - "B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publish" + - "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" + - "\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobuf." + - "TimestampH\000B\006\n\004timeB\317\001\n!com.google.cloud" + - ".pubsublite.protoB\013CommonProtoP\001Z>cloud." + - "google.com/go/pubsublite/apiv1/pubsublit" + - "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + - "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + - "Google::Cloud::PubSubLite::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor, - new java.lang.String[] { "Values", }); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor, - new java.lang.String[] { "Key", "Data", "Attributes", "EventTime", }); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor = - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor, - new java.lang.String[] { "Offset", }); - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor, - new java.lang.String[] { "Cursor", "PublishTime", "Message", "SizeBytes", }); - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor, - new java.lang.String[] { "Name", "ThroughputCapacity", }); - internal_static_google_cloud_pubsublite_v1_Topic_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_descriptor, - new java.lang.String[] { "Name", "PartitionConfig", "RetentionConfig", "ReservationConfig", }); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor, - new java.lang.String[] { "Count", "Scale", "Capacity", "Dimension", }); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor, - new java.lang.String[] { "PublishMibPerSec", "SubscribeMibPerSec", }); - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor, - new java.lang.String[] { "PerPartitionBytes", "Period", }); - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor, - new java.lang.String[] { "ThroughputReservation", }); - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor, - new java.lang.String[] { "Name", "Topic", "DeliveryConfig", "ExportConfig", }); - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor, - new java.lang.String[] { "DeliveryRequirement", }); - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor, - new java.lang.String[] { "DesiredState", "CurrentState", "DeadLetterTopic", "PubsubConfig", "Destination", }); - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor, - new java.lang.String[] { "Topic", }); - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor, - new java.lang.String[] { "PublishTime", "EventTime", "Time", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java deleted file mode 100644 index 001ee13a3..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/topic_stats.proto - -// Protobuf Java Version: 3.25.2 -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 2c32a4580..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/common.proto - -// Protobuf Java Version: 3.25.2 -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 571d4e274..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java +++ /dev/null @@ -1,233 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class CursorProto { - private CursorProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/pubsublite/v1/cursor.prot" + - "o\022\032google.cloud.pubsublite.v1\032\034google/ap" + - "i/annotations.proto\032\027google/api/client.p" + - "roto\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\032\'google/cloud/p" + - "ubsublite/v1/common.proto\"E\n\032InitialComm" + - "itCursorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n" + - "\tpartition\030\002 \001(\003\"\035\n\033InitialCommitCursorR" + - "esponse\"R\n\034SequencedCommitCursorRequest\022" + - "2\n\006cursor\030\001 \001(\0132\".google.cloud.pubsublit" + - "e.v1.Cursor\"=\n\035SequencedCommitCursorResp" + - "onse\022\034\n\024acknowledged_commits\030\001 \001(\003\"\300\001\n\034S" + - "treamingCommitCursorRequest\022I\n\007initial\030\001" + - " \001(\01326.google.cloud.pubsublite.v1.Initia" + - "lCommitCursorRequestH\000\022J\n\006commit\030\002 \001(\01328" + - ".google.cloud.pubsublite.v1.SequencedCom" + - "mitCursorRequestH\000B\t\n\007request\"\303\001\n\035Stream" + - "ingCommitCursorResponse\022J\n\007initial\030\001 \001(\013" + - "27.google.cloud.pubsublite.v1.InitialCom" + - "mitCursorResponseH\000\022K\n\006commit\030\002 \001(\01329.go" + - "ogle.cloud.pubsublite.v1.SequencedCommit" + - "CursorResponseH\000B\t\n\007request\"r\n\023CommitCur" + - "sorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n\tpart" + - "ition\030\002 \001(\003\0222\n\006cursor\030\003 \001(\0132\".google.clo" + - "ud.pubsublite.v1.Cursor\"\026\n\024CommitCursorR" + - "esponse\"\204\001\n\033ListPartitionCursorsRequest\022" + - ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.goog" + - "leapis.com/Subscription\022\021\n\tpage_size\030\002 \001" + - "(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurso" + - "r\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\".g" + - "oogle.cloud.pubsublite.v1.Cursor\"\177\n\034List" + - "PartitionCursorsResponse\022F\n\021partition_cu" + - "rsors\030\001 \003(\0132+.google.cloud.pubsublite.v1" + - ".PartitionCursor\022\027\n\017next_page_token\030\002 \001(" + - "\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommitC" + - "ursor\0228.google.cloud.pubsublite.v1.Strea" + - "mingCommitCursorRequest\0329.google.cloud.p" + - "ubsublite.v1.StreamingCommitCursorRespon" + - "se\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.cloud" + - ".pubsublite.v1.CommitCursorRequest\0320.goo" + - "gle.cloud.pubsublite.v1.CommitCursorResp" + - "onse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=p" + - "rojects/*/locations/*/subscriptions/*}:c" + - "ommitCursor:\001*\022\336\001\n\024ListPartitionCursors\022" + - "7.google.cloud.pubsublite.v1.ListPartiti" + - "onCursorsRequest\0328.google.cloud.pubsubli" + - "te.v1.ListPartitionCursorsResponse\"S\332A\006p" + - "arent\202\323\344\223\002D\022B/v1/cursor/{parent=projects" + - "/*/locations/*/subscriptions/*}/cursors\032" + - "M\312A\031pubsublite.googleapis.com\322A.https://" + - "www.googleapis.com/auth/cloud-platformB\317" + - "\001\n!com.google.cloud.pubsublite.protoB\013Cu" + - "rsorProtoP\001Z>cloud.google.com/go/pubsubl" + - "ite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252\002" + - "\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Clo" + - "ud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSub" + - "Lite::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor, - new java.lang.String[] { "Subscription", "Partition", }); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor, - new java.lang.String[] { "Cursor", }); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor, - new java.lang.String[] { "AcknowledgedCommits", }); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor, - new java.lang.String[] { "Initial", "Commit", "Request", }); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor, - new java.lang.String[] { "Initial", "Commit", "Request", }); - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor, - new java.lang.String[] { "Subscription", "Partition", "Cursor", }); - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor, - new java.lang.String[] { "Partition", "Cursor", }); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor, - new java.lang.String[] { "PartitionCursors", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java deleted file mode 100644 index 58e69a90d..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -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 ab3a4f5ec..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -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 d7948f808..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -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 56c655ea4..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -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 c13dcb367..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -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 3c46ffbde..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -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 71441b8c7..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -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 6548ecc40..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -// Protobuf Java Version: 3.25.2 -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 efe8e1604..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/publisher.proto - -// Protobuf Java Version: 3.25.2 -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 cbca1419d..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/subscriber.proto - -// Protobuf Java Version: 3.25.2 -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 d1737469c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java +++ /dev/null @@ -1,162 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/publisher.proto - -// Protobuf Java Version: 3.25.2 -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 07c33a401..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -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/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 71f209b17..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java +++ /dev/null @@ -1,241 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/subscriber.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class SubscriberProto { - private SubscriberProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/pubsublite/v1/subscriber." + - "proto\022\032google.cloud.pubsublite.v1\032\034googl" + - "e/api/annotations.proto\032\027google/api/clie" + - "nt.proto\032\037google/api/field_behavior.prot" + - "o\032\'google/cloud/pubsublite/v1/common.pro" + - "to\"\212\001\n\027InitialSubscribeRequest\022\024\n\014subscr" + - "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022F\n\020initi" + - "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" + - "ite.v1.SeekRequestB\003\340A\001\"N\n\030InitialSubscr" + - "ibeResponse\0222\n\006cursor\030\001 \001(\0132\".google.clo" + - "ud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest\022" + - "K\n\014named_target\030\001 \001(\01623.google.cloud.pub" + - "sublite.v1.SeekRequest.NamedTargetH\000\0224\n\006" + - "cursor\030\002 \001(\0132\".google.cloud.pubsublite.v" + - "1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARGE" + - "T_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_C" + - "URSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cur" + - "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + - "ursor\"E\n\022FlowControlRequest\022\030\n\020allowed_m" + - "essages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001\n" + - "\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.goo" + - "gle.cloud.pubsublite.v1.InitialSubscribe" + - "RequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud.p" + - "ubsublite.v1.SeekRequestH\000\022F\n\014flow_contr" + - "ol\030\003 \001(\0132..google.cloud.pubsublite.v1.Fl" + - "owControlRequestH\000B\t\n\007request\"Q\n\017Message" + - "Response\022>\n\010messages\030\001 \003(\0132,.google.clou" + - "d.pubsublite.v1.SequencedMessage\"\343\001\n\021Sub" + - "scribeResponse\022G\n\007initial\030\001 \001(\01324.google" + - ".cloud.pubsublite.v1.InitialSubscribeRes" + - "ponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pub" + - "sublite.v1.SeekResponseH\000\022?\n\010messages\030\003 " + - "\001(\0132+.google.cloud.pubsublite.v1.Message" + - "ResponseH\000B\n\n\010response\"L\n!InitialPartiti" + - "onAssignmentRequest\022\024\n\014subscription\030\001 \001(" + - "\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssignm" + - "ent\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAssi" + - "gnmentAck\"\274\001\n\032PartitionAssignmentRequest" + - "\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsubl" + - "ite.v1.InitialPartitionAssignmentRequest" + - "H\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsublit" + - "e.v1.PartitionAssignmentAckH\000B\t\n\007request" + - "2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.go" + - "ogle.cloud.pubsublite.v1.SubscribeReques" + - "t\032-.google.cloud.pubsublite.v1.Subscribe" + - "Response\"\000(\0010\001\032M\312A\031pubsublite.googleapis" + - ".com\322A.https://www.googleapis.com/auth/c" + - "loud-platform2\357\001\n\032PartitionAssignmentSer" + - "vice\022\201\001\n\020AssignPartitions\0226.google.cloud" + - ".pubsublite.v1.PartitionAssignmentReques" + - "t\032/.google.cloud.pubsublite.v1.Partition" + - "Assignment\"\000(\0010\001\032M\312A\031pubsublite.googleap" + - "is.com\322A.https://www.googleapis.com/auth" + - "/cloud-platformB\323\001\n!com.google.cloud.pub" + - "sublite.protoB\017SubscriberProtoP\001Z>cloud." + - "google.com/go/pubsublite/apiv1/pubsublit" + - "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + - "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + - "Google::Cloud::PubSubLite::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor, - new java.lang.String[] { "Subscription", "Partition", "InitialLocation", }); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor, - new java.lang.String[] { "Cursor", }); - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor, - new java.lang.String[] { "NamedTarget", "Cursor", "Target", }); - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor, - new java.lang.String[] { "Cursor", }); - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor, - new java.lang.String[] { "AllowedMessages", "AllowedBytes", }); - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor, - new java.lang.String[] { "Initial", "Seek", "FlowControl", "Request", }); - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor, - new java.lang.String[] { "Messages", }); - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor, - new java.lang.String[] { "Initial", "Seek", "Messages", "Response", }); - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor, - new java.lang.String[] { "Subscription", "ClientId", }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor, - new java.lang.String[] { "Partitions", }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor, - new java.lang.String[] { "Initial", "Ack", "Request", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java deleted file mode 100644 index f76def6dd..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -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 0a40457ef..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java +++ /dev/null @@ -1,175 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/topic_stats.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class TopicStatsProto { - private TopicStatsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/pubsublite/v1/topic_stats" + - ".proto\022\032google.cloud.pubsublite.v1\032\034goog" + - "le/api/annotations.proto\032\027google/api/cli" + - "ent.proto\032\037google/api/field_behavior.pro" + - "to\032\031google/api/resource.proto\032\'google/cl" + - "oud/pubsublite/v1/common.proto\032\037google/p" + - "rotobuf/timestamp.proto\"\336\001\n\032ComputeMessa" + - "geStatsRequest\0226\n\005topic\030\001 \001(\tB\'\340A\002\372A!\n\037p" + - "ubsublite.googleapis.com/Topic\022\026\n\tpartit" + - "ion\030\002 \001(\003B\003\340A\002\0228\n\014start_cursor\030\003 \001(\0132\".g" + - "oogle.cloud.pubsublite.v1.Cursor\0226\n\nend_" + - "cursor\030\004 \001(\0132\".google.cloud.pubsublite.v" + - "1.Cursor\"\275\001\n\033ComputeMessageStatsResponse" + - "\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_bytes" + - "\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032.g" + - "oogle.protobuf.Timestamp\0226\n\022minimum_even" + - "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + - "\"j\n\030ComputeHeadCursorRequest\0226\n\005topic\030\001 " + - "\001(\tB\'\340A\002\372A!\n\037pubsublite.googleapis.com/T" + - "opic\022\026\n\tpartition\030\002 \001(\003B\003\340A\002\"T\n\031ComputeH" + - "eadCursorResponse\0227\n\013head_cursor\030\001 \001(\0132\"" + - ".google.cloud.pubsublite.v1.Cursor\"\247\001\n\030C" + - "omputeTimeCursorRequest\0226\n\005topic\030\001 \001(\tB\'" + - "\340A\002\372A!\n\037pubsublite.googleapis.com/Topic\022" + - "\026\n\tpartition\030\002 \001(\003B\003\340A\002\022;\n\006target\030\003 \001(\0132" + - "&.google.cloud.pubsublite.v1.TimeTargetB" + - "\003\340A\002\"O\n\031ComputeTimeCursorResponse\0222\n\006cur" + - "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + - "ursor2\362\005\n\021TopicStatsService\022\335\001\n\023ComputeM" + - "essageStats\0226.google.cloud.pubsublite.v1" + - ".ComputeMessageStatsRequest\0327.google.clo" + - "ud.pubsublite.v1.ComputeMessageStatsResp" + - "onse\"U\202\323\344\223\002O\"J/v1/topicStats/{topic=proj" + - "ects/*/locations/*/topics/*}:computeMess" + - "ageStats:\001*\022\325\001\n\021ComputeHeadCursor\0224.goog" + - "le.cloud.pubsublite.v1.ComputeHeadCursor" + - "Request\0325.google.cloud.pubsublite.v1.Com" + - "puteHeadCursorResponse\"S\202\323\344\223\002M\"H/v1/topi" + - "cStats/{topic=projects/*/locations/*/top" + - "ics/*}:computeHeadCursor:\001*\022\325\001\n\021ComputeT" + - "imeCursor\0224.google.cloud.pubsublite.v1.C" + - "omputeTimeCursorRequest\0325.google.cloud.p" + - "ubsublite.v1.ComputeTimeCursorResponse\"S" + - "\202\323\344\223\002M\"H/v1/topicStats/{topic=projects/*" + - "/locations/*/topics/*}:computeTimeCursor" + - ":\001*\032M\312A\031pubsublite.googleapis.com\322A.http" + - "s://www.googleapis.com/auth/cloud-platfo" + - "rmB\320\001\n!com.google.cloud.pubsublite.proto" + - "B\017TopicStatsProtoP\001Z>cloud.google.com/go" + - "/pubsublite/apiv1/pubsublitepb;pubsublit" + - "epb\252\002\032Google.Cloud.PubSubLite.V1\312\002\032Googl" + - "e\\Cloud\\PubSubLite\\V1\352\002\035Google::Cloud::P" + - "ubSubLite::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor, - new java.lang.String[] { "Topic", "Partition", "StartCursor", "EndCursor", }); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor, - new java.lang.String[] { "MessageCount", "MessageBytes", "MinimumPublishTime", "MinimumEventTime", }); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor, - new java.lang.String[] { "Topic", "Partition", }); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor, - new java.lang.String[] { "HeadCursor", }); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor, - new java.lang.String[] { "Topic", "Partition", "Target", }); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor, - new java.lang.String[] { "Cursor", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java new file mode 100644 index 000000000..e2c6a6fc5 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java @@ -0,0 +1,593 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class AdminProto { + private AdminProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/pubsublite/v1/admin.proto" + + "\022\032google.cloud.pubsublite.v1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\'google/cloud/pu" + + "bsublite/v1/common.proto\032#google/longrun" + + "ning/operations.proto\032\033google/protobuf/e" + + "mpty.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"\235\001" + + "\n\022CreateTopicRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "5\n\005topic\030\002 \001(\0132!.google.cloud.pubsublite" + + ".v1.TopicB\003\340A\002\022\025\n\010topic_id\030\003 \001(\tB\003\340A\002\"H\n" + + "\017GetTopicRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" + + "pubsublite.googleapis.com/Topic\"R\n\031GetTo" + + "picPartitionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" + + "A!\n\037pubsublite.googleapis.com/Topic\"*\n\017T" + + "opicPartitions\022\027\n\017partition_count\030\001 \001(\003\"" + + "u\n\021ListTopicsRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"`" + + "\n\022ListTopicsResponse\0221\n\006topics\030\001 \003(\0132!.g" + + "oogle.cloud.pubsublite.v1.Topic\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\201\001\n\022UpdateTopicRequest\022" + + "5\n\005topic\030\001 \001(\0132!.google.cloud.pubsublite" + + ".v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"K\n\022DeleteTo" + + "picRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037pubsub" + + "lite.googleapis.com/Topic\"}\n\035ListTopicSu" + + "bscriptionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" + + "\n\037pubsublite.googleapis.com/Topic\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036List" + + "TopicSubscriptionsResponse\022\025\n\rsubscripti" + + "ons\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\317\001\n\031C" + + "reateSubscriptionRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022C\n\014subscription\030\002 \001(\0132(.google.cloud" + + ".pubsublite.v1.SubscriptionB\003\340A\002\022\034\n\017subs" + + "cription_id\030\003 \001(\tB\003\340A\002\022\024\n\014skip_backlog\030\004" + + " \001(\010\"V\n\026GetSubscriptionRequest\022<\n\004name\030\001" + + " \001(\tB.\340A\002\372A(\n&pubsublite.googleapis.com/" + + "Subscription\"|\n\030ListSubscriptionsRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"u\n\031ListSubscriptionsR" + + "esponse\022?\n\rsubscriptions\030\001 \003(\0132(.google." + + "cloud.pubsublite.v1.Subscription\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\226\001\n\031UpdateSubscription" + + "Request\022C\n\014subscription\030\001 \001(\0132(.google.c" + + "loud.pubsublite.v1.SubscriptionB\003\340A\002\0224\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\"Y\n\031DeleteSubscriptionRequest\022" + + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.google" + + "apis.com/Subscription\"\272\002\n\027SeekSubscripti" + + "onRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsubl" + + "ite.googleapis.com/Subscription\022W\n\014named" + + "_target\030\002 \001(\0162?.google.cloud.pubsublite." + + "v1.SeekSubscriptionRequest.NamedTargetH\000" + + "\022=\n\013time_target\030\003 \001(\0132&.google.cloud.pub" + + "sublite.v1.TimeTargetH\000\"?\n\013NamedTarget\022\034" + + "\n\030NAMED_TARGET_UNSPECIFIED\020\000\022\010\n\004TAIL\020\001\022\010" + + "\n\004HEAD\020\002B\010\n\006target\"\032\n\030SeekSubscriptionRe" + + "sponse\"\220\001\n\021OperationMetadata\022/\n\013create_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\"\265\001\n\030Cr" + + "eateReservationRequest\0229\n\006parent\030\001 \001(\tB)" + + "\340A\002\372A#\n!locations.googleapis.com/Locatio" + + "n\022A\n\013reservation\030\002 \001(\0132\'.google.cloud.pu" + + "bsublite.v1.ReservationB\003\340A\002\022\033\n\016reservat" + + "ion_id\030\003 \001(\tB\003\340A\002\"T\n\025GetReservationReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + + "gleapis.com/Reservation\"{\n\027ListReservati" + + "onsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + + "tions.googleapis.com/Location\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n\030ListRese" + + "rvationsResponse\022=\n\014reservations\030\001 \003(\0132\'" + + ".google.cloud.pubsublite.v1.Reservation\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\223\001\n\030UpdateReser" + + "vationRequest\022A\n\013reservation\030\001 \001(\0132\'.goo" + + "gle.cloud.pubsublite.v1.ReservationB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"W\n\030DeleteReservationReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + + "gleapis.com/Reservation\"\202\001\n\034ListReservat" + + "ionTopicsRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + + "pubsublite.googleapis.com/Reservation\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035" + + "ListReservationTopicsResponse\022\016\n\006topics\030" + + "\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\257\036\n\014Admin" + + "Service\022\271\001\n\013CreateTopic\022..google.cloud.p" + + "ubsublite.v1.CreateTopicRequest\032!.google" + + ".cloud.pubsublite.v1.Topic\"W\332A\025parent,to" + + "pic,topic_id\202\323\344\223\0029\"0/v1/admin/{parent=pr" + + "ojects/*/locations/*}/topics:\005topic\022\233\001\n\010" + + "GetTopic\022+.google.cloud.pubsublite.v1.Ge" + + "tTopicRequest\032!.google.cloud.pubsublite." + + "v1.Topic\"?\332A\004name\202\323\344\223\0022\0220/v1/admin/{name" + + "=projects/*/locations/*/topics/*}\022\304\001\n\022Ge" + + "tTopicPartitions\0225.google.cloud.pubsubli" + + "te.v1.GetTopicPartitionsRequest\032+.google" + + ".cloud.pubsublite.v1.TopicPartitions\"J\332A" + + "\004name\202\323\344\223\002=\022;/v1/admin/{name=projects/*/" + + "locations/*/topics/*}/partitions\022\256\001\n\nLis" + + "tTopics\022-.google.cloud.pubsublite.v1.Lis" + + "tTopicsRequest\032..google.cloud.pubsublite" + + ".v1.ListTopicsResponse\"A\332A\006parent\202\323\344\223\0022\022" + + "0/v1/admin/{parent=projects/*/locations/" + + "*}/topics\022\273\001\n\013UpdateTopic\022..google.cloud" + + ".pubsublite.v1.UpdateTopicRequest\032!.goog" + + "le.cloud.pubsublite.v1.Topic\"Y\332A\021topic,u" + + "pdate_mask\202\323\344\223\002?26/v1/admin/{topic.name=" + + "projects/*/locations/*/topics/*}:\005topic\022" + + "\226\001\n\013DeleteTopic\022..google.cloud.pubsublit" + + "e.v1.DeleteTopicRequest\032\026.google.protobu" + + "f.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/admin/{name=" + + "projects/*/locations/*/topics/*}\022\336\001\n\026Lis" + + "tTopicSubscriptions\0229.google.cloud.pubsu" + + "blite.v1.ListTopicSubscriptionsRequest\032:" + + ".google.cloud.pubsublite.v1.ListTopicSub" + + "scriptionsResponse\"M\332A\004name\202\323\344\223\002@\022>/v1/a" + + "dmin/{name=projects/*/locations/*/topics" + + "/*}/subscriptions\022\352\001\n\022CreateSubscription" + + "\0225.google.cloud.pubsublite.v1.CreateSubs" + + "criptionRequest\032(.google.cloud.pubsublit" + + "e.v1.Subscription\"s\332A#parent,subscriptio" + + "n,subscription_id\202\323\344\223\002G\"7/v1/admin/{pare" + + "nt=projects/*/locations/*}/subscriptions" + + ":\014subscription\022\267\001\n\017GetSubscription\0222.goo" + + "gle.cloud.pubsublite.v1.GetSubscriptionR" + + "equest\032(.google.cloud.pubsublite.v1.Subs" + + "cription\"F\332A\004name\202\323\344\223\0029\0227/v1/admin/{name" + + "=projects/*/locations/*/subscriptions/*}" + + "\022\312\001\n\021ListSubscriptions\0224.google.cloud.pu" + + "bsublite.v1.ListSubscriptionsRequest\0325.g" + + "oogle.cloud.pubsublite.v1.ListSubscripti" + + "onsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/admin/" + + "{parent=projects/*/locations/*}/subscrip" + + "tions\022\354\001\n\022UpdateSubscription\0225.google.cl" + + "oud.pubsublite.v1.UpdateSubscriptionRequ" + + "est\032(.google.cloud.pubsublite.v1.Subscri" + + "ption\"u\332A\030subscription,update_mask\202\323\344\223\002T" + + "2D/v1/admin/{subscription.name=projects/" + + "*/locations/*/subscriptions/*}:\014subscrip" + + "tion\022\253\001\n\022DeleteSubscription\0225.google.clo" + + "ud.pubsublite.v1.DeleteSubscriptionReque" + + "st\032\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\002" + + "9*7/v1/admin/{name=projects/*/locations/" + + "*/subscriptions/*}\022\337\001\n\020SeekSubscription\022" + + "3.google.cloud.pubsublite.v1.SeekSubscri" + + "ptionRequest\032\035.google.longrunning.Operat" + + "ion\"w\312A-\n\030SeekSubscriptionResponse\022\021Oper" + + "ationMetadata\202\323\344\223\002A\"cloud.google.com/go/pubsub" + + "lite/apiv1/pubsublitepb;pubsublitepb\252\002\032G" + + "oogle.Cloud.PubSubLite.V1\312\002\032Google\\Cloud" + + "\\PubSubLite\\V1\352\002\035Google::Cloud::PubSubLi" + + "te::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor, + new java.lang.String[] { + "Parent", "Topic", "TopicId", + }); + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor, + new java.lang.String[] { + "PartitionCount", + }); + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor, + new java.lang.String[] { + "Topics", "NextPageToken", + }); + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor, + new java.lang.String[] { + "Topic", "UpdateMask", + }); + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor, + new java.lang.String[] { + "Subscriptions", "NextPageToken", + }); + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor, + new java.lang.String[] { + "Parent", "Subscription", "SubscriptionId", "SkipBacklog", + }); + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor, + new java.lang.String[] { + "Subscriptions", "NextPageToken", + }); + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor, + new java.lang.String[] { + "Subscription", "UpdateMask", + }); + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor, + new java.lang.String[] { + "Name", "NamedTarget", "TimeTarget", "Target", + }); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "Target", "Verb", + }); + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor, + new java.lang.String[] { + "Parent", "Reservation", "ReservationId", + }); + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor, + new java.lang.String[] { + "Reservations", "NextPageToken", + }); + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor, + new java.lang.String[] { + "Reservation", "UpdateMask", + }); + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor, + new java.lang.String[] { + "Topics", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java similarity index 67% 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 1e382d433..fb1fecc24 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -5,79 +20,92 @@ 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_ = emptyList(com.google.protobuf.ByteString.class); } @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 com.google.protobuf.Internal.ProtobufList values_ = emptyList(com.google.protobuf.ByteString.class); /** + * + * *
    * 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. */ @@ -86,6 +114,7 @@ public com.google.protobuf.ByteString getValues(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,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 { for (int i = 0; i < values_.size(); i++) { output.writeBytes(1, values_.get(i)); } @@ -114,8 +142,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(); @@ -128,15 +155,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; } @@ -158,131 +185,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(); @@ -292,9 +323,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 @@ -313,8 +344,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.AttributeValues result = + new com.google.cloud.pubsublite.proto.AttributeValues(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +365,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; @@ -370,7 +405,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_; @@ -408,18 +444,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) { @@ -429,9 +467,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.Internal.ProtobufList values_ = emptyList(com.google.protobuf.ByteString.class); + private com.google.protobuf.Internal.ProtobufList values_ = + emptyList(com.google.protobuf.ByteString.class); + private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = makeMutableCopy(values_); @@ -439,35 +480,43 @@ private void ensureValuesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; + * * @return A list containing the values. */ - public java.util.List - getValuesList() { + public java.util.List getValuesList() { values_.makeImmutable(); 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. */ @@ -475,18 +524,22 @@ 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); bitField0_ |= 0x00000001; @@ -494,16 +547,21 @@ public Builder setValues( 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); bitField0_ |= 0x00000001; @@ -511,29 +569,34 @@ public Builder addValues(com.google.protobuf.ByteString value) { 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -542,9 +605,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); } @@ -554,12 +617,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(); } @@ -568,27 +631,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; @@ -603,6 +666,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 60% 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 876d7c274..b82863e13 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,37 +1,62 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 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 68% 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 e19d5a1b5..0014bd579 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,55 +20,63 @@ 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); } private int bitField0_; 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 @@ -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 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 { @@ -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 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 @@ -111,11 +137,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 @@ -123,18 +152,25 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * 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.
    * 
@@ -143,10 +179,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; @@ -158,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -182,12 +220,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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -197,21 +233,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; @@ -227,8 +261,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(); @@ -239,119 +272,127 @@ 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() @@ -359,17 +400,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCursorFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +426,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 @@ -406,8 +447,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; } @@ -422,9 +466,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CommitCursorRequest } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -434,38 +476,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; @@ -473,7 +516,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; @@ -511,29 +555,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) { @@ -543,22 +589,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; @@ -567,20 +616,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 { @@ -588,28 +638,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() { @@ -619,17 +676,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; @@ -637,14 +698,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 @@ -652,12 +716,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. */ @@ -669,12 +736,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() { @@ -686,34 +756,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.
      * 
@@ -734,14 +817,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 { @@ -752,6 +836,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -760,9 +846,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; @@ -777,6 +863,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -794,6 +882,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -806,6 +896,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -816,11 +908,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.
      * 
@@ -828,21 +923,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); } @@ -852,12 +950,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(); } @@ -866,27 +964,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; @@ -901,6 +999,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 c708f80e4..192bb4a1e 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,63 +1,95 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 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 563c1d325..3feeda5be 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,45 +20,49 @@ 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; @@ -55,8 +74,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -74,12 +92,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; @@ -98,131 +117,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(); @@ -230,9 +254,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 @@ -251,7 +275,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; } @@ -260,38 +285,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; @@ -299,7 +325,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; @@ -326,12 +353,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -341,9 +369,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -353,12 +381,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(); } @@ -367,27 +395,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; @@ -402,6 +430,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..77236fabf --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +// Protobuf Java Version: 3.25.2 +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..00903c66a --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java @@ -0,0 +1,334 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class CommonProto { + private CommonProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/pubsublite/v1/common.prot" + + "o\022\032google.cloud.pubsublite.v1\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\032\036google/protobuf/duration.prot" + + "o\032\037google/protobuf/timestamp.proto\"!\n\017At" + + "tributeValues\022\016\n\006values\030\001 \003(\014\"\211\002\n\rPubSub" + + "Message\022\013\n\003key\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022M\n\nat" + + "tributes\030\003 \003(\01329.google.cloud.pubsublite" + + ".v1.PubSubMessage.AttributesEntry\022.\n\neve" + + "nt_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\032^\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005val" + + "ue\030\002 \001(\0132+.google.cloud.pubsublite.v1.At" + + "tributeValues:\0028\001\"\030\n\006Cursor\022\016\n\006offset\030\001 " + + "\001(\003\"\310\001\n\020SequencedMessage\0222\n\006cursor\030\001 \001(\013" + + "2\".google.cloud.pubsublite.v1.Cursor\0220\n\014" + + "publish_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022:\n\007message\030\003 \001(\0132).google.cloud.p" + + "ubsublite.v1.PubSubMessage\022\022\n\nsize_bytes" + + "\030\004 \001(\003\"\250\001\n\013Reservation\022\014\n\004name\030\001 \001(\t\022\033\n\023" + + "throughput_capacity\030\002 \001(\003:n\352Ak\n%pubsubli" + + "te.googleapis.com/Reservation\022Bprojects/" + + "{project}/locations/{location}/reservati" + + "ons/{reservation}\"\367\005\n\005Topic\022\014\n\004name\030\001 \001(" + + "\t\022K\n\020partition_config\030\002 \001(\01321.google.clo" + + "ud.pubsublite.v1.Topic.PartitionConfig\022K" + + "\n\020retention_config\030\003 \001(\01321.google.cloud." + + "pubsublite.v1.Topic.RetentionConfig\022O\n\022r" + + "eservation_config\030\004 \001(\01323.google.cloud.p" + + "ubsublite.v1.Topic.ReservationConfig\032\332\001\n" + + "\017PartitionConfig\022\r\n\005count\030\001 \001(\003\022\023\n\005scale" + + "\030\002 \001(\005B\002\030\001H\000\022N\n\010capacity\030\003 \001(\0132:.google." + + "cloud.pubsublite.v1.Topic.PartitionConfi" + + "g.CapacityH\000\032F\n\010Capacity\022\033\n\023publish_mib_" + + "per_sec\030\001 \001(\005\022\035\n\025subscribe_mib_per_sec\030\002" + + " \001(\005B\013\n\tdimension\032Y\n\017RetentionConfig\022\033\n\023" + + "per_partition_bytes\030\001 \001(\003\022)\n\006period\030\002 \001(" + + "\0132\031.google.protobuf.Duration\032_\n\021Reservat" + + "ionConfig\022J\n\026throughput_reservation\030\001 \001(" + + "\tB*\372A\'\n%pubsublite.googleapis.com/Reserv" + + "ation:\\\352AY\n\037pubsublite.googleapis.com/To" + + "pic\0226projects/{project}/locations/{locat" + + "ion}/topics/{topic}\"\305\004\n\014Subscription\022\014\n\004" + + "name\030\001 \001(\t\0223\n\005topic\030\002 \001(\tB$\372A!\n\037pubsubli" + + "te.googleapis.com/Topic\022P\n\017delivery_conf" + + "ig\030\003 \001(\01327.google.cloud.pubsublite.v1.Su" + + "bscription.DeliveryConfig\022?\n\rexport_conf" + + "ig\030\004 \001(\0132(.google.cloud.pubsublite.v1.Ex" + + "portConfig\032\353\001\n\016DeliveryConfig\022i\n\024deliver" + + "y_requirement\030\003 \001(\0162K.google.cloud.pubsu" + + "blite.v1.Subscription.DeliveryConfig.Del" + + "iveryRequirement\"n\n\023DeliveryRequirement\022" + + "$\n DELIVERY_REQUIREMENT_UNSPECIFIED\020\000\022\027\n" + + "\023DELIVER_IMMEDIATELY\020\001\022\030\n\024DELIVER_AFTER_" + + "STORED\020\002:q\352An\n&pubsublite.googleapis.com" + + "/Subscription\022Dprojects/{project}/locati" + + "ons/{location}/subscriptions/{subscripti" + + "on}\"\301\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " + + "\001(\0162..google.cloud.pubsublite.v1.ExportC" + + "onfig.State\022J\n\rcurrent_state\030\006 \001(\0162..goo" + + "gle.cloud.pubsublite.v1.ExportConfig.Sta" + + "teB\003\340A\003\022B\n\021dead_letter_topic\030\005 \001(\tB\'\340A\001\372" + + "A!\n\037pubsublite.googleapis.com/Topic\022N\n\rp" + + "ubsub_config\030\003 \001(\01325.google.cloud.pubsub" + + "lite.v1.ExportConfig.PubSubConfigH\000\032\035\n\014P" + + "ubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUSED" + + "\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND\020\004" + + "B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publish" + + "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" + + "\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobuf." + + "TimestampH\000B\006\n\004timeB\317\001\n!com.google.cloud" + + ".pubsublite.protoB\013CommonProtoP\001Z>cloud." + + "google.com/go/pubsublite/apiv1/pubsublit" + + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + + "Google::Cloud::PubSubLite::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor, + new java.lang.String[] { + "Key", "Data", "Attributes", "EventTime", + }); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor = + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor, + new java.lang.String[] { + "Offset", + }); + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor, + new java.lang.String[] { + "Cursor", "PublishTime", "Message", "SizeBytes", + }); + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor, + new java.lang.String[] { + "Name", "ThroughputCapacity", + }); + internal_static_google_cloud_pubsublite_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_descriptor, + new java.lang.String[] { + "Name", "PartitionConfig", "RetentionConfig", "ReservationConfig", + }); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor, + new java.lang.String[] { + "Count", "Scale", "Capacity", "Dimension", + }); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor, + new java.lang.String[] { + "PublishMibPerSec", "SubscribeMibPerSec", + }); + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor, + new java.lang.String[] { + "PerPartitionBytes", "Period", + }); + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor, + new java.lang.String[] { + "ThroughputReservation", + }); + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor, + new java.lang.String[] { + "Name", "Topic", "DeliveryConfig", "ExportConfig", + }); + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor, + new java.lang.String[] { + "DeliveryRequirement", + }); + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor, + new java.lang.String[] { + "DesiredState", "CurrentState", "DeadLetterTopic", "PubsubConfig", "Destination", + }); + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor, + new java.lang.String[] { + "Topic", + }); + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor, + new java.lang.String[] { + "PublishTime", "EventTime", "Time", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java index 52e38a18d..0ef5f2448 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto @@ -5,54 +20,64 @@ 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 @@ -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 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 { @@ -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 head cursor.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The partition. */ @java.lang.Override @@ -107,6 +137,7 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +149,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_); } @@ -139,8 +169,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; @@ -150,17 +179,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; } @@ -175,139 +203,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(); @@ -318,9 +350,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 @@ -339,8 +371,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; } @@ -359,38 +394,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; @@ -398,7 +434,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; @@ -433,22 +470,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) { @@ -458,22 +498,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; @@ -482,20 +527,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 { @@ -503,28 +551,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() { @@ -534,17 +593,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; @@ -552,13 +617,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 @@ -566,11 +634,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. */ @@ -582,11 +653,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() { @@ -595,9 +669,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); } @@ -607,12 +681,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(); } @@ -621,27 +695,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; @@ -656,6 +730,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..0e35ea250 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/topic_stats.proto + +// Protobuf Java Version: 3.25.2 +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 65% 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 01fbfd72f..42739fde0 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto @@ -5,53 +20,59 @@ 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); } private int bitField0_; 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 @@ -59,18 +80,25 @@ public boolean hasHeadCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * 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.
    * 
@@ -79,10 +107,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; @@ -94,8 +125,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getHeadCursor()); } @@ -109,8 +139,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHeadCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeadCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,17 +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.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; @@ -153,119 +182,127 @@ 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() @@ -273,17 +310,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHeadCursorFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +334,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 @@ -318,8 +355,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; } @@ -328,9 +368,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorRe int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.headCursor_ = headCursorBuilder_ == null - ? headCursor_ - : headCursorBuilder_.build(); + result.headCursor_ = headCursorBuilder_ == null ? headCursor_ : headCursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -340,38 +378,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; @@ -379,7 +418,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()); } @@ -409,19 +449,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) { @@ -431,38 +471,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.
      * 
@@ -483,14 +537,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 { @@ -501,6 +556,8 @@ public Builder setHeadCursor( return this; } /** + * + * *
      * The head cursor.
      * 
@@ -509,9 +566,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; @@ -526,6 +583,8 @@ public Builder mergeHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The head cursor.
      * 
@@ -543,6 +602,8 @@ public Builder clearHeadCursor() { return this; } /** + * + * *
      * The head cursor.
      * 
@@ -555,6 +616,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getHeadCursorBuilder() { return getHeadCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The head cursor.
      * 
@@ -565,11 +628,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.
      * 
@@ -577,21 +643,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); } @@ -601,12 +670,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(); } @@ -615,27 +684,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; @@ -650,6 +719,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 58% 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 7a3aba19a..62108166a 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto // Protobuf Java Version: 3.25.2 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 cf77e9b36..0bbd909b1 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto @@ -5,55 +20,65 @@ 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); } private int bitField0_; 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 @@ -62,29 +87,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 { @@ -95,11 +122,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 @@ -110,11 +140,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 @@ -122,18 +155,25 @@ public boolean hasStartCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * 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.
    * 
@@ -142,12 +182,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
@@ -155,6 +199,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 @@ -162,6 +207,8 @@ public boolean hasEndCursor() { return ((bitField0_ & 0x00000002) != 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
@@ -169,13 +216,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
@@ -186,10 +238,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;
@@ -201,8 +256,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
     }
@@ -228,16 +282,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 (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getStartCursor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartCursor());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getEndCursor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -247,26 +298,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;
@@ -282,8 +330,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();
@@ -298,119 +345,127 @@ 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() @@ -418,18 +473,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStartCursorFieldBuilder(); getEndCursorFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -450,13 +505,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(); } @@ -471,13 +527,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_; @@ -487,15 +547,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStats } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.startCursor_ = startCursorBuilder_ == null - ? startCursor_ - : startCursorBuilder_.build(); + result.startCursor_ = + startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.endCursor_ = endCursorBuilder_ == null - ? endCursor_ - : endCursorBuilder_.build(); + result.endCursor_ = endCursorBuilder_ == null ? endCursor_ : endCursorBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -505,38 +562,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; @@ -544,7 +602,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; @@ -585,36 +645,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) { @@ -624,22 +685,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; @@ -648,20 +714,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 { @@ -669,28 +738,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() { @@ -700,17 +780,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; @@ -718,13 +804,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 @@ -732,11 +821,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. */ @@ -748,11 +840,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() { @@ -764,34 +859,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.
      * 
@@ -812,6 +920,8 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -830,6 +940,8 @@ public Builder setStartCursor( return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -838,9 +950,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; @@ -855,6 +967,8 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -872,6 +986,8 @@ public Builder clearStartCursor() { return this; } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -884,6 +1000,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder() return getStartCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The inclusive start of the range.
      * 
@@ -894,11 +1012,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.
      * 
@@ -906,14 +1027,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_; @@ -921,8 +1045,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
@@ -930,12 +1059,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
@@ -943,16 +1075,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
@@ -975,6 +1112,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
@@ -983,8 +1122,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 {
@@ -995,6 +1133,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
@@ -1005,9 +1145,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;
@@ -1022,6 +1162,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
@@ -1041,6 +1183,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
@@ -1055,6 +1199,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
@@ -1067,11 +1213,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
@@ -1081,21 +1230,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);
     }
 
@@ -1105,12 +1257,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();
   }
@@ -1119,27 +1272,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;
@@ -1154,6 +1307,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 aec7b475a..721226a08 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,62 +1,98 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
 // Protobuf Java Version: 3.25.2
 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.
    * 
@@ -66,6 +102,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
@@ -73,10 +111,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
@@ -84,10 +125,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 71%
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 f065c0f67..7bab9b2a3 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,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
@@ -5,53 +20,59 @@
 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); } private int bitField0_; 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 @@ -62,11 +83,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 @@ -77,6 +101,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
@@ -84,6 +110,7 @@ public long getMessageBytes() {
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; + * * @return Whether the minimumPublishTime field is set. */ @java.lang.Override @@ -91,6 +118,8 @@ public boolean hasMinimumPublishTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -98,13 +127,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
@@ -115,12 +149,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
@@ -128,6 +166,7 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; + * * @return Whether the minimumEventTime field is set. */ @java.lang.Override @@ -135,6 +174,8 @@ public boolean hasMinimumEventTime() { return ((bitField0_ & 0x00000002) != 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
@@ -142,13 +183,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
@@ -159,10 +205,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;
@@ -174,8 +223,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (messageCount_ != 0L) {
       output.writeInt64(1, messageCount_);
     }
@@ -198,20 +246,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 (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getMinimumPublishTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinimumPublishTime());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getMinimumEventTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMinimumEventTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -221,26 +265,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;
@@ -254,11 +295,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();
@@ -273,119 +312,127 @@ 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() @@ -393,18 +440,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMinimumPublishTimeFieldBuilder(); getMinimumEventTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,13 +472,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(); } @@ -446,13 +494,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_; @@ -462,15 +514,15 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStats } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.minimumPublishTime_ = minimumPublishTimeBuilder_ == null - ? minimumPublishTime_ - : minimumPublishTimeBuilder_.build(); + result.minimumPublishTime_ = + minimumPublishTimeBuilder_ == null + ? minimumPublishTime_ + : minimumPublishTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.minimumEventTime_ = minimumEventTimeBuilder_ == null - ? minimumEventTime_ - : minimumEventTimeBuilder_.build(); + result.minimumEventTime_ = + minimumEventTimeBuilder_ == null ? minimumEventTime_ : minimumEventTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -480,38 +532,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; @@ -519,7 +572,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()); } @@ -558,36 +613,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) { @@ -597,15 +655,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 @@ -613,11 +675,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. */ @@ -629,11 +694,14 @@ public Builder setMessageCount(long value) { return this; } /** + * + * *
      * The count of messages.
      * 
* * int64 message_count = 1; + * * @return This builder for chaining. */ public Builder clearMessageCount() { @@ -643,13 +711,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 @@ -657,11 +728,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. */ @@ -673,11 +747,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() { @@ -689,8 +766,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
@@ -698,12 +780,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
@@ -711,16 +796,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
@@ -743,6 +833,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
@@ -751,8 +843,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 {
@@ -763,6 +854,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
@@ -773,9 +866,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;
@@ -790,6 +883,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
@@ -809,6 +904,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
@@ -823,6 +920,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
@@ -835,11 +934,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
@@ -849,14 +951,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_;
@@ -864,8 +969,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
@@ -873,12 +983,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
@@ -886,16 +999,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
@@ -918,6 +1036,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
@@ -926,8 +1046,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 {
@@ -938,6 +1057,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
@@ -948,9 +1069,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;
@@ -965,6 +1086,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
@@ -984,6 +1107,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
@@ -998,6 +1123,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
@@ -1010,11 +1137,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
@@ -1024,21 +1154,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);
     }
 
@@ -1048,12 +1181,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();
   }
@@ -1062,27 +1196,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;
@@ -1097,6 +1231,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 7b5b6ff63..84b57b416 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,34 +1,58 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
 // Protobuf Java Version: 3.25.2
 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
@@ -36,10 +60,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
@@ -47,10 +74,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
@@ -62,6 +92,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
@@ -69,10 +101,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
@@ -80,10 +115,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 951240a83..6e6e96f01 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,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
@@ -5,6 +20,8 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Compute the corresponding cursor for a publish or event time in a topic
  * partition.
@@ -12,49 +29,57 @@
  *
  * 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);
   }
 
   private int bitField0_;
   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 @@ -63,29 +88,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 { @@ -96,11 +123,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 @@ -111,12 +141,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 @@ -124,32 +159,46 @@ public boolean hasTarget() { return ((bitField0_ & 0x00000001) != 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. */ @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; @@ -161,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(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -185,12 +233,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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTarget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTarget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -200,21 +246,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -230,8 +274,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(); @@ -242,98 +285,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.
@@ -341,21 +390,23 @@ 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()
@@ -363,17 +414,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getTargetFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -389,9 +440,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
@@ -410,8 +461,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;
     }
@@ -426,9 +480,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.target_ = targetBuilder_ == null
-            ? target_
-            : targetBuilder_.build();
+        result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -438,38 +490,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;
@@ -477,7 +530,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;
@@ -515,29 +569,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) {
@@ -547,22 +603,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; @@ -571,20 +632,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 { @@ -592,28 +656,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() { @@ -623,17 +698,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; @@ -641,13 +722,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 @@ -655,11 +739,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. */ @@ -671,11 +758,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() { @@ -687,42 +777,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) { @@ -738,15 +847,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 { @@ -757,18 +869,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; @@ -783,12 +899,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); @@ -801,12 +921,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; @@ -814,45 +938,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); } @@ -862,12 +998,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(); } @@ -876,27 +1012,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; @@ -911,6 +1047,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 52% 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 7b65f9033..28bf28a1c 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,70 +1,112 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto // Protobuf Java Version: 3.25.2 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 68% 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 569c5c979..c00839573 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto @@ -5,6 +20,8 @@ package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response containing the cursor corresponding to a publish or event time in a
  * topic partition.
@@ -12,42 +29,45 @@
  *
  * 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);
   }
 
   private int bitField0_;
   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,
@@ -55,6 +75,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -62,6 +83,8 @@ 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,
@@ -69,13 +92,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,
@@ -86,10 +114,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;
@@ -101,8 +132,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getCursor());
     }
@@ -116,8 +146,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getCursor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -127,17 +156,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;
@@ -160,98 +189,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.
@@ -259,21 +294,23 @@ 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()
@@ -281,17 +318,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCursorFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -305,9 +342,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
@@ -326,8 +363,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;
     }
@@ -336,9 +376,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.cursor_ = cursorBuilder_ == null
-            ? cursor_
-            : cursorBuilder_.build();
+        result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -348,38 +386,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;
@@ -387,7 +426,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());
       }
@@ -417,19 +457,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) {
@@ -439,12 +479,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,
@@ -452,12 +498,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,
@@ -465,16 +514,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,
@@ -497,6 +551,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,
@@ -505,8 +561,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 {
@@ -517,6 +572,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,
@@ -527,9 +584,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;
@@ -544,6 +601,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,
@@ -563,6 +622,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,
@@ -577,6 +638,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,
@@ -589,11 +652,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,
@@ -603,21 +669,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);
     }
 
@@ -627,12 +696,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();
   }
@@ -641,27 +710,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;
@@ -676,6 +745,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 27bdbe7cf..ce9ef48de 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,14 +1,32 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
 // Protobuf Java Version: 3.25.2
 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,
@@ -16,10 +34,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,
@@ -27,10 +48,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 65%
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 d9c8aaabb..10cde9535 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,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/admin.proto
 
@@ -5,21 +20,24 @@
 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_ = ""; @@ -27,35 +45,42 @@ 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); } private int bitField0_; 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 @@ -64,30 +89,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The 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 { @@ -98,12 +125,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 @@ -111,35 +143,51 @@ public boolean hasReservation() { return ((bitField0_ & 0x00000001) != 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. */ @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.
@@ -148,6 +196,7 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The reservationId. */ @java.lang.Override @@ -156,14 +205,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.
@@ -172,16 +222,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 { @@ -190,6 +239,7 @@ public java.lang.String getReservationId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +274,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - 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_); @@ -239,22 +287,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; } @@ -280,119 +326,127 @@ 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() @@ -400,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getReservationFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +480,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 @@ -447,8 +501,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; } @@ -460,9 +517,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateReservationRe } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.reservation_ = reservationBuilder_ == null - ? reservation_ - : reservationBuilder_.build(); + result.reservation_ = + reservationBuilder_ == null ? reservation_ : reservationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -475,38 +531,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; @@ -514,7 +571,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; @@ -554,29 +612,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) { @@ -586,23 +646,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; @@ -611,21 +676,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 { @@ -633,30 +701,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() { @@ -666,18 +745,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; @@ -687,42 +772,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) { @@ -738,12 +842,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) { @@ -757,18 +865,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; @@ -783,12 +895,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); @@ -801,12 +917,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; @@ -814,38 +934,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_; @@ -853,6 +985,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.
@@ -861,13 +995,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; @@ -876,6 +1010,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.
@@ -884,15 +1020,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 { @@ -900,6 +1035,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.
@@ -908,18 +1045,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.
@@ -928,6 +1069,7 @@ public Builder setReservationId(
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearReservationId() { @@ -937,6 +1079,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.
@@ -945,21 +1089,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); } @@ -969,12 +1115,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(); } @@ -983,27 +1129,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; @@ -1018,6 +1164,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 59% 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 b4f684864..b4769ac78 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,66 +1,107 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -69,10 +110,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.
@@ -81,8 +125,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 10c993ce9..880bb8652 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,35 +45,42 @@ 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); } private int bitField0_; 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 @@ -64,30 +89,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The 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 { @@ -98,12 +125,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 @@ -111,35 +143,51 @@ public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 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. */ @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.
@@ -148,6 +196,7 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subscriptionId. */ @java.lang.Override @@ -156,14 +205,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.
@@ -172,16 +222,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 { @@ -192,6 +241,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
@@ -199,6 +250,7 @@ public java.lang.String getSubscriptionId() {
    * 
* * bool skip_backlog = 4; + * * @return The skipBacklog. */ @java.lang.Override @@ -207,6 +259,7 @@ public boolean getSkipBacklog() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +271,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_); } @@ -245,15 +297,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - 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; @@ -263,24 +313,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; } @@ -301,127 +348,134 @@ 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() @@ -429,17 +483,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSubscriptionFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -456,9 +510,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 @@ -477,8 +531,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; } @@ -490,9 +547,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateSubscriptionR } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.subscription_ = subscriptionBuilder_ == null - ? subscription_ - : subscriptionBuilder_.build(); + result.subscription_ = + subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -508,38 +564,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; @@ -547,7 +604,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; @@ -590,34 +648,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) { @@ -627,23 +688,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; @@ -652,21 +718,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 { @@ -674,30 +743,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() { @@ -707,18 +787,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; @@ -728,42 +814,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) { @@ -779,12 +884,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) { @@ -798,18 +907,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; @@ -824,12 +938,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); @@ -842,12 +960,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; @@ -855,38 +977,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_; @@ -894,6 +1028,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.
@@ -902,13 +1038,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; @@ -917,6 +1053,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.
@@ -925,15 +1063,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 { @@ -941,6 +1078,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.
@@ -949,18 +1088,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.
@@ -969,6 +1112,7 @@ public Builder setSubscriptionId(
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSubscriptionId() { @@ -978,6 +1122,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.
@@ -986,12 +1132,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; @@ -999,8 +1147,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
@@ -1008,6 +1158,7 @@ public Builder setSubscriptionIdBytes(
      * 
* * bool skip_backlog = 4; + * * @return The skipBacklog. */ @java.lang.Override @@ -1015,6 +1166,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
@@ -1022,6 +1175,7 @@ public boolean getSkipBacklog() {
      * 
* * bool skip_backlog = 4; + * * @param value The skipBacklog to set. * @return This builder for chaining. */ @@ -1033,6 +1187,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
@@ -1040,6 +1196,7 @@ public Builder setSkipBacklog(boolean value) {
      * 
* * bool skip_backlog = 4; + * * @return This builder for chaining. */ public Builder clearSkipBacklog() { @@ -1048,9 +1205,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); } @@ -1060,12 +1217,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(); } @@ -1074,27 +1231,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; @@ -1109,6 +1266,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 2e20238a9..b8e59b9ec 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,66 +1,107 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -69,10 +110,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.
@@ -81,12 +125,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
@@ -94,6 +140,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 c966cf8c7..e5f62424f 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,35 +45,42 @@ 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); } private int bitField0_; 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 @@ -64,30 +89,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The 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 { @@ -98,12 +125,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 @@ -111,12 +142,16 @@ public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 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. */ @java.lang.Override @@ -124,12 +159,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() { @@ -137,9 +175,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.
@@ -148,6 +189,7 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() {
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topicId. */ @java.lang.Override @@ -156,14 +198,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.
@@ -172,16 +215,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 { @@ -190,6 +232,7 @@ public java.lang.String getTopicId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +244,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +267,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - 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_); @@ -239,22 +280,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; } @@ -280,119 +319,126 @@ 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() @@ -400,17 +446,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTopicFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_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 @@ -447,8 +493,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; } @@ -460,9 +509,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateTopicRequest } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.topic_ = topicBuilder_ == null - ? topic_ - : topicBuilder_.build(); + result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -475,38 +522,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; @@ -514,7 +562,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; @@ -554,29 +603,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) { @@ -586,23 +637,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; @@ -611,21 +667,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 { @@ -633,30 +692,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() { @@ -666,18 +736,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; @@ -687,42 +763,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) { @@ -738,15 +830,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 { @@ -757,18 +851,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; @@ -783,12 +880,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); @@ -801,12 +901,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; @@ -814,38 +917,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_; @@ -853,6 +966,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.
@@ -861,13 +976,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; @@ -876,6 +991,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.
@@ -884,15 +1001,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 { @@ -900,6 +1016,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.
@@ -908,18 +1026,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.
@@ -928,6 +1050,7 @@ public Builder setTopicId(
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTopicId() { @@ -937,6 +1060,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.
@@ -945,21 +1070,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); } @@ -969,12 +1096,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(); } @@ -983,27 +1110,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; @@ -1018,6 +1145,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 7b2bbf2ff..b0529eb15 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,66 +1,104 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -69,10 +107,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.
@@ -81,8 +122,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 bf16c15d8..9541aacf0 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -5,53 +20,59 @@ 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 @@ -60,6 +81,7 @@ public long getOffset() { } 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 (offset_ != 0L) { output.writeInt64(1, offset_); } @@ -86,8 +107,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; @@ -97,15 +117,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; } @@ -118,139 +137,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(); @@ -260,9 +282,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 @@ -281,8 +303,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; } @@ -298,38 +323,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; @@ -367,17 +393,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) { @@ -387,16 +415,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 @@ -404,12 +436,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. */ @@ -421,12 +456,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() { @@ -435,9 +473,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); } @@ -447,12 +485,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(); } @@ -461,27 +499,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; @@ -496,6 +534,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..4a18c419f --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/common.proto + +// Protobuf Java Version: 3.25.2 +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..fc28f72d0 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java @@ -0,0 +1,254 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class CursorProto { + private CursorProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/pubsublite/v1/cursor.prot" + + "o\022\032google.cloud.pubsublite.v1\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032\'google/cloud/p" + + "ubsublite/v1/common.proto\"E\n\032InitialComm" + + "itCursorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n" + + "\tpartition\030\002 \001(\003\"\035\n\033InitialCommitCursorR" + + "esponse\"R\n\034SequencedCommitCursorRequest\022" + + "2\n\006cursor\030\001 \001(\0132\".google.cloud.pubsublit" + + "e.v1.Cursor\"=\n\035SequencedCommitCursorResp" + + "onse\022\034\n\024acknowledged_commits\030\001 \001(\003\"\300\001\n\034S" + + "treamingCommitCursorRequest\022I\n\007initial\030\001" + + " \001(\01326.google.cloud.pubsublite.v1.Initia" + + "lCommitCursorRequestH\000\022J\n\006commit\030\002 \001(\01328" + + ".google.cloud.pubsublite.v1.SequencedCom" + + "mitCursorRequestH\000B\t\n\007request\"\303\001\n\035Stream" + + "ingCommitCursorResponse\022J\n\007initial\030\001 \001(\013" + + "27.google.cloud.pubsublite.v1.InitialCom" + + "mitCursorResponseH\000\022K\n\006commit\030\002 \001(\01329.go" + + "ogle.cloud.pubsublite.v1.SequencedCommit" + + "CursorResponseH\000B\t\n\007request\"r\n\023CommitCur" + + "sorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n\tpart" + + "ition\030\002 \001(\003\0222\n\006cursor\030\003 \001(\0132\".google.clo" + + "ud.pubsublite.v1.Cursor\"\026\n\024CommitCursorR" + + "esponse\"\204\001\n\033ListPartitionCursorsRequest\022" + + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.goog" + + "leapis.com/Subscription\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurso" + + "r\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\".g" + + "oogle.cloud.pubsublite.v1.Cursor\"\177\n\034List" + + "PartitionCursorsResponse\022F\n\021partition_cu" + + "rsors\030\001 \003(\0132+.google.cloud.pubsublite.v1" + + ".PartitionCursor\022\027\n\017next_page_token\030\002 \001(" + + "\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommitC" + + "ursor\0228.google.cloud.pubsublite.v1.Strea" + + "mingCommitCursorRequest\0329.google.cloud.p" + + "ubsublite.v1.StreamingCommitCursorRespon" + + "se\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.cloud" + + ".pubsublite.v1.CommitCursorRequest\0320.goo" + + "gle.cloud.pubsublite.v1.CommitCursorResp" + + "onse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=p" + + "rojects/*/locations/*/subscriptions/*}:c" + + "ommitCursor:\001*\022\336\001\n\024ListPartitionCursors\022" + + "7.google.cloud.pubsublite.v1.ListPartiti" + + "onCursorsRequest\0328.google.cloud.pubsubli" + + "te.v1.ListPartitionCursorsResponse\"S\332A\006p" + + "arent\202\323\344\223\002D\022B/v1/cursor/{parent=projects" + + "/*/locations/*/subscriptions/*}/cursors\032" + + "M\312A\031pubsublite.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\317" + + "\001\n!com.google.cloud.pubsublite.protoB\013Cu" + + "rsorProtoP\001Z>cloud.google.com/go/pubsubl" + + "ite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252\002" + + "\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Clo" + + "ud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSub" + + "Lite::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor, + new java.lang.String[] { + "Subscription", "Partition", + }); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor, + new java.lang.String[] { + "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor, + new java.lang.String[] { + "AcknowledgedCommits", + }); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor, + new java.lang.String[] { + "Initial", "Commit", "Request", + }); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor, + new java.lang.String[] { + "Initial", "Commit", "Request", + }); + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor, + new java.lang.String[] { + "Subscription", "Partition", "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor, + new java.lang.String[] { + "Partition", "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor, + new java.lang.String[] { + "PartitionCursors", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java similarity index 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 f45f6b192..6e729f336 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,56 +20,66 @@ 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 @@ -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 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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -160,131 +187,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(); @@ -294,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_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 @@ -315,8 +347,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; } @@ -332,38 +367,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; @@ -371,7 +407,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; @@ -403,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,24 +462,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; @@ -449,22 +493,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 { @@ -472,32 +519,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() { @@ -507,28 +565,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); } @@ -538,12 +602,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(); } @@ -552,27 +616,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; @@ -587,6 +651,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..8dd24aaa2 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +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 fd9199cdd..c691f67a5 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,54 +20,64 @@ 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 @@ -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 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 { @@ -92,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +155,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; } @@ -156,131 +183,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(); @@ -290,9 +322,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 @@ -311,8 +343,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; } @@ -328,38 +363,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; @@ -367,7 +403,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; @@ -399,17 +436,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) { @@ -419,22 +458,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; @@ -443,20 +487,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 { @@ -464,28 +511,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() { @@ -495,26 +553,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); } @@ -524,12 +588,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(); } @@ -538,27 +602,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; @@ -573,6 +637,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..6873a0f67 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +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 62% 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 4a1226633..2f89b1ef7 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,54 +20,64 @@ 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 @@ -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 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 { @@ -92,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +155,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; } @@ -156,131 +183,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(); @@ -290,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_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 @@ -311,8 +342,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; } @@ -328,38 +362,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; @@ -367,7 +402,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; @@ -399,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) { @@ -419,22 +457,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; @@ -443,20 +486,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 { @@ -464,28 +510,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() { @@ -495,26 +552,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); } @@ -524,12 +587,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(); } @@ -538,27 +601,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; @@ -573,6 +636,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..968abbc08 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +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 d9771ce0f..59cde2e35 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -5,6 +20,8 @@ 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.
@@ -12,15 +29,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;
@@ -29,34 +47,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.
      * 
@@ -65,6 +87,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Messages are being exported.
      * 
@@ -73,6 +97,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * Exporting messages is suspended.
      * 
@@ -81,6 +107,8 @@ public enum State */ PAUSED(2), /** + * + * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -89,6 +117,8 @@ public enum State */ PERMISSION_DENIED(3), /** + * + * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -100,6 +130,8 @@ public enum State ; /** + * + * *
      * Default value. This value is unused.
      * 
@@ -108,6 +140,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Messages are being exported.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * Exporting messages is suspended.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int PAUSED_VALUE = 2; /** + * + * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -132,6 +170,8 @@ public enum State */ public static final int PERMISSION_DENIED_VALUE = 3; /** + * + * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -140,7 +180,6 @@ public enum State */ public static final int NOT_FOUND_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -165,51 +204,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; @@ -226,11 +267,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}.
@@ -238,10 +282,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}.
@@ -249,55 +296,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}.
@@ -305,6 +359,7 @@ protected java.lang.Object newInstance(
      * 
* * string topic = 1; + * * @return The topic. */ @java.lang.Override @@ -313,14 +368,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}.
@@ -328,16 +384,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 { @@ -346,6 +401,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,8 +413,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_); } @@ -382,15 +437,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; } @@ -410,89 +465,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 @@ -502,39 +562,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(); @@ -544,13 +606,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(); } @@ -565,13 +628,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_; @@ -582,38 +649,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; @@ -621,7 +691,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; @@ -653,17 +725,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) { @@ -673,10 +747,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}.
@@ -684,13 +761,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; @@ -699,6 +776,8 @@ public java.lang.String getTopic() { } } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -706,15 +785,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 { @@ -722,6 +800,8 @@ public java.lang.String getTopic() { } } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -729,18 +809,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}.
@@ -748,6 +832,7 @@ public Builder setTopic(
        * 
* * string topic = 1; + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -757,6 +842,8 @@ public Builder clearTopic() { return this; } /** + * + * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -764,18 +851,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) { @@ -788,12 +878,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(); } @@ -802,27 +893,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; @@ -837,18 +929,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; } @@ -864,82 +959,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
@@ -952,7 +1078,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 @@ -961,14 +1090,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
@@ -981,17 +1111,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 { @@ -1001,12 +1132,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 @@ -1014,22 +1148,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.
@@ -1038,14 +1177,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;
@@ -1057,18 +1198,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);
@@ -1080,20 +1223,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;
@@ -1103,22 +1247,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:
@@ -1153,99 +1296,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.
@@ -1253,33 +1401,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();
@@ -1296,9 +1443,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
@@ -1317,8 +1464,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;
@@ -1340,8 +1490,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();
       }
     }
@@ -1350,38 +1499,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;
@@ -1402,13 +1552,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();
@@ -1436,34 +1588,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) {
@@ -1473,12 +1628,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() {
@@ -1492,24 +1647,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. */ @@ -1520,26 +1682,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. */ @@ -1553,12 +1724,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() { @@ -1570,24 +1744,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. */ @@ -1598,26 +1783,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. */ @@ -1631,12 +1829,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() { @@ -1648,6 +1851,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
@@ -1660,14 +1865,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; @@ -1676,6 +1883,8 @@ public java.lang.String getDeadLetterTopic() { } } /** + * + * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1688,16 +1897,17 @@ public java.lang.String getDeadLetterTopic() {
      * may be changed or removed.
      * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for deadLetterTopic. */ - public com.google.protobuf.ByteString - getDeadLetterTopicBytes() { + public com.google.protobuf.ByteString getDeadLetterTopicBytes() { java.lang.Object ref = deadLetterTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deadLetterTopic_ = b; return b; } else { @@ -1705,6 +1915,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
@@ -1717,19 +1929,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
@@ -1742,7 +1960,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() { @@ -1752,6 +1973,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
@@ -1764,13 +1987,17 @@ public Builder clearDeadLetterTopic() {
      * may be changed or removed.
      * 
* - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); deadLetterTopic_ = value; bitField0_ |= 0x00000004; @@ -1779,14 +2006,20 @@ public Builder setDeadLetterTopicBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> pubsubConfigBuilder_; + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> + pubsubConfigBuilder_; /** + * + * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; + * * @return Whether the pubsubConfig field is set. */ @java.lang.Override @@ -1794,12 +2027,15 @@ public boolean hasPubsubConfig() { return destinationCase_ == 3; } /** + * + * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; + * * @return The pubsubConfig. */ @java.lang.Override @@ -1817,6 +2053,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf } } /** + * + * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1824,7 +2062,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public Builder setPubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
+    public Builder setPubsubConfig(
+        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
       if (pubsubConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1838,6 +2077,8 @@ public Builder setPubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.Pu
       return this;
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1857,6 +2098,8 @@ public Builder setPubsubConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1864,12 +2107,18 @@ public Builder setPubsubConfig(
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public Builder mergePubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
+    public Builder mergePubsubConfig(
+        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
       if (pubsubConfigBuilder_ == null) {
-        if (destinationCase_ == 3 &&
-            destination_ != com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) {
-          destination_ = com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 3
+            && destination_
+                != com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig
+                    .getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder(
+                      (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -1885,6 +2134,8 @@ public Builder mergePubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.
       return this;
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1909,6 +2160,8 @@ public Builder clearPubsubConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1916,10 +2169,13 @@ public Builder clearPubsubConfig() {
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder getPubsubConfigBuilder() {
+    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder
+        getPubsubConfigBuilder() {
       return getPubsubConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1928,7 +2184,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder getPu
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getPubsubConfigOrBuilder() {
+    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder
+        getPubsubConfigOrBuilder() {
       if ((destinationCase_ == 3) && (pubsubConfigBuilder_ != null)) {
         return pubsubConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1939,6 +2196,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getP
       }
     }
     /**
+     *
+     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -1947,14 +2206,20 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getP
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> 
+            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig,
+            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder,
+            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>
         getPubsubConfigFieldBuilder() {
       if (pubsubConfigBuilder_ == null) {
         if (!(destinationCase_ == 3)) {
-          destination_ = com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
+          destination_ =
+              com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
         }
-        pubsubConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>(
+        pubsubConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig,
+                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder,
+                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>(
                 (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1964,9 +2229,9 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getP
       onChanged();
       return pubsubConfigBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1976,12 +2241,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ExportConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ExportConfig)
   private static final com.google.cloud.pubsublite.proto.ExportConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ExportConfig();
   }
@@ -1990,27 +2255,27 @@ public static com.google.cloud.pubsublite.proto.ExportConfig getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ExportConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ExportConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2025,6 +2290,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.ExportConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
index 5beee51cd..bbee2585a 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,56 +1,90 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
 // Protobuf Java Version: 3.25.2
 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
@@ -63,11 +97,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
@@ -80,33 +119,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 20606451b..e74a788f4 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,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
@@ -5,6 +20,8 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * Request to grant tokens to the server, requesting delivery of messages when
  * they become available.
@@ -12,46 +29,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 @@ -62,11 +83,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 @@ -75,6 +99,7 @@ public long getAllowedBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -86,8 +111,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_); } @@ -104,12 +128,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; @@ -119,17 +141,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; } @@ -142,109 +163,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.
@@ -252,33 +276,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();
@@ -289,9 +312,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
@@ -310,8 +333,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;
     }
@@ -330,38 +356,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;
@@ -369,7 +396,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());
       }
@@ -402,22 +430,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) {
@@ -427,15 +458,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 @@ -443,11 +478,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. */ @@ -459,11 +497,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() { @@ -473,13 +514,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 @@ -487,11 +531,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. */ @@ -503,11 +550,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() { @@ -516,9 +566,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); } @@ -528,12 +578,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(); } @@ -542,27 +592,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; @@ -577,6 +627,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 53% 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 ccb8b1e14..08c7962b9 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,29 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 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 b6fc09b4d..89e3ea1d2 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,56 +20,66 @@ 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 @@ -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 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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -160,131 +187,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(); @@ -294,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_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 @@ -315,8 +347,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; } @@ -332,38 +367,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; @@ -371,7 +407,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; @@ -403,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,24 +462,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; @@ -449,22 +493,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 { @@ -472,32 +519,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() { @@ -507,28 +565,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); } @@ -538,12 +602,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(); } @@ -552,27 +616,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; @@ -587,6 +651,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..74d455730 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +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 3f680dc00..e165d3536 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,54 +20,64 @@ 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 @@ -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 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 { @@ -92,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +155,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; } @@ -156,131 +183,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(); @@ -290,9 +322,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 @@ -311,8 +343,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; } @@ -328,38 +363,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; @@ -367,7 +403,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; @@ -399,17 +436,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) { @@ -419,22 +458,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; @@ -443,20 +487,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 { @@ -464,28 +511,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() { @@ -495,26 +553,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); } @@ -524,12 +588,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(); } @@ -538,27 +602,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; @@ -573,6 +637,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..11b6ed669 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +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 6f7e6916c..cd4655d1a 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,54 +20,64 @@ 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 @@ -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 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 { @@ -92,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +155,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; } @@ -156,131 +183,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(); @@ -290,9 +322,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 @@ -311,8 +343,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; } @@ -328,38 +363,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; @@ -367,7 +403,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; @@ -399,17 +436,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) { @@ -419,22 +458,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; @@ -443,20 +487,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 { @@ -464,28 +511,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() { @@ -495,26 +553,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); } @@ -524,12 +588,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(); } @@ -538,27 +602,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; @@ -573,6 +637,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..e75671229 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +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 96cf89992..af145ea70 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,54 +20,64 @@ 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 @@ -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 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 { @@ -92,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +155,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; } @@ -156,131 +183,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(); @@ -290,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_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 @@ -311,8 +342,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; } @@ -328,38 +362,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; @@ -367,7 +402,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; @@ -399,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) { @@ -419,22 +457,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; @@ -443,20 +486,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 { @@ -464,28 +510,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() { @@ -495,26 +552,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); } @@ -524,12 +587,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(); } @@ -538,27 +601,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; @@ -573,6 +636,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..e9af3cc6c --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +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 49cd6f8ea..df1e83517 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,6 +20,8 @@ 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
@@ -13,48 +30,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 @@ -63,29 +86,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 { @@ -96,12 +119,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 @@ -110,6 +136,7 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,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(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -142,8 +168,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; @@ -153,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.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; } @@ -178,106 +202,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
@@ -286,33 +315,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();
@@ -323,13 +351,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();
     }
 
@@ -344,13 +373,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_;
@@ -364,38 +397,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;
@@ -403,7 +437,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;
@@ -438,22 +474,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) {
@@ -463,22 +502,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; @@ -487,20 +529,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 { @@ -508,28 +551,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() { @@ -539,17 +589,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; @@ -557,14 +611,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 @@ -572,12 +629,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. */ @@ -589,12 +649,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() { @@ -603,9 +666,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); } @@ -615,12 +678,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(); } @@ -629,27 +693,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; @@ -664,6 +728,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 57% 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 d87b223b6..6e0cd9b7e 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,40 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 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 248f06231..8050fee6f 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,45 +20,49 @@ 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; @@ -55,8 +74,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -74,12 +92,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; @@ -98,131 +117,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(); @@ -230,13 +254,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(); } @@ -251,7 +276,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; } @@ -260,38 +286,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; @@ -299,7 +326,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; @@ -326,12 +355,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -341,9 +371,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -353,12 +383,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(); } @@ -367,27 +398,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; @@ -402,6 +433,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..c4c880ead --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +// Protobuf Java Version: 3.25.2 +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 2a8246925..41a8bbc90 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,6 +20,8 @@ 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.
@@ -12,15 +29,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;
@@ -28,28 +47,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
@@ -57,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string subscription = 1; + * * @return The subscription. */ @java.lang.Override @@ -65,14 +89,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
@@ -80,16 +105,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 { @@ -100,6 +124,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
@@ -112,6 +138,7 @@ public java.lang.String getSubscription() {
    * 
* * bytes client_id = 2; + * * @return The clientId. */ @java.lang.Override @@ -120,6 +147,7 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,8 +159,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_); } @@ -152,8 +179,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; @@ -163,17 +189,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; } @@ -195,98 +220,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.
@@ -294,33 +326,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();
@@ -331,14 +363,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
@@ -352,13 +386,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_;
@@ -372,46 +410,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;
@@ -446,22 +489,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) {
@@ -471,10 +517,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
@@ -482,13 +531,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; @@ -497,6 +546,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -504,15 +555,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 { @@ -520,6 +570,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -527,18 +579,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
@@ -546,6 +602,7 @@ public Builder setSubscription(
      * 
* * string subscription = 1; + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -555,6 +612,8 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -562,12 +621,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; @@ -577,6 +638,8 @@ public Builder setSubscriptionBytes( private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -589,6 +652,7 @@ public Builder setSubscriptionBytes(
      * 
* * bytes client_id = 2; + * * @return The clientId. */ @java.lang.Override @@ -596,6 +660,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
@@ -608,17 +674,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
@@ -631,6 +702,7 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 2; + * * @return This builder for chaining. */ public Builder clearClientId() { @@ -639,9 +711,9 @@ public Builder clearClientId() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -651,41 +723,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) - private static final com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest DEFAULT_INSTANCE; + private static final com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPartitionAssignmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPartitionAssignmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -697,9 +771,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java similarity index 67% 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 065f11b6f..7ef0e06a1 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 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
@@ -16,10 +34,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
@@ -27,12 +48,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
@@ -45,6 +68,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 72fff0d26..d8393becf 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -5,21 +20,24 @@ 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; @@ -27,33 +45,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 @@ -62,29 +85,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 { @@ -95,6 +118,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,
@@ -102,6 +127,7 @@ public java.lang.String getTopic() {
    * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -112,6 +138,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.
@@ -123,6 +151,7 @@ public long getPartition() {
    * 
* * bytes client_id = 3; + * * @return The clientId. */ @java.lang.Override @@ -131,6 +160,7 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +172,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_); } @@ -166,12 +195,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; @@ -181,19 +208,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -208,8 +233,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(); @@ -218,131 +242,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(); @@ -354,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_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 @@ -375,8 +404,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; } @@ -398,38 +430,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; @@ -437,7 +470,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; @@ -475,27 +509,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) { @@ -505,22 +543,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; @@ -529,20 +570,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 { @@ -550,28 +592,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() { @@ -581,17 +630,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; @@ -599,8 +652,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,
@@ -608,6 +663,7 @@ public Builder setTopicBytes(
      * 
* * int64 partition = 2; + * * @return The partition. */ @java.lang.Override @@ -615,6 +671,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,
@@ -622,6 +680,7 @@ public long getPartition() {
      * 
* * int64 partition = 2; + * * @param value The partition to set. * @return This builder for chaining. */ @@ -633,6 +692,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,
@@ -640,6 +701,7 @@ public Builder setPartition(long value) {
      * 
* * int64 partition = 2; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -651,6 +713,8 @@ public Builder clearPartition() { private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Unique identifier for a publisher client. If set, enables publish
      * idempotency within a publisher client session.
@@ -662,6 +726,7 @@ public Builder clearPartition() {
      * 
* * bytes client_id = 3; + * * @return The clientId. */ @java.lang.Override @@ -669,6 +734,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.
@@ -680,17 +747,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.
@@ -702,6 +774,7 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 3; + * * @return This builder for chaining. */ public Builder clearClientId() { @@ -710,9 +783,9 @@ public Builder clearClientId() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -722,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPublishRequest) private static final com.google.cloud.pubsublite.proto.InitialPublishRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPublishRequest(); } @@ -736,27 +809,27 @@ public static com.google.cloud.pubsublite.proto.InitialPublishRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -771,6 +844,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialPublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java index 32cd8cf91..528295aa3 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,34 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 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,
@@ -36,11 +59,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.
@@ -52,6 +78,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 59a33b9af..037a95528 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -5,45 +20,49 @@ 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; @@ -55,8 +74,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -74,12 +92,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; @@ -98,131 +117,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(); @@ -230,9 +254,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 @@ -251,7 +275,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; } @@ -260,38 +285,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; @@ -299,7 +325,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; @@ -326,12 +353,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -341,9 +369,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -353,12 +381,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(); } @@ -367,27 +395,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; @@ -402,6 +430,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..8a328eb73 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/publisher.proto + +// Protobuf Java Version: 3.25.2 +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 5cf706345..de54371cf 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,6 +20,8 @@ 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.
@@ -12,49 +29,55 @@
  *
  * 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);
   }
 
   private int bitField0_;
   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 @@ -63,29 +86,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 { @@ -96,12 +119,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 @@ -112,13 +138,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 @@ -126,34 +157,48 @@ public boolean hasInitialLocation() { return ((bitField0_ & 0x00000001) != 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. */ @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; @@ -165,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(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -189,12 +233,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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getInitialLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInitialLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -204,21 +246,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -234,8 +274,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(); @@ -246,98 +285,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.
@@ -345,21 +390,23 @@ 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()
@@ -367,17 +414,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getInitialLocationFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -393,9 +440,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
@@ -414,8 +461,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;
     }
@@ -430,9 +480,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeReq
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.initialLocation_ = initialLocationBuilder_ == null
-            ? initialLocation_
-            : initialLocationBuilder_.build();
+        result.initialLocation_ =
+            initialLocationBuilder_ == null ? initialLocation_ : initialLocationBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -442,38 +491,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;
@@ -481,7 +531,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;
@@ -519,29 +570,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) {
@@ -551,22 +604,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; @@ -575,20 +631,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 { @@ -596,28 +653,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() { @@ -627,17 +691,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; @@ -645,14 +713,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 @@ -660,12 +731,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. */ @@ -677,12 +751,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() { @@ -694,45 +771,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) { @@ -748,13 +844,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) { @@ -768,19 +868,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; @@ -795,13 +900,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); @@ -814,13 +923,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; @@ -828,47 +941,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); } @@ -878,12 +1003,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(); } @@ -892,27 +1017,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; @@ -927,6 +1052,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 0b04ffacc..383f003b9 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,74 +1,112 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 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 065a59576..0ff2b9eae 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,54 +20,60 @@ 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); } private int bitField0_; 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 @@ -60,19 +81,26 @@ 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. */ @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.
@@ -82,10 +110,13 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
-    return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
+    return cursor_ == null
+        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
+        : cursor_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -97,8 +128,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getCursor());
     }
@@ -112,8 +142,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getCursor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -123,17 +152,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.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;
@@ -156,119 +185,127 @@ 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() @@ -276,17 +313,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCursorFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -300,9 +337,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 @@ -321,8 +358,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; } @@ -331,9 +371,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeRes int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -343,38 +381,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; @@ -382,7 +421,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()); } @@ -412,19 +452,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) { @@ -434,40 +474,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.
@@ -489,6 +543,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.
@@ -496,8 +552,7 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
-    public Builder setCursor(
-        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         cursor_ = builderForValue.build();
       } else {
@@ -508,6 +563,8 @@ public Builder setCursor(
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -517,9 +574,9 @@ public Builder setCursor(
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          cursor_ != null &&
-          cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && cursor_ != null
+            && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getCursorBuilder().mergeFrom(value);
         } else {
           cursor_ = value;
@@ -534,6 +591,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.
@@ -552,6 +611,8 @@ public Builder clearCursor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -565,6 +626,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.
@@ -576,11 +639,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.
@@ -589,21 +655,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);
     }
 
@@ -613,12 +682,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();
   }
@@ -627,27 +696,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;
@@ -662,6 +731,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 64%
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 22d2e3883..e13f541b7 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,34 +1,58 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
 // Protobuf Java Version: 3.25.2
 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 14361d925..99db3a500 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,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/cursor.proto
 
@@ -5,21 +20,24 @@
 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_ = ""; @@ -27,35 +45,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 @@ -64,31 +89,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 { @@ -99,6 +126,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.
@@ -106,6 +135,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,9 +144,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -126,6 +159,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -134,14 +168,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.
@@ -151,16 +186,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -169,6 +203,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -204,8 +238,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -218,19 +251,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -254,131 +285,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for ListPartitionCursors.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) com.google.cloud.pubsublite.proto.ListPartitionCursorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,13 +426,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto + .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance(); } @@ -411,13 +448,17 @@ public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result = new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result = + new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -434,38 +475,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursor public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) other); } else { super.mergeFrom(other); return this; @@ -473,7 +515,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -513,27 +557,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,24 +591,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -569,22 +622,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -592,32 +648,43 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -627,19 +694,25 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -647,8 +720,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -656,6 +731,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -663,6 +739,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -670,6 +748,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -681,6 +760,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -688,6 +769,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -699,6 +781,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.
@@ -708,13 +792,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; @@ -723,6 +807,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -732,15 +818,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -748,6 +833,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -757,18 +844,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.
@@ -778,6 +869,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -787,6 +879,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -796,21 +890,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); } @@ -820,12 +916,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(); } @@ -834,27 +931,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; @@ -869,6 +966,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 e6b0fac19..b8d372f47 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,38 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 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.
@@ -40,11 +67,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.
@@ -54,10 +84,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.
@@ -67,8 +100,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 ef438c75a..36a78f17d 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,28 +45,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.
    * 
@@ -56,10 +78,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.
    * 
@@ -67,11 +92,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.
    * 
@@ -83,6 +110,8 @@ public int getPartitionCursorsCount() { return partitionCursors_.size(); } /** + * + * *
    * The partition cursors from this request.
    * 
@@ -94,6 +123,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int return partitionCursors_.get(index); } /** + * + * *
    * The partition cursors from this request.
    * 
@@ -107,15 +138,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 @@ -124,30 +159,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 { @@ -156,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +203,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)); } @@ -185,8 +220,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_); @@ -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.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; } @@ -233,131 +266,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(); @@ -374,13 +412,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(); } @@ -395,14 +434,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_); @@ -414,7 +457,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_; @@ -425,38 +469,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; @@ -464,7 +509,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()) { @@ -483,9 +530,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_); } @@ -522,30 +570,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) { @@ -555,28 +606,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 { @@ -584,6 +645,8 @@ public java.util.List getPart } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -598,6 +661,8 @@ public int getPartitionCursorsCount() { } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -612,6 +677,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -633,6 +700,8 @@ public Builder setPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -651,6 +720,8 @@ public Builder setPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -671,6 +742,8 @@ public Builder addPartitionCursors(com.google.cloud.pubsublite.proto.PartitionCu return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -692,6 +765,8 @@ public Builder addPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -710,6 +785,8 @@ public Builder addPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -728,6 +805,8 @@ public Builder addPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -738,8 +817,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); @@ -747,6 +825,8 @@ public Builder addAllPartitionCursors( return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -764,6 +844,8 @@ public Builder clearPartitionCursors() { return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -781,6 +863,8 @@ public Builder removePartitionCursors(int index) { return this; } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -792,6 +876,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder getPartitionCur return getPartitionCursorsFieldBuilder().getBuilder(index); } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -801,19 +887,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 { @@ -821,6 +910,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu } } /** + * + * *
      * The partition cursors from this request.
      * 
@@ -828,10 +919,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.
      * 
@@ -840,26 +933,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(), @@ -871,19 +973,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; @@ -892,21 +996,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 { @@ -914,30 +1019,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() { @@ -947,27 +1059,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); } @@ -977,41 +1093,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; @@ -1023,9 +1141,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 72% 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 619e9bfcf..4275c9d93 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,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -26,6 +45,8 @@ public interface ListPartitionCursorsResponseOrBuilder extends */ com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int index); /** + * + * *
    * The partition cursors from this request.
    * 
@@ -34,15 +55,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.
    * 
@@ -53,24 +78,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 acdc58df7..740e0ad50 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,35 +45,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 @@ -64,31 +89,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 { @@ -99,6 +126,8 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of topics to return. The service may return fewer
    * than this value.
@@ -106,6 +135,7 @@ public java.lang.String getName() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,9 +144,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -126,6 +159,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -134,14 +168,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.
@@ -151,16 +186,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -169,6 +203,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -204,8 +238,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_); @@ -218,19 +251,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -254,131 +285,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for ListReservationTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListReservationTopicsRequest) com.google.cloud.pubsublite.proto.ListReservationTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,13 +426,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance(); } @@ -411,13 +448,17 @@ public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result = new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result = + new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -434,38 +475,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) other); } else { super.mergeFrom(other); return this; @@ -473,7 +515,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -513,27 +557,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,24 +591,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -569,22 +622,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -592,32 +648,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -627,19 +694,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -647,8 +720,10 @@ public Builder setNameBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -656,6 +731,7 @@ public Builder setNameBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -663,6 +739,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -670,6 +748,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -681,6 +760,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -688,6 +769,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -699,6 +781,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.
@@ -708,13 +792,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; @@ -723,6 +807,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -732,15 +818,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -748,6 +833,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -757,18 +844,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.
@@ -778,6 +869,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -787,6 +879,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -796,21 +890,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); } @@ -820,41 +916,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; @@ -866,9 +964,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 d6dc772c1..f5454d39e 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,38 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -40,11 +67,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.
@@ -54,10 +84,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.
@@ -67,8 +100,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 a6def46d2..60bd94f54 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,83 +20,95 @@ 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. */ @@ -89,30 +116,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 @@ -121,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 { @@ -153,6 +186,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,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 < topics_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topics_.getRaw(i)); } @@ -200,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.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; } @@ -234,149 +266,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(); } @@ -391,13 +428,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(); @@ -412,46 +453,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_; @@ -493,23 +538,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) { @@ -519,10 +567,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_); @@ -530,38 +580,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. */ @@ -569,33 +627,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; @@ -603,18 +667,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; @@ -622,53 +690,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); @@ -679,19 +755,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; @@ -700,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 { @@ -722,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() { @@ -755,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); } @@ -785,41 +875,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; @@ -831,9 +923,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 c745279aa..8ca5374d0 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,77 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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 f21cb2ef3..22e8c4db0 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,34 +45,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 @@ -63,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The 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 { @@ -97,6 +124,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
@@ -104,6 +133,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,9 +142,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.
@@ -124,6 +157,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -132,14 +166,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.
@@ -149,16 +184,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -167,6 +201,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -202,8 +236,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_); @@ -216,19 +249,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -252,131 +283,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListReservationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for ListReservations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListReservationsRequest) com.google.cloud.pubsublite.proto.ListReservationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsRequest.class, com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsRequest.class, + com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override @@ -409,8 +445,11 @@ public com.google.cloud.pubsublite.proto.ListReservationsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationsRequest result = new com.google.cloud.pubsublite.proto.ListReservationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListReservationsRequest result = + new com.google.cloud.pubsublite.proto.ListReservationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -432,38 +471,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationsReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListReservationsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsRequest) other); } else { super.mergeFrom(other); return this; @@ -471,7 +511,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -511,27 +552,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -541,23 +586,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -566,21 +616,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -588,30 +641,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -621,18 +685,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -640,8 +710,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -649,6 +721,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -656,6 +729,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -663,6 +738,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -674,6 +750,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
@@ -681,6 +759,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -692,6 +771,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.
@@ -701,13 +782,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -716,6 +797,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -725,15 +808,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -741,6 +823,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -750,18 +834,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.
@@ -771,6 +859,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -780,6 +869,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -789,21 +880,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); } @@ -813,12 +906,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(); } @@ -827,27 +920,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; @@ -862,6 +955,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 85f1467b2..47f63cfde 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,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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
@@ -38,11 +65,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.
@@ -52,10 +82,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.
@@ -65,8 +98,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 e912a5b58..6670e794c 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,28 +45,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.
@@ -61,6 +83,8 @@ public java.util.List getReservat
     return reservations_;
   }
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -69,11 +93,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.
@@ -86,6 +112,8 @@ public int getReservationsCount() {
     return reservations_.size();
   }
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -98,6 +126,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.
@@ -112,15 +142,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 @@ -129,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token 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 { @@ -161,6 +195,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < reservations_.size(); i++) { output.writeMessage(1, reservations_.get(i)); } @@ -190,8 +224,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_); @@ -204,17 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -238,131 +270,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(); @@ -379,9 +416,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 @@ -400,14 +437,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_); @@ -430,38 +471,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; @@ -469,7 +511,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()) { @@ -488,9 +531,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_); } @@ -527,30 +571,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) { @@ -560,21 +606,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.
@@ -590,6 +644,8 @@ public java.util.List getReservat
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -605,6 +661,8 @@ public int getReservationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -620,6 +678,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.
@@ -627,8 +687,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();
@@ -642,6 +701,8 @@ public Builder setReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -661,6 +722,8 @@ public Builder setReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -682,6 +745,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.
@@ -689,8 +754,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();
@@ -704,6 +768,8 @@ public Builder addReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -723,6 +789,8 @@ public Builder addReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -742,6 +810,8 @@ public Builder addReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -753,8 +823,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);
@@ -762,6 +831,8 @@ public Builder addAllReservations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -780,6 +851,8 @@ public Builder clearReservations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -798,6 +871,8 @@ public Builder removeReservations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -805,11 +880,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.
@@ -820,11 +896,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.
@@ -832,8 +911,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 {
@@ -841,6 +920,8 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
       }
     }
     /**
+     *
+     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -849,10 +930,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.
@@ -860,12 +943,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.
@@ -873,20 +957,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_;
@@ -894,19 +981,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; @@ -915,21 +1004,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 { @@ -937,30 +1027,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() { @@ -970,27 +1067,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); } @@ -1000,12 +1101,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(); } @@ -1014,27 +1115,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; @@ -1049,6 +1150,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 2038a7131..00e36ea03 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -16,9 +34,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.
@@ -28,6 +47,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.
@@ -37,6 +58,8 @@ public interface ListReservationsResponseOrBuilder extends
    */
   int getReservationsCount();
   /**
+   *
+   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -44,9 +67,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.
@@ -54,28 +79,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 c18b9fdac..2a4a4106c 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,34 +45,41 @@ private ListSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSubscriptionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -63,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The 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 { @@ -97,6 +124,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.
@@ -104,6 +133,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,9 +142,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.
@@ -124,6 +157,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -132,14 +166,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.
@@ -149,16 +184,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -167,6 +201,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -202,8 +236,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_); @@ -216,19 +249,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -252,131 +283,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for ListSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListSubscriptionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListSubscriptionsRequest) com.google.cloud.pubsublite.proto.ListSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override @@ -409,8 +445,11 @@ public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest result = new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest result = + new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -432,38 +471,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListSubscriptionsRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; @@ -471,7 +511,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -511,27 +552,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -541,23 +586,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -566,21 +616,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -588,30 +641,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -621,18 +685,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -640,8 +710,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -649,6 +721,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -656,6 +729,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -663,6 +738,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -674,6 +750,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -681,6 +759,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -692,6 +771,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.
@@ -701,13 +782,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -716,6 +797,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -725,15 +808,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -741,6 +823,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -750,18 +834,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.
@@ -771,6 +859,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -780,6 +869,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -789,21 +880,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); } @@ -813,12 +906,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(); } @@ -827,27 +920,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; @@ -862,6 +955,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 1e7ec621d..0b7b919d9 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,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -38,11 +65,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.
@@ -52,10 +82,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.
@@ -65,8 +98,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 74% 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 8f78e9a6b..207a0e70f 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,28 +45,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.
@@ -61,6 +83,8 @@ public java.util.List getSubscri
     return subscriptions_;
   }
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -69,11 +93,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.
@@ -86,6 +112,8 @@ public int getSubscriptionsCount() {
     return subscriptions_.size();
   }
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -98,6 +126,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.
@@ -112,15 +142,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 @@ -129,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token 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 { @@ -161,6 +195,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { output.writeMessage(1, subscriptions_.get(i)); } @@ -190,8 +224,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_); @@ -204,17 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -238,131 +270,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(); @@ -379,9 +416,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 @@ -400,14 +437,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_); @@ -430,38 +471,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; @@ -469,7 +511,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()) { @@ -488,9 +531,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_); } @@ -527,30 +571,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) { @@ -560,21 +606,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.
@@ -590,6 +644,8 @@ public java.util.List getSubscri
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -605,6 +661,8 @@ public int getSubscriptionsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -620,6 +678,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.
@@ -642,6 +702,8 @@ public Builder setSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -661,6 +723,8 @@ public Builder setSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -682,6 +746,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.
@@ -704,6 +770,8 @@ public Builder addSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -723,6 +791,8 @@ public Builder addSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -742,6 +812,8 @@ public Builder addSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -753,8 +825,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);
@@ -762,6 +833,8 @@ public Builder addAllSubscriptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -780,6 +853,8 @@ public Builder clearSubscriptions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -798,6 +873,8 @@ public Builder removeSubscriptions(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -810,6 +887,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.
@@ -820,11 +899,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.
@@ -832,8 +914,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 {
@@ -841,6 +923,8 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
       }
     }
     /**
+     *
+     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -849,10 +933,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.
@@ -862,10 +948,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.
@@ -873,16 +961,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(),
@@ -894,19 +988,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; @@ -915,21 +1011,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 { @@ -937,30 +1034,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() { @@ -970,27 +1074,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); } @@ -1000,12 +1108,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(); } @@ -1014,27 +1122,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; @@ -1049,6 +1157,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 6f7d268b9..4a633bb57 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -16,9 +34,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.
@@ -28,6 +47,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.
@@ -37,6 +58,8 @@ public interface ListSubscriptionsResponseOrBuilder extends
    */
   int getSubscriptionsCount();
   /**
+   *
+   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -44,9 +67,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.
@@ -54,28 +79,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 f9a6da444..88c893acb 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,33 +45,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 @@ -62,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The 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 { @@ -95,6 +122,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.
@@ -102,6 +131,7 @@ public java.lang.String getName() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -110,9 +140,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -122,6 +155,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,14 +164,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.
@@ -147,16 +182,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 { @@ -165,6 +199,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +211,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -200,8 +234,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_); @@ -214,19 +247,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; } @@ -250,131 +281,136 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for ListTopicSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,13 +422,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest + getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance(); } @@ -407,13 +444,17 @@ public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result = + new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result) { + private void buildPartial0( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -430,46 +471,50 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscripti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other) { + if (other + == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -509,27 +554,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -539,22 +588,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -563,20 +617,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -584,28 +641,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -615,17 +683,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -633,8 +707,10 @@ public Builder setNameBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -642,6 +718,7 @@ public Builder setNameBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -649,6 +726,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -656,6 +735,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -667,6 +747,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -674,6 +756,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -685,6 +768,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.
@@ -694,13 +779,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; @@ -709,6 +794,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -718,15 +805,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -734,6 +820,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -743,18 +831,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - 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.
@@ -764,6 +856,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -773,6 +866,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -782,21 +877,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -806,41 +903,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; @@ -852,9 +951,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 61% 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 ab479ecc5..4522ea44d 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,34 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -36,11 +63,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.
@@ -50,10 +80,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.
@@ -63,8 +96,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 d6b6eaf5d..b44b0654f 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,83 +20,96 @@ 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. */ @@ -89,30 +117,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 @@ -121,30 +155,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 { @@ -153,6 +187,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +199,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)); } @@ -200,17 +234,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; } @@ -234,149 +267,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(); } @@ -391,13 +429,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(); @@ -412,46 +454,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_; @@ -493,23 +539,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) { @@ -519,10 +568,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_); @@ -530,38 +581,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. */ @@ -569,33 +628,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; @@ -603,18 +668,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; @@ -622,53 +691,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); @@ -679,19 +756,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; @@ -700,21 +779,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 { @@ -722,30 +802,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() { @@ -755,27 +842,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); } @@ -785,41 +876,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; @@ -831,9 +924,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 69% 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 4a858d085..da14ea724 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,77 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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 653cb6165..a2110e498 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,34 +45,41 @@ private ListTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -63,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The 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 { @@ -97,6 +124,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.
@@ -104,6 +133,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,9 +142,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.
@@ -124,6 +157,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -132,14 +166,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.
@@ -149,16 +184,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -167,6 +201,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -202,8 +236,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_); @@ -216,19 +249,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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; } @@ -252,131 +283,135 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListTopicsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for ListTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListTopicsRequest) com.google.cloud.pubsublite.proto.ListTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsRequest.class, com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsRequest.class, + com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +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_ListTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto + .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override @@ -409,8 +444,11 @@ public com.google.cloud.pubsublite.proto.ListTopicsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicsRequest result = new com.google.cloud.pubsublite.proto.ListTopicsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.pubsublite.proto.ListTopicsRequest result = + new com.google.cloud.pubsublite.proto.ListTopicsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -432,38 +470,39 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicsRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListTopicsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsRequest)other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsRequest) other); } else { super.mergeFrom(other); return this; @@ -471,7 +510,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -511,27 +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) { @@ -541,23 +585,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -566,21 +615,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -588,30 +640,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -621,18 +684,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -640,8 +709,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -649,6 +720,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -656,6 +728,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -663,6 +737,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -674,6 +749,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -681,6 +758,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -692,6 +770,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.
@@ -701,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; @@ -716,6 +796,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -725,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 { @@ -741,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -750,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 `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -771,6 +858,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -780,6 +868,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -789,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); } @@ -813,12 +905,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(); } @@ -827,27 +919,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; @@ -862,6 +954,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 62% 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 6b3f974b6..de7c1e66e 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,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -38,11 +65,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.
@@ -52,10 +82,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.
@@ -65,8 +98,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 f15ddf7cd..08126591a 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,28 +45,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.
@@ -61,6 +83,8 @@ public java.util.List getTopicsList() {
     return topics_;
   }
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -69,11 +93,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.
@@ -86,6 +112,8 @@ public int getTopicsCount() {
     return topics_.size();
   }
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -98,6 +126,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.
@@ -106,21 +136,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 @@ -129,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 { @@ -161,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,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 < topics_.size(); i++) { output.writeMessage(1, topics_.get(i)); } @@ -190,8 +223,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_); @@ -204,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.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; } @@ -238,131 +269,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(); @@ -379,9 +414,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 @@ -400,14 +435,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_); @@ -430,38 +469,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; @@ -469,7 +509,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()) { @@ -488,9 +529,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_); } @@ -527,30 +569,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) { @@ -560,21 +604,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.
@@ -590,6 +641,8 @@ public java.util.List getTopicsList() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -605,6 +658,8 @@ public int getTopicsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -620,6 +675,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.
@@ -627,8 +684,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();
@@ -642,6 +698,8 @@ public Builder setTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -661,6 +719,8 @@ public Builder setTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -682,6 +742,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.
@@ -689,8 +751,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();
@@ -704,6 +765,8 @@ public Builder addTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -711,8 +774,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());
@@ -723,6 +785,8 @@ public Builder addTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -742,6 +806,8 @@ public Builder addTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -753,8 +819,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);
@@ -762,6 +827,8 @@ public Builder addAllTopics(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -780,6 +847,8 @@ public Builder clearTopics() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -798,6 +867,8 @@ public Builder removeTopics(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -805,11 +876,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.
@@ -817,14 +889,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.
@@ -832,8 +906,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 {
@@ -841,6 +915,8 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -849,10 +925,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.
@@ -860,12 +938,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.
@@ -873,20 +952,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_;
@@ -894,19 +975,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; @@ -915,21 +998,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 { @@ -937,30 +1021,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() { @@ -970,27 +1061,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); } @@ -1000,12 +1095,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(); } @@ -1014,27 +1109,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; @@ -1049,6 +1144,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 bb69fbdd9..2037d52dd 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
@@ -16,9 +34,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.
@@ -28,6 +47,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.
@@ -37,6 +58,8 @@ public interface ListTopicsResponseOrBuilder extends
    */
   int getTopicsCount();
   /**
+   *
+   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -44,9 +67,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.
@@ -54,28 +79,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 16bf4b06d..8feeaced4 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -5,49 +20,56 @@ 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.
    * 
@@ -59,6 +81,8 @@ public java.util.List getMessag return messages_; } /** + * + * *
    * The messages to publish.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * The messages to publish.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { return messages_.get(index); } /** + * + * *
    * The messages to publish.
    * 
@@ -100,14 +130,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
@@ -123,6 +154,7 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui
    * 
* * int64 first_sequence_number = 2; + * * @return The firstSequenceNumber. */ @java.lang.Override @@ -131,6 +163,7 @@ public long getFirstSequenceNumber() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } @@ -160,12 +192,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; @@ -175,17 +205,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; } @@ -202,139 +231,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(); @@ -351,9 +384,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 @@ -372,14 +405,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_); @@ -402,38 +439,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; @@ -441,7 +479,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()) { @@ -460,9 +499,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_); } @@ -497,30 +537,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) { @@ -530,21 +573,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.
      * 
@@ -559,6 +610,8 @@ public java.util.List getMessag } } /** + * + * *
      * The messages to publish.
      * 
@@ -573,6 +626,8 @@ public int getMessagesCount() { } } /** + * + * *
      * The messages to publish.
      * 
@@ -587,14 +642,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(); @@ -608,6 +664,8 @@ public Builder setMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -626,6 +684,8 @@ public Builder setMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -646,14 +706,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(); @@ -667,6 +728,8 @@ public Builder addMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -685,6 +748,8 @@ public Builder addMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -703,6 +768,8 @@ public Builder addMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -713,8 +780,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); @@ -722,6 +788,8 @@ public Builder addAllMessages( return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -739,6 +807,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * The messages to publish.
      * 
@@ -756,17 +826,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.
      * 
@@ -776,19 +849,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 { @@ -796,6 +872,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui } } /** + * + * *
      * The messages to publish.
      * 
@@ -803,49 +881,57 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder().addBuilder( - com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); + return getMessagesFieldBuilder() + .addBuilder(com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); } /** + * + * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder( - int index) { - return getMessagesFieldBuilder().addBuilder( - index, com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); + public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder(int index) { + return getMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); } /** + * + * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> + com.google.cloud.pubsublite.proto.PubSubMessage, + com.google.cloud.pubsublite.proto.PubSubMessage.Builder, + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( - messages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.PubSubMessage, + com.google.cloud.pubsublite.proto.PubSubMessage.Builder, + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( + messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; } - private long firstSequenceNumber_ ; + private long firstSequenceNumber_; /** + * + * *
      * The sequence number corresponding to the first message in `messages`.
      * Messages within a batch are ordered and the sequence numbers of all
@@ -861,6 +947,7 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilde
      * 
* * int64 first_sequence_number = 2; + * * @return The firstSequenceNumber. */ @java.lang.Override @@ -868,6 +955,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
@@ -883,6 +972,7 @@ public long getFirstSequenceNumber() {
      * 
* * int64 first_sequence_number = 2; + * * @param value The firstSequenceNumber to set. * @return This builder for chaining. */ @@ -894,6 +984,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
@@ -909,6 +1001,7 @@ public Builder setFirstSequenceNumber(long value) {
      * 
* * int64 first_sequence_number = 2; + * * @return This builder for chaining. */ public Builder clearFirstSequenceNumber() { @@ -917,9 +1010,9 @@ public Builder clearFirstSequenceNumber() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -929,12 +1022,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishRequest) private static final com.google.cloud.pubsublite.proto.MessagePublishRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishRequest(); } @@ -943,27 +1036,27 @@ public static com.google.cloud.pubsublite.proto.MessagePublishRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessagePublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessagePublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -978,6 +1071,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.MessagePublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java index 28bcd657e..663d7c3f9 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,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -26,6 +45,8 @@ public interface MessagePublishRequestOrBuilder extends */ com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index); /** + * + * *
    * The messages to publish.
    * 
@@ -34,25 +55,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
@@ -68,6 +94,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 d60aa06fa..decb93110 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -5,70 +20,83 @@ 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.
@@ -79,75 +107,87 @@ 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); } private int bitField0_; 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 @@ -155,19 +195,26 @@ 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. */ @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.
@@ -177,18 +224,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 @@ -199,11 +251,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 @@ -212,6 +267,7 @@ public int getEndIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +279,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartCursor()); } @@ -244,16 +299,13 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - 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; @@ -263,22 +315,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; } @@ -304,89 +354,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 @@ -396,45 +452,51 @@ 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() + // Construct using + // com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStartCursorFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -450,19 +512,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto + .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstanceForType() { - return com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance(); + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + getDefaultInstanceForType() { + return com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange build() { - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = buildPartial(); + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -471,19 +536,22 @@ 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_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startCursor_ = startCursorBuilder_ == null - ? startCursor_ - : startCursorBuilder_.build(); + result.startCursor_ = + startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -499,46 +567,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()); } @@ -574,29 +649,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) { @@ -606,40 +683,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.
@@ -661,6 +752,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.
@@ -680,6 +773,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.
@@ -689,9 +784,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;
@@ -706,6 +801,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.
@@ -724,6 +821,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.
@@ -737,6 +836,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.
@@ -748,11 +849,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.
@@ -761,27 +865,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 @@ -789,12 +899,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. */ @@ -806,12 +919,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() { @@ -821,13 +937,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 @@ -835,11 +954,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. */ @@ -851,11 +973,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() { @@ -864,6 +989,7 @@ public Builder clearEndIndex() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -876,41 +1002,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; @@ -922,22 +1051,25 @@ 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; } - } private int bitField0_; 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 @@ -945,19 +1077,26 @@ 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. */ @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.
@@ -967,13 +1106,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.
@@ -985,13 +1130,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.
@@ -1003,14 +1153,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.
@@ -1022,13 +1177,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.
@@ -1040,13 +1199,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.
@@ -1058,15 +1222,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; @@ -1078,8 +1245,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartCursor()); } @@ -1096,12 +1262,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - 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; @@ -1111,20 +1275,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; } @@ -1150,119 +1313,127 @@ 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() @@ -1270,18 +1441,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStartCursorFieldBuilder(); getCursorRangesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1302,9 +1473,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 @@ -1323,14 +1494,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_); @@ -1346,9 +1521,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishRespo int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startCursor_ = startCursorBuilder_ == null - ? startCursor_ - : startCursorBuilder_.build(); + result.startCursor_ = + startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -1358,38 +1532,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; @@ -1397,7 +1572,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()); } @@ -1419,9 +1595,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_); } @@ -1453,32 +1630,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) { @@ -1488,40 +1667,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.
@@ -1543,6 +1736,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.
@@ -1562,6 +1757,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.
@@ -1571,9 +1768,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;
@@ -1588,6 +1785,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.
@@ -1606,6 +1805,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.
@@ -1619,6 +1820,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.
@@ -1630,11 +1833,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.
@@ -1643,32 +1849,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.
@@ -1680,9 +1898,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 { @@ -1690,6 +1911,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. @@ -1701,7 +1924,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) { @@ -1711,6 +1936,8 @@ public int getCursorRangesCount() { } } /** + * + * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1722,9 +1949,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 { @@ -1732,6 +1962,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.
@@ -1743,7 +1975,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) { @@ -1760,6 +1994,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.
@@ -1771,10 +2007,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()); @@ -1785,6 +2025,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.
@@ -1796,9 +2038,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(); @@ -1812,6 +2057,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.
@@ -1823,7 +2070,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) { @@ -1840,6 +2089,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.
@@ -1851,10 +2102,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()); @@ -1865,6 +2119,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.
@@ -1876,10 +2132,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()); @@ -1890,6 +2150,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.
@@ -1901,14 +2163,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); @@ -1916,6 +2181,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.
@@ -1927,7 +2194,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) { @@ -1940,6 +2209,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.
@@ -1951,7 +2222,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) { @@ -1964,6 +2237,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.
@@ -1975,13 +2250,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.
@@ -1993,16 +2272,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.
@@ -2014,10 +2298,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 { @@ -2025,6 +2312,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.
@@ -2036,13 +2325,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.
@@ -2054,14 +2350,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.
@@ -2073,29 +2376,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); } @@ -2105,12 +2414,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(); } @@ -2119,27 +2428,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; @@ -2154,6 +2463,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 1f99bf418..6530dc325 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,34 +1,58 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 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.
@@ -39,6 +63,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.
@@ -50,11 +76,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.
@@ -66,10 +96,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.
@@ -81,10 +115,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.
@@ -96,11 +134,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.
@@ -112,8 +155,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 9c8915ddc..359ebad82 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,6 +20,8 @@ package com.google.cloud.pubsublite.proto; /** + * + * *
  * Response containing a list of messages. Upon delivering a MessageResponse to
  * the client, the server:
@@ -16,43 +33,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.
    * 
@@ -64,6 +86,8 @@ public java.util.List getMes return messages_; } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -71,11 +95,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.
    * 
@@ -87,6 +113,8 @@ public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) return messages_.get(index); } /** + * + * *
    * Messages from the topic partition.
    * 
@@ -111,6 +141,7 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,8 +153,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } @@ -137,8 +167,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; @@ -148,15 +177,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; } @@ -178,98 +207,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:
@@ -281,33 +315,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();
@@ -323,9 +356,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
@@ -344,14 +377,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_);
@@ -371,38 +408,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;
@@ -410,7 +448,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()) {
@@ -429,9 +468,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_);
           }
@@ -463,25 +503,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) {
@@ -491,21 +533,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.
      * 
@@ -520,6 +570,8 @@ public java.util.List getMes } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -534,6 +586,8 @@ public int getMessagesCount() { } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -548,6 +602,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -569,6 +625,8 @@ public Builder setMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -587,6 +645,8 @@ public Builder setMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -607,6 +667,8 @@ public Builder addMessages(com.google.cloud.pubsublite.proto.SequencedMessage va return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -628,6 +690,8 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -646,6 +710,8 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -664,6 +730,8 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -674,8 +742,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); @@ -683,6 +750,8 @@ public Builder addAllMessages( return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -700,6 +769,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -717,6 +788,8 @@ public Builder removeMessages(int index) { return this; } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -728,6 +801,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder getMessagesBui return getMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -737,19 +812,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 { @@ -757,6 +835,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } } /** + * + * *
      * Messages from the topic partition.
      * 
@@ -764,10 +844,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.
      * 
@@ -776,37 +858,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); } @@ -816,12 +904,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(); } @@ -830,27 +918,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; @@ -865,6 +953,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 f8fc8ffff..270e3fe79 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,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -26,6 +45,8 @@ public interface MessageResponseOrBuilder extends */ com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index); /** + * + * *
    * Messages from the topic partition.
    * 
@@ -34,21 +55,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 b90737112..a4e58e23b 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,33 +45,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } - 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); } private int bitField0_; 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 @@ -61,11 +83,14 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -73,6 +98,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -87,12 +114,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 @@ -100,12 +130,15 @@ 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. */ @java.lang.Override @@ -113,6 +146,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.
@@ -126,9 +161,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:
@@ -136,6 +174,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -144,14 +183,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:
@@ -159,16 +199,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 { @@ -177,14 +216,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 @@ -193,29 +236,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 { @@ -224,6 +267,7 @@ public java.lang.String getVerb() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +279,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } @@ -259,12 +302,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - 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_); @@ -280,27 +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.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; } @@ -330,119 +368,126 @@ 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() @@ -450,18 +495,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getEndTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +527,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 @@ -503,8 +548,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; } @@ -513,15 +561,11 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.OperationMetadata r int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -537,38 +581,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; @@ -576,7 +621,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()); } @@ -619,36 +665,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) { @@ -658,38 +705,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.
      * 
@@ -710,14 +771,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 { @@ -728,6 +790,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -736,9 +800,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; @@ -753,6 +817,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -770,6 +836,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -782,6 +850,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -792,11 +862,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.
      * 
@@ -804,14 +877,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_; @@ -819,26 +895,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() { @@ -849,6 +934,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -870,6 +957,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.
@@ -877,8 +966,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 {
@@ -889,6 +977,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -898,9 +988,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;
@@ -915,6 +1005,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.
@@ -933,6 +1025,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -946,6 +1040,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.
@@ -957,11 +1053,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.
@@ -970,14 +1067,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_;
@@ -985,6 +1085,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:
@@ -992,13 +1094,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; @@ -1007,6 +1109,8 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1014,15 +1118,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 { @@ -1030,6 +1133,8 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1037,18 +1142,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:
@@ -1056,6 +1165,7 @@ public Builder setTarget(
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1065,6 +1175,8 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1072,12 +1184,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; @@ -1087,18 +1201,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; @@ -1107,20 +1223,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 { @@ -1128,28 +1245,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() { @@ -1159,26 +1283,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); } @@ -1188,12 +1316,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(); } @@ -1202,27 +1330,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; @@ -1237,6 +1365,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 1579ed0a9..37d4c03bd 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -36,26 +60,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.
@@ -66,6 +98,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:
@@ -73,10 +107,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:
@@ -84,28 +121,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 c90c3a17e..3be55bbf9 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,6 +20,8 @@ package com.google.cloud.pubsublite.proto; /** + * + * *
  * PartitionAssignments should not race with acknowledgements. There
  * should be exactly one unacknowledged PartitionAssignment at a time. If not,
@@ -13,82 +30,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_ =
-      emptyLongList();
+  private com.google.protobuf.Internal.LongList partitions_ = emptyLongList();
   /**
+   *
+   *
    * 
    * 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; @@ -100,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getPartitionsList().size() > 0) { output.writeUInt32NoTag(10); @@ -122,14 +150,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; } @@ -141,15 +168,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; } @@ -171,98 +198,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,
@@ -271,33 +304,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();
@@ -307,9 +339,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
@@ -328,8 +360,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.PartitionAssignment result =
+          new com.google.cloud.pubsublite.proto.PartitionAssignment(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -346,38 +381,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;
@@ -385,7 +421,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_;
@@ -423,28 +460,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) {
@@ -454,9 +494,11 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Internal.LongList partitions_ = emptyLongList();
+
     private void ensurePartitionsIsMutable() {
       if (!partitions_.isModifiable()) {
         partitions_ = makeMutableCopy(partitions_);
@@ -464,35 +506,43 @@ private void ensurePartitionsIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
+     *
+     *
      * 
      * 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() { + public java.util.List getPartitionsList() { partitions_.makeImmutable(); 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. */ @@ -500,17 +550,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); @@ -519,11 +571,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,29 +591,33 @@ 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_); bitField0_ |= 0x00000001; 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() { @@ -567,9 +626,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); } @@ -579,12 +638,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(); } @@ -593,27 +652,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; @@ -628,6 +687,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 63% 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 702f7e178..f67383f1b 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,6 +20,8 @@ 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,
@@ -15,39 +32,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;
@@ -59,8 +78,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -78,12 +96,13 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.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;
@@ -102,98 +121,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,
@@ -204,33 +229,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();
@@ -238,9 +262,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
@@ -259,7 +283,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;
     }
@@ -268,38 +293,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;
@@ -307,7 +333,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;
@@ -334,12 +361,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) {
@@ -349,9 +377,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);
     }
 
@@ -361,12 +389,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();
   }
@@ -375,27 +403,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;
@@ -410,6 +438,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..ecede52ae
--- /dev/null
+++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/pubsublite/v1/subscriber.proto
+
+// Protobuf Java Version: 3.25.2
+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 61%
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 975c49532..b226dec4b 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,37 +1,62 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
 // Protobuf Java Version: 3.25.2
 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 76297711b..31c9f6b8d 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,54 +20,61 @@ 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; } @@ -68,30 +90,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 @@ -99,21 +127,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.
    * 
@@ -121,20 +154,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 @@ -142,21 +179,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.
    * 
@@ -166,12 +208,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; @@ -183,10 +226,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_); @@ -201,12 +244,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; @@ -216,22 +261,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: @@ -265,131 +309,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(); @@ -406,13 +455,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(); } @@ -427,26 +477,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(); } } @@ -455,38 +508,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; @@ -494,19 +548,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(); @@ -534,26 +593,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) { @@ -563,12 +621,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() { @@ -581,13 +639,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 @@ -595,11 +659,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 @@ -608,22 +675,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(); @@ -637,6 +709,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssi return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -644,7 +718,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(); @@ -655,18 +730,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; } @@ -682,6 +766,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialPartitionAs return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -705,16 +791,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.
      * 
@@ -722,17 +813,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.
      * 
@@ -740,14 +835,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()); @@ -759,13 +861,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 @@ -773,11 +881,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 @@ -795,6 +906,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { } } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -815,6 +928,8 @@ public Builder setAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck v return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -833,6 +948,8 @@ public Builder setAck( return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -841,10 +958,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; } @@ -860,6 +981,8 @@ public Builder mergeAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -883,6 +1006,8 @@ public Builder clearAck() { return this; } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -893,6 +1018,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder getAckBu return getAckFieldBuilder().getBuilder(); } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -911,6 +1038,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO } } /** + * + * *
      * Acknowledgement of a partition assignment.
      * 
@@ -918,14 +1047,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()); @@ -935,9 +1069,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); } @@ -947,12 +1081,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(); } @@ -961,27 +1096,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; @@ -996,6 +1131,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 71% 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 b790b7539..6f9ebc5cb 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,59 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 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 66% 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 066a7a91a..6ccbeeb0d 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,53 +20,59 @@ 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); } private int bitField0_; 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 @@ -62,11 +83,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 @@ -74,18 +98,25 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * 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.
    * 
@@ -94,10 +125,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; @@ -109,8 +143,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_); } @@ -127,12 +160,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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,19 +173,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; @@ -168,8 +198,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(); @@ -180,119 +209,126 @@ 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() @@ -300,17 +336,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCursorFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +361,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 @@ -346,8 +382,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; } @@ -359,9 +398,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionCursor res } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -371,38 +408,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; @@ -410,7 +448,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()); } @@ -443,24 +482,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) { @@ -470,15 +510,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 @@ -486,11 +530,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. */ @@ -502,11 +549,14 @@ public Builder setPartition(long value) { return this; } /** + * + * *
      * The partition this is for.
      * 
* * int64 partition = 1; + * * @return This builder for chaining. */ public Builder clearPartition() { @@ -518,34 +568,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.
      * 
@@ -566,14 +629,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 { @@ -584,6 +648,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The value of the cursor.
      * 
@@ -592,9 +658,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; @@ -609,6 +675,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The value of the cursor.
      * 
@@ -626,6 +694,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The value of the cursor.
      * 
@@ -638,6 +708,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The value of the cursor.
      * 
@@ -648,11 +720,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.
      * 
@@ -660,21 +735,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); } @@ -684,12 +762,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(); } @@ -698,27 +776,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; @@ -733,6 +811,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 61% 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 1244a0142..aafe1012f 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,42 +1,69 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface PartitionCursorOrBuilder extends +public interface PartitionCursorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionCursor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The partition this is for.
    * 
* * int64 partition = 1; + * * @return The partition. */ long getPartition(); /** + * + * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return Whether the cursor field is set. */ boolean hasCursor(); /** + * + * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** + * + * *
    * The value of the cursor.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java index 365e71335..52c04ed39 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -5,21 +20,24 @@ 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; @@ -27,14 +45,13 @@ private PubSubMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PubSubMessage(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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"}) @@ -45,22 +62,26 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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); } private int bitField0_; 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
@@ -68,6 +89,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
    * 
* * bytes key = 1; + * * @return The key. */ @java.lang.Override @@ -78,11 +100,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 @@ -91,32 +116,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.
    * 
@@ -124,20 +159,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.
    * 
@@ -145,10 +182,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.
    * 
@@ -156,17 +196,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.
    * 
@@ -176,7 +219,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)) { @@ -188,11 +233,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 @@ -200,11 +248,14 @@ public boolean hasEventTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; + * * @return The eventTime. */ @java.lang.Override @@ -212,6 +263,8 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
    * An optional, user-specified event time.
    * 
@@ -224,6 +277,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,20 +289,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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getEventTime()); } @@ -262,26 +311,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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEventTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -291,23 +339,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; @@ -337,112 +382,117 @@ 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"}) @@ -452,10 +502,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -463,16 +513,18 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi 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() @@ -480,17 +532,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEventTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -507,9 +559,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 @@ -528,8 +580,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; } @@ -543,13 +598,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PubSubMessage resul result.data_ = data_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.attributes_ = internalGetAttributes().build(AttributesDefaultEntryHolder.defaultEntry); + result.attributes_ = + internalGetAttributes().build(AttributesDefaultEntryHolder.defaultEntry); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.eventTime_ = eventTimeBuilder_ == null - ? eventTime_ - : eventTimeBuilder_.build(); + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -559,38 +613,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; @@ -598,15 +653,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()); @@ -637,38 +692,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().ensureBuilderMap().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() + .ensureBuilderMap() + .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) { @@ -678,10 +740,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
@@ -689,6 +754,7 @@ public Builder mergeFrom(
      * 
* * bytes key = 1; + * * @return The key. */ @java.lang.Override @@ -696,6 +762,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
@@ -703,17 +771,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
@@ -721,6 +794,7 @@ public Builder setKey(com.google.protobuf.ByteString value) {
      * 
* * bytes key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { @@ -732,11 +806,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 @@ -744,27 +821,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() { @@ -774,30 +859,54 @@ public Builder clearData() { return this; } - private static final class AttributesConverter implements com.google.protobuf.MapFieldBuilder.Converter { + private static final class AttributesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, + com.google.cloud.pubsublite.proto.AttributeValues> { @java.lang.Override - public com.google.cloud.pubsublite.proto.AttributeValues build(com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder val) { - if (val instanceof com.google.cloud.pubsublite.proto.AttributeValues) { return (com.google.cloud.pubsublite.proto.AttributeValues) val; } + public com.google.cloud.pubsublite.proto.AttributeValues build( + com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder val) { + if (val instanceof com.google.cloud.pubsublite.proto.AttributeValues) { + return (com.google.cloud.pubsublite.proto.AttributeValues) val; + } return ((com.google.cloud.pubsublite.proto.AttributeValues.Builder) val).build(); } @java.lang.Override - public com.google.protobuf.MapEntry defaultEntry() { + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> + defaultEntry() { return AttributesDefaultEntryHolder.defaultEntry; } }; + private static final AttributesConverter attributesConverter = new AttributesConverter(); private com.google.protobuf.MapFieldBuilder< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, com.google.cloud.pubsublite.proto.AttributeValues, com.google.cloud.pubsublite.proto.AttributeValues.Builder> attributes_; - private com.google.protobuf.MapFieldBuilder + java.lang.String, + com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, + com.google.cloud.pubsublite.proto.AttributeValues, + com.google.cloud.pubsublite.proto.AttributeValues.Builder> + attributes_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, + com.google.cloud.pubsublite.proto.AttributeValues, + com.google.cloud.pubsublite.proto.AttributeValues.Builder> internalGetAttributes() { if (attributes_ == null) { return new com.google.protobuf.MapFieldBuilder<>(attributesConverter); } return attributes_; } - private com.google.protobuf.MapFieldBuilder + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, + com.google.cloud.pubsublite.proto.AttributeValues, + com.google.cloud.pubsublite.proto.AttributeValues.Builder> internalGetMutableAttributes() { if (attributes_ == null) { attributes_ = new com.google.protobuf.MapFieldBuilder<>(attributesConverter); @@ -806,10 +915,13 @@ public com.google.protobuf.MapEntry * Optional attributes that can be used for message metadata/headers. *
@@ -817,20 +929,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().ensureBuilderMap().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.
      * 
@@ -838,10 +952,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().getImmutableMap(); } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -849,16 +966,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"); } - java.util.Map map = internalGetMutableAttributes().ensureBuilderMap(); + com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableAttributes().ensureBuilderMap(); return map.containsKey(key) ? attributesConverter.build(map.get(key)) : defaultValue; } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -868,35 +989,39 @@ 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"); } - java.util.Map map = internalGetMutableAttributes().ensureBuilderMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableAttributes().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return attributesConverter.build(map.get(key)); } + public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableAttributes().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().ensureBuilderMap() - .remove(key); + public Builder removeAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAttributes().ensureBuilderMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { @@ -904,6 +1029,8 @@ public Builder removeAttributes( return internalGetMutableAttributes().ensureMessageMap(); } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -911,16 +1038,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().ensureBuilderMap() - .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().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -929,17 +1060,19 @@ public Builder putAttributes( */ public Builder putAllAttributes( java.util.Map values) { - for (java.util.Map.Entry e : values.entrySet()) { + for (java.util.Map.Entry + e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } - internalGetMutableAttributes().ensureBuilderMap() - .putAll(values); + internalGetMutableAttributes().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000004; return this; } /** + * + * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -948,7 +1081,8 @@ public Builder putAllAttributes( */ public com.google.cloud.pubsublite.proto.AttributeValues.Builder putAttributesBuilderIfAbsent( java.lang.String key) { - java.util.Map builderMap = internalGetMutableAttributes().ensureBuilderMap(); + java.util.Map + builderMap = internalGetMutableAttributes().ensureBuilderMap(); com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.cloud.pubsublite.proto.AttributeValues.newBuilder(); @@ -963,24 +1097,33 @@ public com.google.cloud.pubsublite.proto.AttributeValues.Builder putAttributesBu 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() { @@ -991,6 +1134,8 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1011,14 +1156,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 { @@ -1029,6 +1175,8 @@ public Builder setEventTime( return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1037,9 +1185,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; @@ -1054,6 +1202,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1071,6 +1221,8 @@ public Builder clearEventTime() { return this; } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1083,6 +1235,8 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** + * + * *
      * An optional, user-specified event time.
      * 
@@ -1093,11 +1247,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.
      * 
@@ -1105,21 +1260,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); } @@ -1129,12 +1287,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(); } @@ -1143,27 +1301,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; @@ -1178,6 +1336,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 f51e50232..bd2517e88 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 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
@@ -16,21 +34,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.
    * 
@@ -39,21 +63,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.
    * 
@@ -61,8 +86,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.
    * 
@@ -70,39 +97,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 18bf92710..c37f4b7d0 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -5,54 +20,61 @@ 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; } @@ -68,30 +90,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 @@ -99,21 +127,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.
    * 
@@ -121,20 +154,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 @@ -142,21 +179,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.
    * 
@@ -164,14 +206,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; @@ -183,13 +227,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); } @@ -201,12 +246,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; @@ -216,22 +263,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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: @@ -264,132 +310,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(); @@ -406,9 +456,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 @@ -427,8 +477,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; @@ -441,12 +494,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(); } } @@ -455,38 +506,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; @@ -494,19 +546,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(); @@ -534,26 +590,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) { @@ -563,12 +619,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() { @@ -581,13 +637,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 @@ -595,11 +657,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 @@ -617,13 +682,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(); @@ -637,6 +705,8 @@ public Builder setInitialRequest(com.google.cloud.pubsublite.proto.InitialPublis return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -655,18 +725,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; } @@ -682,6 +759,8 @@ public Builder mergeInitialRequest(com.google.cloud.pubsublite.proto.InitialPubl return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -705,16 +784,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.
      * 
@@ -722,7 +806,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 { @@ -733,6 +818,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getIniti } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -740,14 +827,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()); @@ -759,13 +852,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 @@ -773,11 +872,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 @@ -795,13 +897,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(); @@ -815,6 +920,8 @@ public Builder setMessagePublishRequest(com.google.cloud.pubsublite.proto.Messag return this; } /** + * + * *
      * Request to publish messages.
      * 
@@ -833,18 +940,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; } @@ -860,6 +974,8 @@ public Builder mergeMessagePublishRequest(com.google.cloud.pubsublite.proto.Mess return this; } /** + * + * *
      * Request to publish messages.
      * 
@@ -883,16 +999,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.
      * 
@@ -900,7 +1021,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 { @@ -911,6 +1033,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessa } } /** + * + * *
      * Request to publish messages.
      * 
@@ -918,14 +1042,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()); @@ -935,9 +1065,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); } @@ -947,12 +1077,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(); } @@ -961,27 +1091,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; @@ -996,6 +1126,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 72% 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 ef25b0b5d..e9ab79995 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -36,31 +60,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 706d8b185..d475cb75d 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -5,54 +20,61 @@ 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; } @@ -68,30 +90,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 @@ -99,21 +127,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.
    * 
@@ -121,20 +154,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 @@ -142,21 +179,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.
    * 
@@ -164,14 +206,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; @@ -183,13 +227,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); } @@ -201,12 +246,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; @@ -216,22 +263,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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: @@ -265,131 +311,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(); @@ -406,9 +456,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 @@ -427,8 +477,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; @@ -441,12 +494,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(); } } @@ -455,38 +506,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; @@ -494,19 +546,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(); @@ -534,26 +590,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) { @@ -563,12 +618,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() { @@ -581,13 +636,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 @@ -595,11 +656,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 @@ -617,13 +681,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(); @@ -637,6 +704,8 @@ public Builder setInitialResponse(com.google.cloud.pubsublite.proto.InitialPubli return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -655,18 +724,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; } @@ -682,6 +758,8 @@ public Builder mergeInitialResponse(com.google.cloud.pubsublite.proto.InitialPub return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -705,16 +783,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.
      * 
@@ -722,7 +805,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 { @@ -733,6 +817,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInit } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -740,14 +826,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()); @@ -759,13 +851,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 @@ -773,11 +871,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 @@ -795,13 +896,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(); @@ -815,6 +919,8 @@ public Builder setMessageResponse(com.google.cloud.pubsublite.proto.MessagePubli return this; } /** + * + * *
      * Response to publishing messages.
      * 
@@ -833,18 +939,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; } @@ -860,6 +973,8 @@ public Builder mergeMessageResponse(com.google.cloud.pubsublite.proto.MessagePub return this; } /** + * + * *
      * Response to publishing messages.
      * 
@@ -883,16 +998,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.
      * 
@@ -900,7 +1020,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 { @@ -911,6 +1032,8 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMess } } /** + * + * *
      * Response to publishing messages.
      * 
@@ -918,14 +1041,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()); @@ -935,9 +1064,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); } @@ -947,12 +1076,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(); } @@ -961,27 +1090,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; @@ -996,6 +1125,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 6cf38dd95..61a09a5c1 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -36,24 +60,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..35cee7743 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java @@ -0,0 +1,183 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/publisher.proto + +// Protobuf Java Version: 3.25.2 +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 e13ec2989..2de089d89 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -5,49 +20,56 @@ 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:
@@ -55,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -63,14 +86,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:
@@ -78,16 +102,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 { @@ -98,6 +121,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
@@ -109,6 +134,7 @@ public java.lang.String getName() {
    * 
* * int64 throughput_capacity = 2; + * * @return The throughputCapacity. */ @java.lang.Override @@ -117,6 +143,7 @@ public long getThroughputCapacity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,8 +155,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_); } @@ -149,8 +175,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; @@ -160,17 +185,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; } @@ -185,139 +209,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(); @@ -328,9 +355,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 @@ -349,8 +376,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; } @@ -369,38 +399,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; @@ -443,22 +474,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) { @@ -468,10 +502,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -479,13 +516,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; @@ -494,6 +531,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -501,15 +540,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 { @@ -517,6 +555,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -524,18 +564,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:
@@ -543,6 +587,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -552,6 +597,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the reservation.
      * Structured like:
@@ -559,12 +606,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; @@ -572,8 +621,10 @@ public Builder setNameBytes( return this; } - private long throughputCapacity_ ; + private long throughputCapacity_; /** + * + * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -585,6 +636,7 @@ public Builder setNameBytes(
      * 
* * int64 throughput_capacity = 2; + * * @return The throughputCapacity. */ @java.lang.Override @@ -592,6 +644,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
@@ -603,6 +657,7 @@ public long getThroughputCapacity() {
      * 
* * int64 throughput_capacity = 2; + * * @param value The throughputCapacity to set. * @return This builder for chaining. */ @@ -614,6 +669,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
@@ -625,6 +682,7 @@ public Builder setThroughputCapacity(long value) {
      * 
* * int64 throughput_capacity = 2; + * * @return This builder for chaining. */ public Builder clearThroughputCapacity() { @@ -633,9 +691,9 @@ public Builder clearThroughputCapacity() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -645,12 +703,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Reservation) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Reservation) private static final com.google.cloud.pubsublite.proto.Reservation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Reservation(); } @@ -659,27 +717,27 @@ public static com.google.cloud.pubsublite.proto.Reservation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -694,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Reservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java similarity index 64% 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 2cdaf2cc3..1fe0e55a8 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 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:
@@ -16,10 +34,13 @@ public interface ReservationOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the reservation.
    * Structured like:
@@ -27,12 +48,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
@@ -44,6 +67,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 ca4f6c153..b9af0e4b4 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,6 +20,8 @@ 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
@@ -16,48 +33,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.
      * 
@@ -66,6 +87,8 @@ public enum NamedTarget */ NAMED_TARGET_UNSPECIFIED(0), /** + * + * *
      * A target corresponding to the most recently published message in the
      * partition.
@@ -75,6 +98,8 @@ public enum NamedTarget
      */
     HEAD(1),
     /**
+     *
+     *
      * 
      * A target corresponding to the committed cursor for the given subscription
      * and topic partition.
@@ -87,6 +112,8 @@ public enum NamedTarget
     ;
 
     /**
+     *
+     *
      * 
      * Default value. This value is unused.
      * 
@@ -95,6 +122,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.
@@ -104,6 +133,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.
@@ -113,7 +144,6 @@ public enum NamedTarget
      */
     public static final int COMMITTED_CURSOR_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -138,49 +168,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;
@@ -198,15 +228,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;
     }
@@ -222,41 +256,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() { @@ -266,30 +309,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 @@ -297,22 +349,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.
@@ -323,12 +380,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;
@@ -340,8 +398,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_));
     }
@@ -358,12 +415,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;
@@ -373,22 +431,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:
@@ -421,99 +478,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
@@ -525,33 +587,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.SeekRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SeekRequest)
       com.google.cloud.pubsublite.proto.SeekRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.SeekRequest.class, com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.SeekRequest.class,
+              com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.SeekRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -565,9 +626,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto
+          .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
     }
 
     @java.lang.Override
@@ -586,8 +647,11 @@ public com.google.cloud.pubsublite.proto.SeekRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.SeekRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.SeekRequest result = new com.google.cloud.pubsublite.proto.SeekRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.pubsublite.proto.SeekRequest result =
+          new com.google.cloud.pubsublite.proto.SeekRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -600,8 +664,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekRequest result)
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekRequest result) {
       result.targetCase_ = targetCase_;
       result.target_ = this.target_;
-      if (targetCase_ == 2 &&
-          cursorBuilder_ != null) {
+      if (targetCase_ == 2 && cursorBuilder_ != null) {
         result.target_ = cursorBuilder_.build();
       }
     }
@@ -610,38 +673,39 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekRequest re
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.SeekRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.SeekRequest)other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.SeekRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -651,17 +715,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekRequest other) {
       if (other == com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) return this;
       switch (other.getTargetCase()) {
-        case NAMED_TARGET: {
-          setNamedTargetValue(other.getNamedTargetValue());
-          break;
-        }
-        case CURSOR: {
-          mergeCursor(other.getCursor());
-          break;
-        }
-        case TARGET_NOT_SET: {
-          break;
-        }
+        case NAMED_TARGET:
+          {
+            setNamedTargetValue(other.getNamedTargetValue());
+            break;
+          }
+        case CURSOR:
+          {
+            mergeCursor(other.getCursor());
+            break;
+          }
+        case TARGET_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -689,25 +756,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              int rawValue = input.readEnum();
-              targetCase_ = 1;
-              target_ = rawValue;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getCursorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              targetCase_ = 2;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                int rawValue = input.readEnum();
+                targetCase_ = 1;
+                target_ = rawValue;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
+                targetCase_ = 2;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -717,12 +785,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int targetCase_ = 0;
     private java.lang.Object target_;
-    public TargetCase
-        getTargetCase() {
-      return TargetCase.forNumber(
-          targetCase_);
+
+    public TargetCase getTargetCase() {
+      return TargetCase.forNumber(targetCase_);
     }
 
     public Builder clearTarget() {
@@ -735,11 +803,14 @@ public Builder clearTarget() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return Whether the namedTarget field is set. */ @java.lang.Override @@ -747,11 +818,14 @@ public boolean hasNamedTarget() { return targetCase_ == 1; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return The enum numeric value on the wire for namedTarget. */ @java.lang.Override @@ -762,11 +836,14 @@ public int getNamedTargetValue() { return 0; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @param value The enum numeric value on the wire for namedTarget to set. * @return This builder for chaining. */ @@ -777,28 +854,37 @@ public Builder setNamedTargetValue(int value) { return this; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return The namedTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget() { if (targetCase_ == 1) { - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED : result; + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null + ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED + : result; } return com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @param value The namedTarget to set. * @return This builder for chaining. */ @@ -812,11 +898,14 @@ public Builder setNamedTarget(com.google.cloud.pubsublite.proto.SeekRequest.Name return this; } /** + * + * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; + * * @return This builder for chaining. */ public Builder clearNamedTarget() { @@ -829,14 +918,20 @@ public Builder clearNamedTarget() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> + cursorBuilder_; /** + * + * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return Whether the cursor field is set. */ @java.lang.Override @@ -844,12 +939,15 @@ public boolean hasCursor() { return targetCase_ == 2; } /** + * + * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; + * * @return The cursor. */ @java.lang.Override @@ -867,6 +965,8 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { } } /** + * + * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -888,6 +988,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -895,8 +997,7 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 2;
      */
-    public Builder setCursor(
-        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         target_ = builderForValue.build();
         onChanged();
@@ -907,6 +1008,8 @@ public Builder setCursor(
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -916,10 +1019,13 @@ public Builder setCursor(
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (targetCase_ == 2 &&
-            target_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
-          target_ = com.google.cloud.pubsublite.proto.Cursor.newBuilder((com.google.cloud.pubsublite.proto.Cursor) target_)
-              .mergeFrom(value).buildPartial();
+        if (targetCase_ == 2
+            && target_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+          target_ =
+              com.google.cloud.pubsublite.proto.Cursor.newBuilder(
+                      (com.google.cloud.pubsublite.proto.Cursor) target_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           target_ = value;
         }
@@ -935,6 +1041,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -959,6 +1067,8 @@ public Builder clearCursor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -970,6 +1080,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -989,6 +1101,8 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -997,14 +1111,19 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
+            com.google.cloud.pubsublite.proto.Cursor,
+            com.google.cloud.pubsublite.proto.Cursor.Builder,
+            com.google.cloud.pubsublite.proto.CursorOrBuilder>
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
         if (!(targetCase_ == 2)) {
           target_ = com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance();
         }
-        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+        cursorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.pubsublite.proto.Cursor,
+                com.google.cloud.pubsublite.proto.Cursor.Builder,
+                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
                 (com.google.cloud.pubsublite.proto.Cursor) target_,
                 getParentForChildren(),
                 isClean());
@@ -1014,9 +1133,9 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       onChanged();
       return cursorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1026,12 +1145,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekRequest)
   private static final com.google.cloud.pubsublite.proto.SeekRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekRequest();
   }
@@ -1040,27 +1159,27 @@ public static com.google.cloud.pubsublite.proto.SeekRequest getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SeekRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SeekRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1075,6 +1194,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.SeekRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
index e3f7f94ab..460bf3fbb 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,62 +1,95 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
 // Protobuf Java Version: 3.25.2
 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 fa05aec44..a8f62dbe6 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,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
@@ -5,53 +20,59 @@
 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); } private int bitField0_; 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 @@ -59,18 +80,25 @@ 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. */ @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.
    * 
@@ -79,10 +107,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; @@ -94,8 +125,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCursor()); } @@ -109,8 +139,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,17 +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.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; @@ -152,120 +181,127 @@ 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() @@ -273,17 +309,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCursorFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +333,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 @@ -318,8 +354,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; } @@ -328,9 +367,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekResponse result int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -340,38 +377,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; @@ -409,19 +447,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCursorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -431,38 +469,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.
      * 
@@ -483,14 +535,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 { @@ -501,6 +554,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -509,9 +564,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; @@ -526,6 +581,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -543,6 +600,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -555,6 +614,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The new delivery cursor for the current stream.
      * 
@@ -565,11 +626,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.
      * 
@@ -577,21 +641,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); } @@ -601,12 +668,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(); } @@ -615,27 +682,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; @@ -650,6 +717,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 635ed5310..25d192989 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 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 af1829ca3..666eefef5 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,55 +20,62 @@ 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.
      * 
@@ -62,6 +84,8 @@ public enum NamedTarget */ NAMED_TARGET_UNSPECIFIED(0), /** + * + * *
      * Seek to the oldest retained message.
      * 
@@ -70,6 +94,8 @@ public enum NamedTarget */ TAIL(1), /** + * + * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -82,6 +108,8 @@ public enum NamedTarget
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified named target. Do not use.
      * 
@@ -90,6 +118,8 @@ public enum NamedTarget */ public static final int NAMED_TARGET_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Seek to the oldest retained message.
      * 
@@ -98,6 +128,8 @@ public enum NamedTarget */ public static final int TAIL_VALUE = 1; /** + * + * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -107,7 +139,6 @@ public enum NamedTarget
      */
     public static final int HEAD_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -132,49 +163,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;
@@ -192,15 +225,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;
     }
@@ -216,32 +253,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 @@ -250,29 +296,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 { @@ -282,22 +330,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() { @@ -307,24 +361,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,
@@ -332,6 +395,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 @@ -339,6 +403,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,
@@ -346,16 +412,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,
@@ -367,12 +436,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;
@@ -384,8 +454,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_);
     }
@@ -408,12 +477,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;
@@ -423,24 +493,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:
@@ -476,131 +544,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(); @@ -615,9 +688,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 @@ -636,8 +709,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; @@ -650,11 +726,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(); } } @@ -663,38 +739,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; @@ -702,24 +779,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(); @@ -747,30 +828,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) { @@ -780,12 +863,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() { @@ -799,18 +882,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; @@ -819,20 +906,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 { @@ -840,28 +930,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() { @@ -871,17 +972,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; @@ -890,11 +997,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 @@ -902,11 +1013,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 @@ -917,11 +1032,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. */ @@ -932,32 +1051,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(); } @@ -967,11 +1099,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() { @@ -984,8 +1120,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,
@@ -993,6 +1134,7 @@ public Builder clearNamedTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return Whether the timeTarget field is set. */ @java.lang.Override @@ -1000,6 +1142,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,
@@ -1007,6 +1151,7 @@ public boolean hasTimeTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; + * * @return The timeTarget. */ @java.lang.Override @@ -1024,6 +1169,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,
@@ -1046,6 +1193,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,
@@ -1066,6 +1215,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,
@@ -1076,10 +1227,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;
         }
@@ -1095,6 +1249,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,
@@ -1120,6 +1276,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,
@@ -1132,6 +1290,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,
@@ -1152,6 +1312,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,
@@ -1161,14 +1323,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());
@@ -1178,9 +1345,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);
     }
 
@@ -1190,12 +1357,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();
   }
@@ -1204,27 +1371,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;
@@ -1239,6 +1406,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
index a3c10e567..23e977678 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,62 +1,98 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/admin.proto
 
 // Protobuf Java Version: 3.25.2
 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,
@@ -64,10 +100,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,
@@ -75,10 +114,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 3202a4bac..99d87267c 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,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/admin.proto
 
@@ -5,45 +20,49 @@
 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; @@ -55,8 +74,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -74,12 +92,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; @@ -98,131 +117,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(); @@ -230,9 +254,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 @@ -251,7 +275,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; } @@ -260,38 +285,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; @@ -299,7 +325,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; @@ -326,12 +353,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -341,9 +369,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -353,12 +381,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(); } @@ -367,27 +395,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; @@ -402,6 +430,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..7ddaed063 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +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 d3302ef84..7d014a647 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,6 +20,8 @@ package com.google.cloud.pubsublite.proto; /** + * + * *
  * Streaming request to update the committed cursor. Subsequent
  * SequencedCommitCursorRequests override outstanding ones.
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorRequest}
  */
-public final class SequencedCommitCursorRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SequencedCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedCommitCursorRequest)
     SequencedCommitCursorRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SequencedCommitCursorRequest.newBuilder() to construct.
   private SequencedCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SequencedCommitCursorRequest() {
-  }
+
+  private SequencedCommitCursorRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SequencedCommitCursorRequest();
   }
 
-  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);
   }
 
   private int bitField0_;
   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 @@ -60,18 +81,25 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * 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.
    * 
@@ -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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCursor()); } @@ -110,8 +140,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - 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.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; @@ -154,98 +183,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.
@@ -253,21 +288,23 @@ 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()
@@ -275,17 +312,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCursorFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -299,13 +336,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();
     }
 
@@ -320,19 +358,21 @@ 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_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.cursor_ = cursorBuilder_ == null
-            ? cursor_
-            : cursorBuilder_.build();
+        result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -342,38 +382,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;
@@ -381,7 +422,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());
       }
@@ -411,19 +454,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) {
@@ -433,38 +476,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.
      * 
@@ -485,14 +542,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 { @@ -503,6 +561,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -511,9 +571,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; @@ -528,6 +588,8 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -545,6 +607,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -557,6 +621,8 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** + * + * *
      * The new value for the committed cursor.
      * 
@@ -567,11 +633,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.
      * 
@@ -579,21 +648,24 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), - getParentForChildren(), - isClean()); + cursorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, + com.google.cloud.pubsublite.proto.Cursor.Builder, + com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), getParentForChildren(), isClean()); cursor_ = null; } return cursorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,41 +675,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; @@ -649,9 +723,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 59% 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 504b9c263..2324b377f 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 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 46e94a363..6906df462 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,47 +20,52 @@ 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
@@ -53,6 +73,7 @@ protected java.lang.Object newInstance(
    * 
* * int64 acknowledged_commits = 1; + * * @return The acknowledgedCommits. */ @java.lang.Override @@ -61,6 +82,7 @@ public long getAcknowledgedCommits() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -72,8 +94,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_); } @@ -87,8 +108,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; @@ -98,15 +118,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; } @@ -119,139 +139,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(); @@ -261,13 +285,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(); } @@ -282,13 +307,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_; @@ -299,46 +328,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()); } @@ -368,17 +401,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) { @@ -388,10 +423,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
@@ -399,6 +437,7 @@ public Builder mergeFrom(
      * 
* * int64 acknowledged_commits = 1; + * * @return The acknowledgedCommits. */ @java.lang.Override @@ -406,6 +445,8 @@ public long getAcknowledgedCommits() { return acknowledgedCommits_; } /** + * + * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -413,6 +454,7 @@ public long getAcknowledgedCommits() {
      * 
* * int64 acknowledged_commits = 1; + * * @param value The acknowledgedCommits to set. * @return This builder for chaining. */ @@ -424,6 +466,8 @@ public Builder setAcknowledgedCommits(long value) { return this; } /** + * + * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -431,6 +475,7 @@ public Builder setAcknowledgedCommits(long value) {
      * 
* * int64 acknowledged_commits = 1; + * * @return This builder for chaining. */ public Builder clearAcknowledgedCommits() { @@ -439,9 +484,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); } @@ -451,41 +496,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; @@ -497,9 +544,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/owl-bot-staging/v1/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 similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java index aed8de8e6..82b0a39a6 100644 --- a/owl-bot-staging/v1/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 @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface SequencedCommitCursorResponseOrBuilder extends +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
@@ -16,6 +34,7 @@ public interface SequencedCommitCursorResponseOrBuilder extends
    * 
* * 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 70% 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 bd1000b1c..4570dd775 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -5,53 +20,59 @@ 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); } private int bitField0_; 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 @@ -59,18 +80,25 @@ 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. */ @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.
    * 
@@ -79,18 +107,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 @@ -98,12 +131,15 @@ 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. */ @java.lang.Override @@ -111,6 +147,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.
@@ -126,11 +164,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 @@ -138,18 +179,25 @@ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * 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.
    * 
@@ -158,17 +206,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 @@ -177,6 +230,7 @@ public long getSizeBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCursor()); } @@ -212,20 +265,16 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPublishTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPublishTime()); } if (((bitField0_ & 0x00000004) != 0)) { - 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; @@ -235,30 +284,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; } @@ -283,127 +329,133 @@ 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() @@ -411,19 +463,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCursorFieldBuilder(); getPublishTimeFieldBuilder(); getMessageFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +500,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 @@ -469,8 +521,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; } @@ -479,21 +534,16 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedMessage re int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null - ? cursor_ - : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.publishTime_ = publishTimeBuilder_ == null - ? publishTime_ - : publishTimeBuilder_.build(); + result.publishTime_ = + publishTimeBuilder_ == null ? publishTime_ : publishTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.message_ = messageBuilder_ == null - ? message_ - : messageBuilder_.build(); + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { @@ -506,38 +556,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; @@ -545,7 +596,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()); } @@ -584,38 +636,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) { @@ -625,38 +676,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.
      * 
@@ -677,14 +742,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 { @@ -695,6 +761,8 @@ public Builder setCursor( return this; } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -703,9 +771,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; @@ -720,6 +788,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.
      * 
@@ -737,6 +807,8 @@ public Builder clearCursor() { return this; } /** + * + * *
      * The position of a message within the partition where it is stored.
      * 
@@ -749,6 +821,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.
      * 
@@ -759,11 +833,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.
      * 
@@ -771,14 +848,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_; @@ -786,36 +866,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.
@@ -837,6 +930,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.
@@ -844,8 +939,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 {
@@ -856,6 +950,8 @@ public Builder setPublishTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -865,9 +961,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;
@@ -882,6 +978,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.
@@ -900,6 +998,8 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -913,6 +1013,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.
@@ -924,11 +1026,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.
@@ -937,14 +1042,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_;
@@ -952,34 +1060,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.
      * 
@@ -1000,6 +1121,8 @@ public Builder setMessage(com.google.cloud.pubsublite.proto.PubSubMessage value) return this; } /** + * + * *
      * The user message.
      * 
@@ -1018,6 +1141,8 @@ public Builder setMessage( return this; } /** + * + * *
      * The user message.
      * 
@@ -1026,9 +1151,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; @@ -1043,6 +1168,8 @@ public Builder mergeMessage(com.google.cloud.pubsublite.proto.PubSubMessage valu return this; } /** + * + * *
      * The user message.
      * 
@@ -1060,6 +1187,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * The user message.
      * 
@@ -1072,6 +1201,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessageBuilder return getMessageFieldBuilder().getBuilder(); } /** + * + * *
      * The user message.
      * 
@@ -1082,11 +1213,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.
      * 
@@ -1094,26 +1228,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 @@ -1121,11 +1261,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. */ @@ -1137,11 +1280,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() { @@ -1150,9 +1296,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); } @@ -1162,12 +1308,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(); } @@ -1176,27 +1322,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; @@ -1211,6 +1357,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 a9f49813f..d38984833 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -36,26 +60,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.
@@ -66,24 +98,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.
    * 
@@ -93,11 +133,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 2852f5204..349b48d30 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,54 +20,61 @@ 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; } @@ -68,30 +90,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 @@ -99,21 +127,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.
    * 
@@ -121,20 +154,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 @@ -142,21 +179,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.
    * 
@@ -164,14 +206,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; @@ -183,13 +227,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); } @@ -201,12 +246,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; @@ -216,22 +263,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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: @@ -265,131 +311,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(); @@ -406,13 +457,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(); } @@ -427,26 +479,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(); } } @@ -455,38 +510,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; @@ -494,19 +550,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(); @@ -534,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) { @@ -563,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() { @@ -581,13 +641,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 @@ -595,11 +661,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 @@ -617,6 +686,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -637,6 +708,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -655,18 +728,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; } @@ -682,6 +763,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCurso return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -705,16 +788,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.
      * 
@@ -722,7 +810,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 { @@ -733,6 +822,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder get } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -740,14 +831,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()); @@ -759,13 +856,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 @@ -773,11 +876,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 @@ -795,6 +901,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit( } } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -815,6 +923,8 @@ public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursor return this; } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -833,18 +943,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; } @@ -860,6 +978,8 @@ public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCurs return this; } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -883,16 +1003,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.
      * 
@@ -900,7 +1025,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 { @@ -911,6 +1037,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder g } } /** + * + * *
      * Request to commit a new cursor value.
      * 
@@ -918,14 +1046,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()); @@ -935,9 +1069,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); } @@ -947,41 +1081,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; @@ -993,9 +1129,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 d8f338aee..c5ccb91a5 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -36,24 +60,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 5eb43342a..eaf5d98ac 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -5,54 +20,61 @@ 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; } @@ -68,30 +90,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 @@ -99,21 +127,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.
    * 
@@ -121,20 +154,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 @@ -142,21 +179,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.
    * 
@@ -164,14 +206,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; @@ -183,13 +227,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); } @@ -201,12 +246,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; @@ -216,22 +263,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.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: @@ -265,131 +311,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(); @@ -406,13 +457,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(); } @@ -427,26 +479,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(); } } @@ -455,58 +510,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(); @@ -534,26 +596,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) { @@ -563,12 +624,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() { @@ -581,13 +642,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 @@ -595,11 +662,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 @@ -617,6 +687,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial( } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -637,6 +709,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -655,18 +729,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; } @@ -682,6 +764,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCurso return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -705,16 +789,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.
      * 
@@ -722,7 +811,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 { @@ -733,6 +823,8 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder ge } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -740,14 +832,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()); @@ -759,13 +857,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 @@ -773,11 +877,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 @@ -795,13 +902,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(); @@ -815,6 +925,8 @@ public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursor return this; } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -833,18 +945,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; } @@ -860,6 +980,8 @@ public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCurs return this; } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -883,16 +1005,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.
      * 
@@ -900,7 +1027,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 { @@ -911,6 +1039,8 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder } } /** + * + * *
      * Response to committing a new cursor value.
      * 
@@ -918,14 +1048,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()); @@ -935,9 +1071,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); } @@ -947,41 +1083,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; @@ -993,9 +1131,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 f2446a5ad..682779d15 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -36,24 +60,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 71% 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 de4d67675..f3c08ab70 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,55 +20,62 @@ 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; } @@ -69,31 +91,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 @@ -101,21 +130,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.
    * 
@@ -125,18 +159,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 @@ -144,21 +181,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.
    * 
@@ -168,18 +210,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 @@ -187,21 +232,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,
    * 
@@ -211,12 +261,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; @@ -228,8 +279,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_); } @@ -249,16 +299,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; @@ -268,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.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: @@ -325,131 +376,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(); @@ -469,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_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 @@ -490,8 +545,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; @@ -504,16 +562,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(); } } @@ -522,38 +577,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; @@ -561,23 +617,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(); @@ -605,33 +666,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) { @@ -641,12 +700,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() { @@ -659,13 +718,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 @@ -673,11 +738,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 @@ -695,6 +763,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -715,6 +785,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRequ return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -733,6 +805,8 @@ public Builder setInitial( return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -741,10 +815,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; } @@ -760,6 +838,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -783,6 +863,8 @@ public Builder clearInitial() { return this; } /** + * + * *
      * Initial request on the stream.
      * 
@@ -793,6 +875,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit return getInitialFieldBuilder().getBuilder(); } /** + * + * *
      * Initial request on the stream.
      * 
@@ -800,7 +884,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 { @@ -811,6 +896,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getIni } } /** + * + * *
      * Initial request on the stream.
      * 
@@ -818,14 +905,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()); @@ -837,13 +929,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 @@ -851,11 +949,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 @@ -873,6 +974,8 @@ public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { } } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -893,14 +996,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(); @@ -911,6 +1015,8 @@ public Builder setSeek( return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -919,10 +1025,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; } @@ -938,6 +1047,8 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -961,6 +1072,8 @@ public Builder clearSeek() { return this; } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -971,6 +1084,8 @@ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -989,6 +1104,8 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() } } /** + * + * *
      * Request to update the stream's delivery cursor.
      * 
@@ -996,14 +1113,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()); @@ -1015,13 +1137,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 @@ -1029,11 +1157,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 @@ -1051,6 +1182,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { } } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1071,6 +1204,8 @@ public Builder setFlowControl(com.google.cloud.pubsublite.proto.FlowControlReque return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1089,6 +1224,8 @@ public Builder setFlowControl( return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1097,10 +1234,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; } @@ -1116,6 +1257,8 @@ public Builder mergeFlowControl(com.google.cloud.pubsublite.proto.FlowControlReq return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1139,6 +1282,8 @@ public Builder clearFlowControl() { return this; } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1149,6 +1294,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest.Builder getFlowContr return getFlowControlFieldBuilder().getBuilder(); } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1167,6 +1314,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont } } /** + * + * *
      * Request to grant tokens to the server,
      * 
@@ -1174,14 +1323,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()); @@ -1191,9 +1345,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); } @@ -1203,12 +1357,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(); } @@ -1217,27 +1371,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; @@ -1252,6 +1406,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 74cd6cbd4..2b7ccfb8e 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -36,24 +60,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.
    * 
@@ -63,24 +95,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 c20f5786f..13a39cfbb 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -5,55 +20,62 @@ 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; } @@ -69,31 +91,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 @@ -101,21 +130,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.
    * 
@@ -125,18 +159,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 @@ -144,21 +181,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.
    * 
@@ -168,18 +210,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 @@ -187,21 +232,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.
    * 
@@ -211,12 +261,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; @@ -228,10 +279,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_); @@ -249,16 +300,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; @@ -268,26 +322,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: @@ -325,131 +377,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(); @@ -469,9 +525,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 @@ -490,8 +546,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; @@ -504,16 +563,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(); } } @@ -522,38 +578,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; @@ -561,23 +618,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(); @@ -605,33 +667,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) { @@ -641,12 +701,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() { @@ -659,13 +719,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 @@ -673,11 +739,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 @@ -695,6 +764,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -715,6 +786,8 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeResp return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -733,6 +806,8 @@ public Builder setInitial( return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -741,10 +816,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; } @@ -760,6 +840,8 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -783,6 +865,8 @@ public Builder clearInitial() { return this; } /** + * + * *
      * Initial response on the stream.
      * 
@@ -793,6 +877,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni return getInitialFieldBuilder().getBuilder(); } /** + * + * *
      * Initial response on the stream.
      * 
@@ -800,7 +886,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 { @@ -811,6 +898,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getIn } } /** + * + * *
      * Initial response on the stream.
      * 
@@ -818,14 +907,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()); @@ -837,13 +932,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 @@ -851,11 +952,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 @@ -873,6 +977,8 @@ public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { } } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -893,14 +999,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(); @@ -911,6 +1018,8 @@ public Builder setSeek( return this; } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -919,10 +1028,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; } @@ -938,6 +1050,8 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { return this; } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -961,6 +1075,8 @@ public Builder clearSeek() { return this; } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -971,6 +1087,8 @@ public com.google.cloud.pubsublite.proto.SeekResponse.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -989,6 +1107,8 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( } } /** + * + * *
      * Response to a Seek operation.
      * 
@@ -996,14 +1116,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()); @@ -1015,13 +1140,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 @@ -1029,11 +1160,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 @@ -1051,6 +1185,8 @@ public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { } } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1071,6 +1207,8 @@ public Builder setMessages(com.google.cloud.pubsublite.proto.MessageResponse val return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1089,6 +1227,8 @@ public Builder setMessages( return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1097,10 +1237,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; } @@ -1116,6 +1260,8 @@ public Builder mergeMessages(com.google.cloud.pubsublite.proto.MessageResponse v return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1139,6 +1285,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1149,6 +1297,8 @@ public com.google.cloud.pubsublite.proto.MessageResponse.Builder getMessagesBuil return getMessagesFieldBuilder().getBuilder(); } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1167,6 +1317,8 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB } } /** + * + * *
      * Response containing messages from the topic partition.
      * 
@@ -1174,14 +1326,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()); @@ -1191,9 +1348,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); } @@ -1203,12 +1360,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(); } @@ -1217,27 +1374,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; @@ -1252,6 +1409,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SubscribeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java index 6c46d6269..8c3d26811 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 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.
    * 
@@ -36,24 +60,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.
    * 
@@ -63,24 +95,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..163490c86 --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java @@ -0,0 +1,265 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/subscriber.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class SubscriberProto { + private SubscriberProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/pubsublite/v1/subscriber." + + "proto\022\032google.cloud.pubsublite.v1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\'google/cloud/pubsublite/v1/common.pro" + + "to\"\212\001\n\027InitialSubscribeRequest\022\024\n\014subscr" + + "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022F\n\020initi" + + "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" + + "ite.v1.SeekRequestB\003\340A\001\"N\n\030InitialSubscr" + + "ibeResponse\0222\n\006cursor\030\001 \001(\0132\".google.clo" + + "ud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest\022" + + "K\n\014named_target\030\001 \001(\01623.google.cloud.pub" + + "sublite.v1.SeekRequest.NamedTargetH\000\0224\n\006" + + "cursor\030\002 \001(\0132\".google.cloud.pubsublite.v" + + "1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARGE" + + "T_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_C" + + "URSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cur" + + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + + "ursor\"E\n\022FlowControlRequest\022\030\n\020allowed_m" + + "essages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001\n" + + "\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.goo" + + "gle.cloud.pubsublite.v1.InitialSubscribe" + + "RequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud.p" + + "ubsublite.v1.SeekRequestH\000\022F\n\014flow_contr" + + "ol\030\003 \001(\0132..google.cloud.pubsublite.v1.Fl" + + "owControlRequestH\000B\t\n\007request\"Q\n\017Message" + + "Response\022>\n\010messages\030\001 \003(\0132,.google.clou" + + "d.pubsublite.v1.SequencedMessage\"\343\001\n\021Sub" + + "scribeResponse\022G\n\007initial\030\001 \001(\01324.google" + + ".cloud.pubsublite.v1.InitialSubscribeRes" + + "ponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pub" + + "sublite.v1.SeekResponseH\000\022?\n\010messages\030\003 " + + "\001(\0132+.google.cloud.pubsublite.v1.Message" + + "ResponseH\000B\n\n\010response\"L\n!InitialPartiti" + + "onAssignmentRequest\022\024\n\014subscription\030\001 \001(" + + "\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssignm" + + "ent\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAssi" + + "gnmentAck\"\274\001\n\032PartitionAssignmentRequest" + + "\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsubl" + + "ite.v1.InitialPartitionAssignmentRequest" + + "H\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsublit" + + "e.v1.PartitionAssignmentAckH\000B\t\n\007request" + + "2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.go" + + "ogle.cloud.pubsublite.v1.SubscribeReques" + + "t\032-.google.cloud.pubsublite.v1.Subscribe" + + "Response\"\000(\0010\001\032M\312A\031pubsublite.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platform2\357\001\n\032PartitionAssignmentSer" + + "vice\022\201\001\n\020AssignPartitions\0226.google.cloud" + + ".pubsublite.v1.PartitionAssignmentReques" + + "t\032/.google.cloud.pubsublite.v1.Partition" + + "Assignment\"\000(\0010\001\032M\312A\031pubsublite.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\323\001\n!com.google.cloud.pub" + + "sublite.protoB\017SubscriberProtoP\001Z>cloud." + + "google.com/go/pubsublite/apiv1/pubsublit" + + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + + "Google::Cloud::PubSubLite::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor, + new java.lang.String[] { + "Subscription", "Partition", "InitialLocation", + }); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor, + new java.lang.String[] { + "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor, + new java.lang.String[] { + "NamedTarget", "Cursor", "Target", + }); + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor, + new java.lang.String[] { + "Cursor", + }); + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor, + new java.lang.String[] { + "AllowedMessages", "AllowedBytes", + }); + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor, + new java.lang.String[] { + "Initial", "Seek", "FlowControl", "Request", + }); + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor, + new java.lang.String[] { + "Messages", + }); + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor, + new java.lang.String[] { + "Initial", "Seek", "Messages", "Response", + }); + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor, + new java.lang.String[] { + "Subscription", "ClientId", + }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor, + new java.lang.String[] { + "Partitions", + }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor, + new java.lang.String[] { + "Initial", "Ack", "Request", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java index f29d643d5..e7c6e9e32 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,99 +45,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.
        * 
@@ -128,6 +167,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.
@@ -137,6 +178,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
@@ -150,6 +193,8 @@ public enum DeliveryRequirement
       ;
 
       /**
+       *
+       *
        * 
        * Default value. This value is unused.
        * 
@@ -158,6 +203,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.
@@ -167,6 +214,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
@@ -177,7 +226,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(
@@ -202,10 +250,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;
         }
       }
 
@@ -213,29 +265,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();
@@ -243,8 +297,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;
@@ -264,30 +317,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; @@ -299,9 +371,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); @@ -313,9 +387,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; @@ -325,12 +401,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; @@ -352,89 +429,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 @@ -444,39 +526,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(); @@ -486,13 +570,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(); } @@ -507,13 +592,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_; @@ -524,46 +613,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()); } @@ -593,17 +688,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) { @@ -613,26 +710,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. */ @@ -643,28 +752,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(); } @@ -674,11 +800,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() { @@ -687,6 +818,7 @@ public Builder clearDeliveryRequirement() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -699,41 +831,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; @@ -745,17 +880,20 @@ 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; } - } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the subscription.
    * Structured like:
@@ -763,6 +901,7 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultI
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -771,14 +910,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:
@@ -786,16 +926,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 { @@ -804,9 +943,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:
@@ -814,6 +956,7 @@ public java.lang.String getName() {
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return The topic. */ @java.lang.Override @@ -822,14 +965,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:
@@ -837,16 +981,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 { @@ -857,11 +1000,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 @@ -869,18 +1015,25 @@ public boolean hasDeliveryConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * 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.
    * 
@@ -888,19 +1041,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 @@ -908,19 +1067,26 @@ public boolean hasExportConfig() { return ((bitField0_ & 0x00000002) != 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. */ @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.
@@ -930,10 +1096,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;
@@ -945,8 +1114,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_);
     }
@@ -975,12 +1143,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getDeliveryConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeliveryConfig());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getExportConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExportConfig());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -990,26 +1156,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;
@@ -1039,120 +1202,127 @@ 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() @@ -1160,18 +1330,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDeliveryConfigFieldBuilder(); getExportConfigFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1192,9 +1362,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 @@ -1213,8 +1383,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; } @@ -1229,15 +1402,13 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription result } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.deliveryConfig_ = deliveryConfigBuilder_ == null - ? deliveryConfig_ - : deliveryConfigBuilder_.build(); + result.deliveryConfig_ = + deliveryConfigBuilder_ == null ? deliveryConfig_ : deliveryConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.exportConfig_ = exportConfigBuilder_ == null - ? exportConfig_ - : exportConfigBuilder_.build(); + result.exportConfig_ = + exportConfigBuilder_ == null ? exportConfig_ : exportConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -1247,38 +1418,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; @@ -1329,36 +1501,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) { @@ -1368,10 +1541,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1379,13 +1555,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; @@ -1394,6 +1570,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1401,15 +1579,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 { @@ -1417,6 +1594,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1424,18 +1603,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:
@@ -1443,6 +1626,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1452,6 +1636,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the subscription.
      * Structured like:
@@ -1459,12 +1645,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; @@ -1474,6 +1662,8 @@ public Builder setNameBytes( private java.lang.Object topic_ = ""; /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1481,13 +1671,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; @@ -1496,6 +1686,8 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1503,15 +1695,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 { @@ -1519,6 +1710,8 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1526,18 +1719,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:
@@ -1545,6 +1742,7 @@ public Builder setTopic(
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1554,6 +1752,8 @@ public Builder clearTopic() { return this; } /** + * + * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1561,12 +1761,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; @@ -1576,41 +1778,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(); @@ -1624,6 +1840,8 @@ public Builder setDeliveryConfig(com.google.cloud.pubsublite.proto.Subscription. return this; } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
@@ -1642,17 +1860,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; @@ -1667,6 +1890,8 @@ public Builder mergeDeliveryConfig(com.google.cloud.pubsublite.proto.Subscriptio return this; } /** + * + * *
      * The settings for this subscription's message delivery.
      * 
@@ -1684,33 +1909,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.
      * 
@@ -1718,14 +1952,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_; @@ -1733,36 +1970,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.
@@ -1784,6 +2034,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.
@@ -1803,6 +2055,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.
@@ -1812,9 +2066,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;
@@ -1829,6 +2084,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.
@@ -1847,6 +2104,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.
@@ -1860,6 +2119,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.
@@ -1871,11 +2132,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.
@@ -1884,21 +2148,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);
     }
 
@@ -1908,12 +2175,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();
   }
@@ -1922,27 +2189,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;
@@ -1957,6 +2224,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 0f482d554..922892930 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,14 +1,32 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
 // Protobuf Java Version: 3.25.2
 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:
@@ -16,10 +34,13 @@ public interface SubscriptionOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the subscription.
    * Structured like:
@@ -27,12 +48,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:
@@ -40,10 +63,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:
@@ -51,59 +77,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 025c7a737..84d55a8fe 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,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
@@ -5,6 +20,8 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
+ *
+ *
  * 
  * A target publish or event time. Can be used for seeking to or retrieving the
  * corresponding cursor.
@@ -12,48 +29,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;
     }
@@ -69,25 +91,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
@@ -95,6 +122,7 @@ public int getNumber() {
    * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -102,6 +130,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
@@ -109,16 +139,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
@@ -130,13 +163,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
@@ -146,6 +181,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -153,6 +189,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
@@ -162,16 +200,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
@@ -185,12 +226,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;
@@ -202,8 +244,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_);
     }
@@ -220,12 +261,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;
@@ -235,22 +278,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:
@@ -283,99 +325,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.
@@ -383,33 +430,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();
@@ -426,9 +472,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
@@ -447,8 +493,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;
@@ -461,12 +510,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();
       }
     }
@@ -475,38 +522,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;
@@ -516,17 +564,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();
@@ -554,26 +605,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) {
@@ -583,12 +633,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() {
@@ -601,8 +651,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
@@ -610,6 +665,7 @@ public Builder clearTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -617,6 +673,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
@@ -624,6 +682,7 @@ public boolean hasPublishTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; + * * @return The publishTime. */ @java.lang.Override @@ -641,6 +700,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
@@ -663,6 +724,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
@@ -671,8 +734,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();
@@ -683,6 +745,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
@@ -693,10 +757,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;
         }
@@ -712,6 +777,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
@@ -737,6 +804,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
@@ -749,6 +818,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
@@ -769,6 +840,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
@@ -778,17 +851,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;
@@ -797,8 +873,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
@@ -808,6 +889,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -815,6 +897,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
@@ -824,6 +908,7 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 2; + * * @return The eventTime. */ @java.lang.Override @@ -841,6 +926,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
@@ -865,6 +952,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
@@ -875,8 +964,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();
@@ -887,6 +975,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
@@ -899,10 +989,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;
         }
@@ -918,6 +1009,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
@@ -945,6 +1038,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
@@ -959,6 +1054,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
@@ -981,6 +1078,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
@@ -992,26 +1091,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);
     }
 
@@ -1021,12 +1123,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();
   }
@@ -1035,27 +1137,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;
@@ -1070,6 +1172,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 81%
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 4ab0b3cab..5e298c839 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,14 +1,32 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
 // Protobuf Java Version: 3.25.2
 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
@@ -16,10 +34,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
@@ -27,10 +48,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
@@ -42,6 +66,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
@@ -51,10 +77,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
@@ -64,10 +93,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 72%
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 571110e12..4292ee3c2 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,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
@@ -5,50 +20,57 @@
 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.
      *
@@ -59,11 +81,14 @@ public interface PartitionConfigOrBuilder extends
      * 
* * int64 count = 1; + * * @return The count. */ long getCount(); /** + * + * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -76,12 +101,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.
@@ -94,154 +123,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 @@ -252,12 +308,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 @@ -266,6 +325,7 @@ public int getSubscribeMibPerSec() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,8 +337,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_); } @@ -295,12 +354,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; @@ -310,17 +367,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; } @@ -342,89 +398,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 @@ -434,39 +497,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(); @@ -477,14 +543,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 @@ -498,13 +566,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_; @@ -518,46 +590,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()); } @@ -590,22 +669,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) { @@ -615,16 +697,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 @@ -632,12 +718,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. */ @@ -649,12 +738,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() { @@ -664,14 +756,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 @@ -679,12 +774,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. */ @@ -696,12 +794,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() { @@ -710,6 +811,7 @@ public Builder clearSubscribeMibPerSec() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -722,41 +824,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; @@ -768,22 +873,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; } @@ -799,26 +909,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.
      *
@@ -829,6 +944,7 @@ public int getNumber() {
      * 
* * int64 count = 1; + * * @return The count. */ @java.lang.Override @@ -838,6 +954,8 @@ public long getCount() { public static final int SCALE_FIELD_NUMBER = 2; /** + * + * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -850,15 +968,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.
@@ -871,12 +993,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_; } @@ -885,11 +1009,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 @@ -897,21 +1024,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.
      * 
@@ -919,14 +1051,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; @@ -938,17 +1072,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); } @@ -960,17 +1093,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; @@ -980,24 +1113,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: @@ -1014,8 +1145,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; @@ -1034,89 +1164,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 @@ -1126,39 +1261,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(); @@ -1173,9 +1310,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 @@ -1194,8 +1331,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; @@ -1208,11 +1348,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(); } } @@ -1221,38 +1361,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; @@ -1260,22 +1403,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(); @@ -1303,29 +1450,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) { @@ -1335,12 +1484,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() { @@ -1352,8 +1501,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.
        *
@@ -1364,6 +1515,7 @@ public Builder clearDimension() {
        * 
* * int64 count = 1; + * * @return The count. */ @java.lang.Override @@ -1371,6 +1523,8 @@ public long getCount() { return count_; } /** + * + * *
        * The number of partitions in the topic. Must be at least 1.
        *
@@ -1381,6 +1535,7 @@ public long getCount() {
        * 
* * int64 count = 1; + * * @param value The count to set. * @return This builder for chaining. */ @@ -1392,6 +1547,8 @@ public Builder setCount(long value) { return this; } /** + * + * *
        * The number of partitions in the topic. Must be at least 1.
        *
@@ -1402,6 +1559,7 @@ public Builder setCount(long value) {
        * 
* * int64 count = 1; + * * @return This builder for chaining. */ public Builder clearCount() { @@ -1412,6 +1570,8 @@ public Builder clearCount() { } /** + * + * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1424,14 +1584,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.
@@ -1444,17 +1608,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.
@@ -1467,12 +1635,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; @@ -1480,6 +1650,8 @@ public Builder clearCount() { return this; } /** + * + * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1492,11 +1664,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; @@ -1506,13 +1680,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 @@ -1520,11 +1700,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 @@ -1533,22 +1716,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(); @@ -1562,6 +1750,8 @@ public Builder setCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConf return this; } /** + * + * *
        * The capacity configuration.
        * 
@@ -1569,7 +1759,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(); @@ -1580,18 +1771,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; } @@ -1607,6 +1807,8 @@ public Builder mergeCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionCo return this; } /** + * + * *
        * The capacity configuration.
        * 
@@ -1630,16 +1832,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.
        * 
@@ -1647,17 +1854,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.
        * 
@@ -1665,14 +1876,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()); @@ -1682,6 +1900,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) { @@ -1694,12 +1913,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(); } @@ -1708,27 +1927,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; @@ -1743,14 +1963,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
@@ -1759,11 +1981,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
@@ -1771,10 +1996,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
@@ -1782,10 +2010,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
@@ -1797,48 +2028,53 @@ 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); } private int bitField0_; public static final int PER_PARTITION_BYTES_FIELD_NUMBER = 1; private long perPartitionBytes_ = 0L; /** + * + * *
      * The provisioned storage, in bytes, per partition. If the number of bytes
      * stored in any of the topic's partitions grows beyond this value, older
@@ -1847,6 +2083,7 @@ protected java.lang.Object newInstance(
      * 
* * int64 per_partition_bytes = 1; + * * @return The perPartitionBytes. */ @java.lang.Override @@ -1857,6 +2094,8 @@ public long getPerPartitionBytes() { public static final int PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration period_; /** + * + * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1864,6 +2103,7 @@ public long getPerPartitionBytes() {
      * 
* * .google.protobuf.Duration period = 2; + * * @return Whether the period field is set. */ @java.lang.Override @@ -1871,6 +2111,8 @@ public boolean hasPeriod() { return ((bitField0_ & 0x00000001) != 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
@@ -1878,6 +2120,7 @@ public boolean hasPeriod() {
      * 
* * .google.protobuf.Duration period = 2; + * * @return The period. */ @java.lang.Override @@ -1885,6 +2128,8 @@ public com.google.protobuf.Duration getPeriod() { return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; } /** + * + * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1899,6 +2144,7 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1910,8 +2156,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (perPartitionBytes_ != 0L) {
         output.writeInt64(1, perPartitionBytes_);
       }
@@ -1928,12 +2173,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 (((bitField0_ & 0x00000001) != 0)) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getPeriod());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPeriod());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -1943,19 +2186,18 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.cloud.pubsublite.proto.Topic.RetentionConfig)) {
         return super.equals(obj);
       }
-      com.google.cloud.pubsublite.proto.Topic.RetentionConfig other = (com.google.cloud.pubsublite.proto.Topic.RetentionConfig) obj;
+      com.google.cloud.pubsublite.proto.Topic.RetentionConfig other =
+          (com.google.cloud.pubsublite.proto.Topic.RetentionConfig) obj;
 
-      if (getPerPartitionBytes()
-          != other.getPerPartitionBytes()) return false;
+      if (getPerPartitionBytes() != other.getPerPartitionBytes()) return false;
       if (hasPeriod() != other.hasPeriod()) return false;
       if (hasPeriod()) {
-        if (!getPeriod()
-            .equals(other.getPeriod())) return false;
+        if (!getPeriod().equals(other.getPeriod())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -1969,8 +2211,7 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + PER_PARTITION_BYTES_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          getPerPartitionBytes());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPerPartitionBytes());
       if (hasPeriod()) {
         hash = (37 * hash) + PERIOD_FIELD_NUMBER;
         hash = (53 * hash) + getPeriod().hashCode();
@@ -1981,89 +2222,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
@@ -2073,27 +2319,32 @@ 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() @@ -2101,17 +2352,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPeriodFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2126,9 +2377,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 @@ -2147,8 +2398,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; } @@ -2160,9 +2414,7 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.RetentionConf } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.period_ = periodBuilder_ == null - ? period_ - : periodBuilder_.build(); + result.period_ = periodBuilder_ == null ? period_ : periodBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -2172,38 +2424,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; @@ -2211,7 +2466,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()); } @@ -2244,24 +2500,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) { @@ -2271,10 +2528,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
@@ -2283,6 +2543,7 @@ public Builder mergeFrom(
        * 
* * int64 per_partition_bytes = 1; + * * @return The perPartitionBytes. */ @java.lang.Override @@ -2290,6 +2551,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
@@ -2298,6 +2561,7 @@ public long getPerPartitionBytes() {
        * 
* * int64 per_partition_bytes = 1; + * * @param value The perPartitionBytes to set. * @return This builder for chaining. */ @@ -2309,6 +2573,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
@@ -2317,6 +2583,7 @@ public Builder setPerPartitionBytes(long value) {
        * 
* * int64 per_partition_bytes = 1; + * * @return This builder for chaining. */ public Builder clearPerPartitionBytes() { @@ -2328,8 +2595,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
@@ -2337,12 +2609,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
@@ -2350,6 +2625,7 @@ public boolean hasPeriod() {
        * 
* * .google.protobuf.Duration period = 2; + * * @return The period. */ public com.google.protobuf.Duration getPeriod() { @@ -2360,6 +2636,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
@@ -2382,6 +2660,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
@@ -2390,8 +2670,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 {
@@ -2402,6 +2681,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
@@ -2412,9 +2693,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;
@@ -2429,6 +2710,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
@@ -2448,6 +2731,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
@@ -2462,6 +2747,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
@@ -2474,11 +2761,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
@@ -2488,18 +2776,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) {
@@ -2512,12 +2804,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();
     }
@@ -2526,27 +2818,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;
@@ -2561,14 +2854,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:
@@ -2576,10 +2871,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:
@@ -2587,55 +2885,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:
@@ -2643,6 +2948,7 @@ protected java.lang.Object newInstance(
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return The throughputReservation. */ @java.lang.Override @@ -2651,14 +2957,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:
@@ -2666,16 +2973,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 { @@ -2684,6 +2990,7 @@ public java.lang.String getThroughputReservation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2695,8 +3002,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_); } @@ -2720,15 +3026,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; } @@ -2748,89 +3054,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 @@ -2840,39 +3151,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(); @@ -2882,9 +3195,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 @@ -2903,8 +3216,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; } @@ -2920,38 +3236,41 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.ReservationCo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Topic.ReservationConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.ReservationConfig)other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.ReservationConfig) other); } else { super.mergeFrom(other); return this; @@ -2959,7 +3278,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; @@ -2991,17 +3311,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) { @@ -3011,10 +3333,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:
@@ -3022,13 +3347,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; @@ -3037,6 +3362,8 @@ public java.lang.String getThroughputReservation() { } } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3044,15 +3371,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 { @@ -3060,6 +3386,8 @@ public java.lang.String getThroughputReservation() { } } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3067,18 +3395,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:
@@ -3086,6 +3418,7 @@ public Builder setThroughputReservation(
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearThroughputReservation() { @@ -3095,6 +3428,8 @@ public Builder clearThroughputReservation() { return this; } /** + * + * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3102,18 +3437,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) { @@ -3126,12 +3464,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(); } @@ -3140,27 +3478,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; @@ -3175,14 +3514,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the topic.
    * Structured like:
@@ -3190,6 +3531,7 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInsta
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -3198,14 +3540,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:
@@ -3213,16 +3556,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 { @@ -3233,11 +3575,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 @@ -3245,18 +3590,25 @@ public boolean hasPartitionConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * 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.
    * 
@@ -3264,18 +3616,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 @@ -3283,18 +3641,25 @@ public boolean hasRetentionConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * 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.
    * 
@@ -3302,18 +3667,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 @@ -3321,18 +3692,25 @@ public boolean hasReservationConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * 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.
    * 
@@ -3340,11 +3718,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; @@ -3356,8 +3738,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_); } @@ -3383,16 +3764,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPartitionConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPartitionConfig()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRetentionConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRetentionConfig()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReservationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReservationConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3402,29 +3780,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; @@ -3456,120 +3830,127 @@ 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() @@ -3577,19 +3958,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPartitionConfigFieldBuilder(); getRetentionConfigFieldBuilder(); getReservationConfigFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3614,9 +3995,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 @@ -3635,8 +4016,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; } @@ -3648,21 +4032,20 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.partitionConfig_ = partitionConfigBuilder_ == null - ? partitionConfig_ - : partitionConfigBuilder_.build(); + result.partitionConfig_ = + partitionConfigBuilder_ == null ? partitionConfig_ : partitionConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.retentionConfig_ = retentionConfigBuilder_ == null - ? retentionConfig_ - : retentionConfigBuilder_.build(); + result.retentionConfig_ = + retentionConfigBuilder_ == null ? retentionConfig_ : retentionConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.reservationConfig_ = reservationConfigBuilder_ == null - ? reservationConfig_ - : reservationConfigBuilder_.build(); + result.reservationConfig_ = + reservationConfigBuilder_ == null + ? reservationConfig_ + : reservationConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -3672,38 +4055,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; @@ -3752,38 +4136,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) { @@ -3793,10 +4177,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3804,13 +4191,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; @@ -3819,6 +4206,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3826,15 +4215,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 { @@ -3842,6 +4230,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3849,18 +4239,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:
@@ -3868,6 +4262,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3877,6 +4272,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the topic.
      * Structured like:
@@ -3884,12 +4281,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; @@ -3899,41 +4298,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(); @@ -3947,6 +4360,8 @@ public Builder setPartitionConfig(com.google.cloud.pubsublite.proto.Topic.Partit return this; } /** + * + * *
      * The settings for this topic's partitions.
      * 
@@ -3965,17 +4380,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; @@ -3990,6 +4409,8 @@ public Builder mergePartitionConfig(com.google.cloud.pubsublite.proto.Topic.Part return this; } /** + * + * *
      * The settings for this topic's partitions.
      * 
@@ -4007,33 +4428,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.
      * 
@@ -4041,14 +4471,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_; @@ -4056,41 +4489,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(); @@ -4104,6 +4551,8 @@ public Builder setRetentionConfig(com.google.cloud.pubsublite.proto.Topic.Retent return this; } /** + * + * *
      * The settings for this topic's message retention.
      * 
@@ -4122,17 +4571,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; @@ -4147,6 +4600,8 @@ public Builder mergeRetentionConfig(com.google.cloud.pubsublite.proto.Topic.Rete return this; } /** + * + * *
      * The settings for this topic's message retention.
      * 
@@ -4164,33 +4619,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.
      * 
@@ -4198,14 +4662,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_; @@ -4213,41 +4680,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(); @@ -4261,6 +4742,8 @@ public Builder setReservationConfig(com.google.cloud.pubsublite.proto.Topic.Rese return this; } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4279,17 +4762,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; @@ -4304,6 +4791,8 @@ public Builder mergeReservationConfig(com.google.cloud.pubsublite.proto.Topic.Re return this; } /** + * + * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4321,33 +4810,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.
      * 
@@ -4355,21 +4853,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); } @@ -4379,12 +4880,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(); } @@ -4393,27 +4894,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; @@ -4428,6 +4929,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 79% 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 425b9d9ee..bfc81e9a9 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 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:
@@ -16,10 +34,13 @@ public interface TopicOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the topic.
    * Structured like:
@@ -27,30 +48,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.
    * 
@@ -60,24 +89,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.
    * 
@@ -87,29 +124,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 9ad8f65ee..fd305179c 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,52 +20,58 @@ 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 @@ -59,6 +80,7 @@ public long getPartitionCount() { } 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 (partitionCount_ != 0L) { output.writeInt64(1, partitionCount_); } @@ -85,8 +106,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; @@ -96,15 +116,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; } @@ -117,139 +137,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(); @@ -259,9 +282,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 @@ -280,8 +303,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; } @@ -297,38 +323,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; @@ -336,7 +363,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()); } @@ -366,17 +394,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) { @@ -386,15 +416,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 @@ -402,11 +436,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. */ @@ -418,11 +455,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() { @@ -431,9 +471,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); } @@ -443,12 +483,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(); } @@ -457,27 +497,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; @@ -492,6 +532,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..760a0ed2f --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +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..feb406fea --- /dev/null +++ b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java @@ -0,0 +1,195 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/topic_stats.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class TopicStatsProto { + private TopicStatsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/pubsublite/v1/topic_stats" + + ".proto\022\032google.cloud.pubsublite.v1\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032\'google/cl" + + "oud/pubsublite/v1/common.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\336\001\n\032ComputeMessa" + + "geStatsRequest\0226\n\005topic\030\001 \001(\tB\'\340A\002\372A!\n\037p" + + "ubsublite.googleapis.com/Topic\022\026\n\tpartit" + + "ion\030\002 \001(\003B\003\340A\002\0228\n\014start_cursor\030\003 \001(\0132\".g" + + "oogle.cloud.pubsublite.v1.Cursor\0226\n\nend_" + + "cursor\030\004 \001(\0132\".google.cloud.pubsublite.v" + + "1.Cursor\"\275\001\n\033ComputeMessageStatsResponse" + + "\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_bytes" + + "\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0226\n\022minimum_even" + + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\"j\n\030ComputeHeadCursorRequest\0226\n\005topic\030\001 " + + "\001(\tB\'\340A\002\372A!\n\037pubsublite.googleapis.com/T" + + "opic\022\026\n\tpartition\030\002 \001(\003B\003\340A\002\"T\n\031ComputeH" + + "eadCursorResponse\0227\n\013head_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\"\247\001\n\030C" + + "omputeTimeCursorRequest\0226\n\005topic\030\001 \001(\tB\'" + + "\340A\002\372A!\n\037pubsublite.googleapis.com/Topic\022" + + "\026\n\tpartition\030\002 \001(\003B\003\340A\002\022;\n\006target\030\003 \001(\0132" + + "&.google.cloud.pubsublite.v1.TimeTargetB" + + "\003\340A\002\"O\n\031ComputeTimeCursorResponse\0222\n\006cur" + + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + + "ursor2\362\005\n\021TopicStatsService\022\335\001\n\023ComputeM" + + "essageStats\0226.google.cloud.pubsublite.v1" + + ".ComputeMessageStatsRequest\0327.google.clo" + + "ud.pubsublite.v1.ComputeMessageStatsResp" + + "onse\"U\202\323\344\223\002O\"J/v1/topicStats/{topic=proj" + + "ects/*/locations/*/topics/*}:computeMess" + + "ageStats:\001*\022\325\001\n\021ComputeHeadCursor\0224.goog" + + "le.cloud.pubsublite.v1.ComputeHeadCursor" + + "Request\0325.google.cloud.pubsublite.v1.Com" + + "puteHeadCursorResponse\"S\202\323\344\223\002M\"H/v1/topi" + + "cStats/{topic=projects/*/locations/*/top" + + "ics/*}:computeHeadCursor:\001*\022\325\001\n\021ComputeT" + + "imeCursor\0224.google.cloud.pubsublite.v1.C" + + "omputeTimeCursorRequest\0325.google.cloud.p" + + "ubsublite.v1.ComputeTimeCursorResponse\"S" + + "\202\323\344\223\002M\"H/v1/topicStats/{topic=projects/*" + + "/locations/*/topics/*}:computeTimeCursor" + + ":\001*\032M\312A\031pubsublite.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\320\001\n!com.google.cloud.pubsublite.proto" + + "B\017TopicStatsProtoP\001Z>cloud.google.com/go" + + "/pubsublite/apiv1/pubsublitepb;pubsublit" + + "epb\252\002\032Google.Cloud.PubSubLite.V1\312\002\032Googl" + + "e\\Cloud\\PubSubLite\\V1\352\002\035Google::Cloud::P" + + "ubSubLite::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor, + new java.lang.String[] { + "Topic", "Partition", "StartCursor", "EndCursor", + }); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor, + new java.lang.String[] { + "MessageCount", "MessageBytes", "MinimumPublishTime", "MinimumEventTime", + }); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor, + new java.lang.String[] { + "Topic", "Partition", + }); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor, + new java.lang.String[] { + "HeadCursor", + }); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor, + new java.lang.String[] { + "Topic", "Partition", "Target", + }); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor, + new java.lang.String[] { + "Cursor", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java rename to proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java index dc00ac0c0..3cef08c12 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,53 +20,61 @@ 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); } private int bitField0_; 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 @@ -59,37 +82,54 @@ 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. */ @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 @@ -97,11 +137,15 @@ 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. */ @java.lang.Override @@ -109,11 +153,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() { @@ -121,6 +168,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,8 +180,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getReservation()); } @@ -150,12 +197,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReservation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReservation()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -165,22 +210,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; @@ -207,119 +251,127 @@ 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() @@ -327,18 +379,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getReservationFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +409,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 @@ -378,8 +430,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; } @@ -388,15 +443,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateReservationRe int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.reservation_ = reservationBuilder_ == null - ? reservation_ - : reservationBuilder_.build(); + result.reservation_ = + reservationBuilder_ == null ? reservation_ : reservationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -406,38 +458,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; @@ -445,7 +498,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()); } @@ -478,26 +532,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) { @@ -507,43 +560,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) { @@ -559,11 +632,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) { @@ -577,17 +654,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; @@ -602,11 +683,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); @@ -619,11 +704,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; @@ -631,36 +720,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_; @@ -668,39 +769,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) { @@ -716,14 +833,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 { @@ -734,17 +853,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; @@ -759,11 +881,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); @@ -776,11 +901,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; @@ -788,43 +916,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); } @@ -834,12 +972,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(); } @@ -848,27 +986,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; @@ -883,6 +1021,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 57% 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 4db99dc3d..5a1718d34 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,64 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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 64% 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 2ec837f42..3a8a41e7c 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,54 +20,62 @@ 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); } private int bitField0_; 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 @@ -60,39 +83,56 @@ 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. */ @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 @@ -100,11 +140,15 @@ 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. */ @java.lang.Override @@ -112,11 +156,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A mask specifying the 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() { @@ -124,6 +171,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSubscription()); } @@ -153,12 +200,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubscription()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +213,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -210,119 +254,127 @@ 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() @@ -330,18 +382,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSubscriptionFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,9 +412,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 @@ -381,8 +433,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; } @@ -391,15 +446,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateSubscriptionR int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.subscription_ = subscriptionBuilder_ == null - ? subscription_ - : subscriptionBuilder_.build(); + result.subscription_ = + subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -409,38 +461,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; @@ -448,7 +501,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()); } @@ -481,26 +535,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSubscriptionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -510,46 +563,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) { @@ -565,12 +638,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) { @@ -584,18 +661,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; @@ -610,12 +692,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); @@ -628,12 +714,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; @@ -641,38 +731,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_; @@ -680,39 +782,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) { @@ -728,14 +846,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 { @@ -746,17 +866,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; @@ -771,11 +894,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); @@ -788,11 +914,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; @@ -800,43 +929,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); } @@ -846,12 +985,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(); } @@ -860,27 +999,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; @@ -895,6 +1034,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 9bfb106e0..94a1931a7 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,67 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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 4fd5b7d44..85d67c7db 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -5,53 +20,60 @@ 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); } private int bitField0_; 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 @@ -59,11 +81,15 @@ 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. */ @java.lang.Override @@ -71,11 +97,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() { @@ -85,11 +114,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 @@ -97,11 +130,15 @@ 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. */ @java.lang.Override @@ -109,11 +146,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() { @@ -121,6 +161,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTopic()); } @@ -150,12 +190,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTopic()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -165,22 +203,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -207,119 +244,126 @@ 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() @@ -327,18 +371,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTopicFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +401,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 @@ -378,8 +422,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; } @@ -388,15 +435,11 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateTopicRequest int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.topic_ = topicBuilder_ == null - ? topic_ - : topicBuilder_.build(); + result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -406,38 +449,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; @@ -445,7 +489,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()); } @@ -478,26 +523,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) { @@ -507,43 +551,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) { @@ -559,14 +620,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 { @@ -577,17 +640,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; @@ -602,11 +668,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); @@ -619,11 +688,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; @@ -631,36 +703,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_; @@ -668,39 +750,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) { @@ -716,14 +814,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 { @@ -734,17 +834,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; @@ -759,11 +862,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); @@ -776,11 +882,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; @@ -788,43 +897,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); } @@ -834,12 +953,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(); } @@ -848,27 +967,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; @@ -883,6 +1002,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 009283b1e..1d8762ea8 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,64 +1,102 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 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