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 + .
+ * 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
+ * Returns the topic configuration. + *+ */ + default void getTopic( + com.google.cloud.pubsublite.proto.GetTopicRequest request, + io.grpc.stub.StreamObserver
+ * Returns the partition information for the requested topic. + *+ */ + default void getTopicPartitions( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, + io.grpc.stub.StreamObserver
+ * Returns the list of topics for the given project. + *+ */ + default void listTopics( + com.google.cloud.pubsublite.proto.ListTopicsRequest request, + io.grpc.stub.StreamObserver
+ * Updates properties of the specified topic. + *+ */ + default void updateTopic( + com.google.cloud.pubsublite.proto.UpdateTopicRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified topic. + *+ */ + default void deleteTopic( + com.google.cloud.pubsublite.proto.DeleteTopicRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Returns the subscription configuration. + *+ */ + default void getSubscription( + com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver
+ * Returns the list of subscriptions for the given project. + *+ */ + default void listSubscriptions( + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver
+ * Updates properties of the specified subscription. + *+ */ + default void updateSubscription( + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified subscription. + *+ */ + default void deleteSubscription( + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Creates a new reservation. + *+ */ + default void createReservation( + com.google.cloud.pubsublite.proto.CreateReservationRequest request, + io.grpc.stub.StreamObserver
+ * Returns the reservation configuration. + *+ */ + default void getReservation( + com.google.cloud.pubsublite.proto.GetReservationRequest request, + io.grpc.stub.StreamObserver
+ * Returns the list of reservations for the given project. + *+ */ + default void listReservations( + com.google.cloud.pubsublite.proto.ListReservationsRequest request, + io.grpc.stub.StreamObserver
+ * Updates properties of the specified reservation. + *+ */ + default void updateReservation( + com.google.cloud.pubsublite.proto.UpdateReservationRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified reservation. + *+ */ + default void deleteReservation( + com.google.cloud.pubsublite.proto.DeleteReservationRequest request, + io.grpc.stub.StreamObserver
+ * Lists the topics attached to the specified reservation. + *+ */ + default void listReservationTopics( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Creates a new topic. + *+ */ + public void createTopic( + com.google.cloud.pubsublite.proto.CreateTopicRequest request, + io.grpc.stub.StreamObserver
+ * Returns the topic configuration. + *+ */ + public void getTopic( + com.google.cloud.pubsublite.proto.GetTopicRequest request, + io.grpc.stub.StreamObserver
+ * Returns the partition information for the requested topic. + *+ */ + public void getTopicPartitions( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, + io.grpc.stub.StreamObserver
+ * Returns the list of topics for the given project. + *+ */ + public void listTopics( + com.google.cloud.pubsublite.proto.ListTopicsRequest request, + io.grpc.stub.StreamObserver
+ * Updates properties of the specified topic. + *+ */ + public void updateTopic( + com.google.cloud.pubsublite.proto.UpdateTopicRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified topic. + *+ */ + public void deleteTopic( + com.google.cloud.pubsublite.proto.DeleteTopicRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Returns the subscription configuration. + *+ */ + public void getSubscription( + com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver
+ * Returns the list of subscriptions for the given project. + *+ */ + public void listSubscriptions( + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver
+ * Updates properties of the specified subscription. + *+ */ + public void updateSubscription( + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified subscription. + *+ */ + public void deleteSubscription( + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Creates a new reservation. + *+ */ + public void createReservation( + com.google.cloud.pubsublite.proto.CreateReservationRequest request, + io.grpc.stub.StreamObserver
+ * Returns the reservation configuration. + *+ */ + public void getReservation( + com.google.cloud.pubsublite.proto.GetReservationRequest request, + io.grpc.stub.StreamObserver
+ * Returns the list of reservations for the given project. + *+ */ + public void listReservations( + com.google.cloud.pubsublite.proto.ListReservationsRequest request, + io.grpc.stub.StreamObserver
+ * Updates properties of the specified reservation. + *+ */ + public void updateReservation( + com.google.cloud.pubsublite.proto.UpdateReservationRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified reservation. + *+ */ + public void deleteReservation( + com.google.cloud.pubsublite.proto.DeleteReservationRequest request, + io.grpc.stub.StreamObserver
+ * Lists the topics attached to the specified reservation. + *+ */ + public void listReservationTopics( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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 + .
+ * 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
+ * Returns all committed cursor information for a subscription. + *+ */ + default void listPartitionCursors( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * 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
+ * Returns all committed cursor information for a subscription. + *+ */ + public void listPartitionCursors( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * 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
+ * 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
* 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.MethodDescriptorgetAssignPartitionsMethod; + 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.StreamObserverassignPartitions( - 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.StreamObserverassignPartitions( - 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 MethodHandlersimplements - 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.MethodDescriptorgetPublishMethod; + 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.StreamObserverpublish( - 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.StreamObserverpublish( - 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.MethodDescriptorgetSubscribeMethod; + 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.StreamObserversubscribe( - 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.StreamObserversubscribe( - 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